Free IB Maths AI SL lesson: Chi-squared goodness-of-fit test
A ready-to-teach IB Maths AI SL lesson on Chi-squared goodness-of-fit test (Unit 4 · Statistics & Probability): editable slides and teacher notes, free; a printable worksheet in 3 levels with answers for school plans. About 55 minutes.

Free with a teacher account. Sign in with Google, Microsoft or email and download the slides and teacher notes.
What's inside
- Slides (PowerPoint, editable) · freeabout 12 slides: do now, objectives, key ideas, a worked example step by step, “your turn”, practice QR code, exit ticket
- Teacher notes (PDF) · freelesson plan with timings, common mistakes, homework links
- Worksheet (PDF) · school plans6 questions, 32 marks: Fluency, Reasoning, Exam-style. Included with school plans and the teacher trial.
- Answers (PDF) · school plansthe answer to every worksheet question, from its mark scheme. Included with school plans and the teacher trial.
Learning objectives
- Goodness of Fit — Degrees of Freedom & Conclusions in Context
- Goodness of Fit to Uniform & Given-Ratio Distributions
Key ideas on the slides
- H₀: the data follow the stated distribution (e.g. uniform, or a given ratio); H₁: they do not.
- Expected frequencies = total × the model probabilities.
- Degrees of freedom = number of categories − 1 (minus one more for each parameter estimated from the data).
- Choose or combine categories so that every expected frequency is greater than 5 (in exams they always are).
By the end of the lesson, students should be able to answer a question like: Test if a 6-sided die rolled 60 times is fair, using alpha=0.05.
Key vocabulary
- goodness of fit: How well observed data match a model.
- observed frequency: The count from the data.
- expected frequency: The count predicted by the model.
Common mistakes this lesson tackles
- χ² and t-tests: hypotheses, the comparison and the conclusion in context. Use a fixed layout: H₀ and H₁ in symbols with the population parameter (μ₁ = μ₂; μ₁ > μ₂) or in words naming both variables for χ²; the p-value; "p < 0.05, so reject H₀" (or not); then one sentence in context.
- Using the observed totals instead of the model's probabilities for expected values.
- Not reducing the degrees of freedom when a parameter is estimated.
- Conclusions not in context.
The worked example
χ² test at 5% gives χ²_calc = 8.54, p = 0.0736. State H₀ and write the conclusion.
- H₀: the two variables are independent (no association).
- Extract: p = 0.0736.
- Compare: 0.0736 > 0.05.
- Decision: do not reject H₀.
- Context: insufficient evidence to suggest the variables are dependent.
Tip: "Accept H₁" is poor mathematical phrasing. Always say "Reject H₀" or "Do not reject H₀".
Calculator tips
- χ²GOF-Test with lists of observed and expected values and the degrees of freedom.
Where this lesson fits
Chi-squared goodness-of-fit test is in Unit 4 · Statistics & Probability of the IB Maths AI SL scheme of work.
- The lesson before: Chi-squared test for independence (scheme-of-work lessons: The χ² test for independence)
- The next lesson: Combined events & sample-space diagrams (scheme-of-work lessons: Basic Probability, Venn Diagrams & Sample Spaces; Tree Diagrams & Combined Events; Sample Spaces & Expected Numbers of Outcomes)
Lesson plan
| 0–5 min | Do now: students write down what they remember about Chi-squared test for independence and Spearman's rank correlation |
| 5–8 min | Share the learning objective and success criteria |
| 8–20 min | Teach: the worked example, step by step; students copy the method |
| 20–25 min | Your turn: 1 mini-whiteboard question; check every board before moving on |
| 25–42 min | Practise: the worksheet (6 questions in 3 levels, with school plans and the teacher trial) or the topic's practice questions online; move up a level after two right in a row |
| 42–47 min | Plenary: 1-question exit ticket; collect it to plan the next lesson |
For students: practise this topic
The worksheet's QR code opens the IB Maths AI SL Unit 4: Statistical Testing practice questions.
With a school plan
Set Chi-squared goodness-of-fit test as homework marked by AI, print this lesson's levelled worksheet with answers, and rebuild the lesson for your class with Create lesson. Free for 30 days as a teacher, no card.
Is it free, can I edit the slides, what do students use for homework? See questions teachers ask.