Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models | Applications and Interpretation IB Maths notes
Free preview: Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models
Does a Model Fit the Data?
Applications and interpretation: SL and HL (SL 4.11). Estimating parameters is HL (AHL 4.12), and the Poisson model is HL (AHL 4.17)
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.
- Same statistic as for contingency tables: , 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, or check if the GDC's p-value is below the significance level, 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. |
📝 On your GDC: χ² goodness of fit
- Put the observed frequencies in list 1 and the expected frequencies in list 2. Same order, same number of cells.
- Choose your GDC's χ² goodness of fit tool, with list 1 as observed and list 2 as expected.
- Enter the degrees of freedom yourself: here df = 5. The GDC does not know whether you estimated a parameter, so this is the easiest place to go wrong.
- The screen gives χ² = 4.1 and p = 0.535. Write down and p-value = 0.535 (3 s.f.).
- : do not reject . Same decision as with the critical value.
Given ratios
- A genetics model predicts types in the ratio 9 : 3 : 3 : 1. The shares add to . With 320 plants, = 180, 60, 60, 20.
- Observed 190, 52, 58, 20 gives , , below 7.815 (GDC p-value 0.639): the model fits.
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 Hypothesis testing (SL 4.11)
- The Language of Hypothesis Testing
- Chi-Squared Tests for Independence in Contingency Tables
- Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models
- The Two-Sample t-Test on Your GDC
Video
What's inside for this topic
4 teacher notes, 65 practice questions, 33 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: Chi-Squared Tests for Independence in Contingency Tables Next note: The Two-Sample t-Test on Your GDC
Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models on other exam boards
All Applications and Interpretation IB Maths topics · IB Maths