Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models | Edexcel IAL Maths notes
Free preview: Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models
Does a Model Fit the Data?
Unit S3 (WST03): Statistics 3
Watch: 1-minute explainer
Every time you say "goals in a match are Poisson" or "this die is fair", you are using a model. But is the model any good? Real data never match a model exactly. This note gives a test for whether the gaps are small enough to be chance.
Let's start with a die. It is rolled 120 times:
| Score | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Observed O | 15 | 22 | 18 | 26 | 17 | 22 |
| Expected E | 20 | 20 | 20 | 20 | 20 | 20 |
- If the die is fair, each score has probability , so we expect of each.
- A goodness of fit test asks whether the observed counts are close enough to the expected counts from a model.
- : the model fits (the die is fair). : the model does not fit.
- The test statistic measures how far the observed counts are from the expected ones: , compared with the upper tail of .
- Same rule: every E must be at least 5, or merge cells.
Degrees of freedom
- Why −1? The expected frequencies are made to add up to the same total as the observed ones, which fixes one cell.
- Why subtract estimated parameters? Each one makes the model bend towards the data, which costs another degree of freedom.

What the picture shows
- These are the 5 expected frequencies for the goals example (page 2), from .
- Three cells are free. The total of 100 fixes one more, and using the data to estimate fixes another.
- So .
- If is given in the question, it is not estimated, so do not subtract it: .
Method: goodness of fit
- Hypotheses: : the model fits; : it doesn't. Name the model.
- Estimate any parameter the question doesn't give.
- Expected frequencies E = total × model probability. Make the last cell take the whole tail.
- Merge any cell with E below 5.
- X², then = cells − 1 − parameters estimated.
- Compare with the upper critical value and conclude.
👀 Watch me do it: is the die fair? Test at 5%
| What I write | Why I do it |
|---|---|
| : the die is fair (discrete uniform). : it is not | Step 1. |
| E = 20 for every score | Step 3. All at least 5, so no merging. |
| The squared gaps are 25, 4, 4, 36, 9, 4, all over the same E. | |
| 6 cells, nothing estimated: . | Step 5. |
| : do not reject | No evidence at 5% that the die is biased. |
Where the critical value comes from
- If is true and every expected frequency is at least 5, approximately follows a distribution with degrees of freedom.
- Read the critical value from the booklet's table of percentage points of the distribution. means that, when , is above 11.070 with probability 0.05.
- The test is always upper-tailed: only a big is evidence against the model. Reject when is greater than the critical value.
- Any expected frequency below 5 must first be combined with a neighbouring cell. You'll see this on page 2.
| ν | 10% | 5% | 1% |
|---|---|---|---|
| 1 | 2.706 | 3.841 | 6.635 |
| 2 | 4.605 | 5.991 | 9.210 |
| 3 | 6.251 | 7.815 | 11.345 |
| 4 | 7.779 | 9.488 | 13.277 |
| 5 | 9.236 | 11.070 | 15.086 |
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
All notes in S3.3 Goodness of Fit, Contingency Tables and Rank Correlation
- Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models
- Goodness of Fit for Continuous Uniform and Normal Models
- Chi-Squared Tests for Independence in Contingency Tables
- Spearman's Rank Correlation Coefficient
- Hypothesis Tests for Correlation and Association: PMCC or Spearman?
Video
What's inside for this topic
5 teacher notes, 142 practice questions, 40 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Next note: Goodness of Fit for Continuous Uniform and Normal Models