Learn in your language
Skip to content
A Level · Cambridge (CIE) · 9231

χ² goodness-of-fit and independence tests

Compare observed counts with expected frequencies using the right degrees of freedom and defensible class sizes.

Section Paper 4 · Further Probability & Statistics · Topics 4.1–4.5

Cambridge International AS & A Level Further Mathematics 9231 · 2026–2027 and 2028–2030 · 4.3
Exam scope and assessment notes

Mapped to Cambridge International AS & A Level Further Mathematics 9231. These original explanations and self-checks are independent study support, not Cambridge questions, marks or grades. The syllabus assumes prior knowledge of the relevant 9709 Mathematics content; check each component's prerequisites with your teacher. Full-paper assessment and human subject-specialist review remain outstanding.

Before you begin

  • Cambridge expects learners to know the whole Cambridge International A Level Mathematics (9709) content. Paper 1 further pure mathematics draws on 9709 Papers 1 and 3. Confirm your exam year and component route with your school.

Work on paper. Try each question before revealing help, and explain why your method works.

Quick readiness check

What makes a Further Mathematics solution convincing?

What you will learn

  • Fit a theoretical distribution under a stated hypothesis
  • Carry out a χ² goodness-of-fit test
  • Test independence in a contingency table and combine small expected cells

Goodness-of-fit compares observed and expected counts

Under H₀, calculate each expected frequency Eᵢ from the proposed distribution. Use χ²=Σ(Oᵢ−Eᵢ)²/Eᵢ; combine adjacent classes when an expected count is below 5.

For k categories and p estimated parameters, degrees of freedom are k−1−p. If parameters are fully specified in advance, p=0. A large statistic indicates greater disagreement with H₀.

Independence uses a contingency table

For a cell, E=(row total×column total)/grand total. Sum the χ² contributions over all cells; degrees of freedom are (rows−1)(columns−1). Combine rows or columns when appropriate so expected frequencies meet the syllabus condition.

State the conclusion in context and distinguish evidence of association from a causal claim. Yates’ correction is not required for this syllabus.

Pause and explain

Which habit best checks your work on χ² goodness-of-fit and independence tests?

Put the idea to work

Worked example

A die is rolled 60 times with observed counts 12, 9, 8, 11, 10, 10. Test goodness of fit to a fair die by calculating χ².

Show the worked solution
  1. Under a fair-die model, each expected count is 60/6=10.
  2. χ²=Σ(O−E)²/E=(4+1+4+1+0+0)/10=1.
  3. No parameters were estimated, so degrees of freedom are 6−1=5.

Answer χ²=1 with 5 degrees of freedom; compare with the chosen critical value.

Try a topic test

Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.

Test this topic →

From guided practice to a new situation

Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.

1 · Guided

A model predicts category probabilities 0.2, 0.3 and 0.5 in 100 trials. The observed counts are 18, 32 and 50. Calculate χ².

Give me a hint

Find expected counts first, then sum each squared difference divided by its expectation.

Compare my reasoning
  1. Expected counts are 20, 30 and 50.
  2. Contributions are 4/20, 4/30 and 0/50.
  3. Add the contributions.

χ²=0.2+0.1333…≈0.333.

Look for these in your work

  • Expected frequencies correct
  • Each contribution uses expected denominator
  • Total calculated
2 · Independent

A contingency table has 3 rows and 2 columns. Find its degrees of freedom for a χ² independence test.

Give me a hint

Use (rows−1)(columns−1).

Compare my reasoning
  1. There are 3−1=2 independent row contrasts.
  2. There are 2−1=1 independent column contrast.
  3. Multiply the two values.

df=2.

Look for these in your work

  • Correct formula
  • Row and column factors
  • Product stated
3 · Transfer

One expected cell frequency is 3 in a goodness-of-fit test. What should you check before calculating the final statistic, and how does combining categories affect degrees of freedom?

Give me a hint

The syllabus requires expected frequencies of at least 5 in each retained class.

Compare my reasoning
  1. Combine adjacent, substantively compatible classes where appropriate.
  2. Recalculate the combined observed and expected totals.
  3. Use the resulting number of classes, minus one and any estimated parameters, for degrees of freedom.

Combine suitable adjacent classes so each expected count is at least 5, then recalculate the statistic and degrees of freedom.

Look for these in your work

  • Expected-count condition applied
  • Counts recomputed
  • Degrees of freedom updated

Common mistakes

  • Using observed rather than expected counts in the denominator
  • Forgetting parameters estimated from the data when finding degrees of freedom
  • Claiming that an association test proves causation
Recall without your notes

What can you explain now?

In a goodness-of-fit χ² statistic, what is the denominator for a category's contribution?

Compare with the explanation

Its expected frequency E

The contribution is (O−E)²/E.

After trying it yourself, choose your next review. This is your self-assessment.

Your review choice appears on Today. Sign in to sync it across devices.

Make it stick

How do expected frequencies, parameter estimation and table dimensions determine a χ² test?

If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.

Keep learning Mathematics — Further

Course scope and assessment

All 24 syllabus sections across Further Pure Mathematics 1 and 2, Further Mechanics, and Further Probability & Statistics now link to original lessons with worked teaching, an explained check and guided, independent and transfer practice. Cambridge assumes prior 9709 knowledge. The syllabus map reflects topic teaching; it is not proof of exam readiness, an official Cambridge assessment or grade. Full timed mocks and human subject-specialist review remain pending.

StudyForA · Learn with understanding

Original teaching content and links to official sources. Check your exam year and qualification before using a resource.