Ripetizioni di Analisi
EN

Definition · Hypothesis tests

Pearson's statistic and expected counts

Definition from the chapter Hypothesis tests, power and chi-square of Statistics and probability, with the exercises in which it is used.

Pearson's statistic and expected counts

In independent trials each outcome falls into one of three categories, to which the null hypothesis assigns probabilities , , and . Under the expected numbers are therefore , , and , while , , and are observed. The deviations , , and are summarized in a single number.

Let denote the observed counts and the expected counts under the null hypothesis. Pearson’s chi-square statistic is

Each term is the squared deviation of a count from its expected value, divided by that expected value. In the example . The sum grows as the deviations grow, in either direction, so the test uses the right tail.

A goodness-of-fit test compares the observed distribution across categories with theoretical probabilities . For independent units and mutually exclusive, exhaustive categories, that is, categories such that each unit falls into exactly one, set . With fixed positive probabilities, for large the distribution of under is approximately chi-square with degrees of freedom (Chapter 6). The constraint removes one degree of freedom, because once counts are known the last one follows by subtraction, as in . If the depend on parameters estimated from the same counts by maximum likelihood (Chapter 9), each estimate removes another degree of freedom, and are used. For example, to test a Poisson distribution with mean estimated from the data over categories, use degrees of freedom.

In the example there are degrees of freedom. Writing for the quantile of order of the chi-square distribution with degrees of freedom, . Since , is not rejected at level .

Read it in the chapter Hypothesis tests, power and chi-square →

Exercises where this definition is used

Worked examples

Practice exercises

All the definitions and theorems of Statistics and probability → · All the theorems on the site →

Report a mistake

Where:

Ripetizioni di Analisi

Keep studying

With a free account, you can pick up where you left off and see your progress next time you visit.

Sign up for free

Already have an account? Sign in

Contents