Ripetizioni di Analisi
EN

Definition · Hypothesis tests

Test of independence in a contingency table

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

Test of independence in a contingency table

Two groups of units have and successes, respectively, and the question is whether the proportion of successes depends on the group; the data form a two-way table (Chapter 1), and the calculation is in the example that follows. In a table with rows and columns, let denote the total for row , the total for column , and the overall sample size. Under independence, the probability of a cell is the product of the probabilities of its row and its column (Chapter 4). Estimating these probabilities by the marginal proportions and and multiplying by gives

Pearson’s statistic is obtained by summing the terms over all cells. The conditions are independent units, positive row and column totals, adequate expected counts, and no structural zeros, that is, no cell that is empty by construction, such as “enrolled in the first year” and “has passed a third-year exam”. Under these conditions the reference distribution is approximately chi-square with degrees of freedom. The degrees of freedom are because, with the totals fixed, the cells in the first rows and first columns suffice to reconstruct the table; the others follow by subtraction.

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