Skip to main content
Examonaut

Topic 6

Chi Squared Tests

How do you decide whether a dice is fair, whether accidents really follow a Poisson model, or whether people's choice of news source depends on their age? In each case you compare what you observed with what a model predicts, and ask whether the differences are too big to be chance. The chi-squared (χ2\chi^2) test turns that comparison into a single number, and the χ2\chi^2 family of distributions tells you how big is too big.

What you need to know

  • Carry out goodness of fit tests for discrete uniform, binomial, Poisson and geometric models (and for a continuous uniform model with grouped data), with parameters given or estimated from the data.
  • Use ∑(O−E)2E\sum\frac{(O - E)^2}{E} as an approximate χ2\chi^2 statistic, combine classes so that expected frequencies are at least 5, and find the degrees of freedom.
  • Carry out a test of independence in a contingency table.
  • Use critical values of the χ2\chi^2 distribution, and interpret the results in context.

Key points

  • Test statistic X2=∑(O−E)2EX^2 = \sum\frac{(O - E)^2}{E}, approximately χν2\chi^2_\nu if the model is right; only large values reject.
  • Combine classes so that every expected frequency is at least 5.
  • Goodness of fit: ν=\nu = classes after combining −1−- 1 - parameters estimated from the data.
  • Contingency tables: E=row total×column totalgrand totalE = \frac{\text{row total} \times \text{column total}}{\text{grand total}} and ν=(r−1)(c−1)\nu = (r - 1)(c - 1).
  • H0H_0 for a contingency table is independence (no association); describe an association from the largest contributions.
  • Not rejecting H0H_0 means the model is consistent with the data, not that it is proved.

Practise this topic

Both are part of Premium.

Next lesson1. Goodness of fit tests