EuraStudy
This topic uses the chi-squared goodness-of-fit test to judge whether a set of data is consistent with a specified probability distribution. It covers computing expected frequencies from a model, the degrees of freedom (reduced when parameters are estimated), the requirement that expected frequencies are at least 5, and carrying out and interpreting the test.
5 sections~12 min reading time3 competenciesLevel Standard 2 · Advanced 3
basic level
The chi-squared goodness-of-fit test is principally full A-Level (Paper 3) content within the statistical-enquiry strand.
higher level
The full A-Level expects expected frequencies from a model, the correct degrees of freedom with estimated parameters, class combination and a contextual conclusion.
Reading depth: In depth
Text size: Standard
Goodness-of-fit hypotheses and statistic
Compare observed counts with those the model predicts; the test is upper-tailed.
A die is rolled 120 times and the six face counts are recorded. State the hypotheses for testing whether the die is fair.
A fair die gives each face probability (a discrete uniform distribution).
: the face counts follow a uniform distribution (the die is fair).
: the counts do not follow a uniform distribution (the die is biased).
Result: : the die is fair (uniform); : the die is not fair, tested by comparing observed with expected counts.
Typical mistakes
Active revision
State the null and alternative hypotheses for testing whether the number of calls per minute follows a Poisson distribution.
Active recall
Recall the key points — then reveal.
Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)
Observed and expected face counts
Expected frequency from a model
Multiply the total by the model probability for each class; the expected frequencies sum to .
A die is rolled 120 times. Find the expected frequency for each face under the fair-die model and confirm the total.
Each face has probability under a fair die.
for every face.
, the total number of rolls; all , so no combining is needed.
Result: Each face has expected frequency 20, summing to 120, with every expected frequency above 5.
Typical mistakes
Active revision
In 200 trials a model assigns probabilities 0.5, 0.3, 0.15, 0.05 to four categories. Find the expected frequencies and state whether any classes must be combined.
Active recall
Recall the key points — then reveal.
Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)
Degrees of freedom for goodness of fit
is the number of classes after combining; is the number of parameters estimated from the data.
Data are grouped into 6 classes and a Poisson distribution is fitted, estimating from the sample mean. State the degrees of freedom.
There are classes.
Lose 1 degree of freedom because the expected frequencies sum to the observed total.
Estimating costs 1 further degree of freedom, so .
Result: The degrees of freedom are .
Typical mistakes
Active revision
A Poisson model is fitted to counts grouped into 7 classes (after combining), with estimated from the data. State the degrees of freedom.
Active recall
Recall the key points — then reveal.
Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)
Expected frequencies from a fitted model
Estimate the parameter, compute model probabilities, multiply by the total.
A Poisson model with estimated mean is fitted to 50 observations. Find the expected frequency of zero events.
.
(3 s.f.).
, so this class need not be combined.
Result: The expected frequency of zero events is (3 s.f.).
Typical mistakes
Active revision
A Poisson model with estimated is fitted to 80 observations. Find the expected frequency of exactly one event.
Active recall
Recall the key points — then reveal.
Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)
Chi-squared distribution for the fit test
The fair-die decision
The statistic lies inside the body of the distribution, so the data are consistent with the model.
A die rolled 120 times gives observed face counts 15, 22, 23, 19, 25, 16 (each expected 20). Test at the 5% level whether the die is fair (critical value 11.070 for 5 df).
.
(no parameters estimated).
, so the statistic is not in the rejection region.
There is insufficient evidence at the 5% level that the die is biased; the data are consistent with a fair die.
Result: , so do not reject : the data are consistent with a fair die.
Typical mistakes
Active revision
A fair-die test gives with 5 degrees of freedom (5% critical value 11.070). Complete the test with a contextual conclusion.
Active recall
Recall the key points — then reveal.
Sources: GCE AS and A level subject content (Statistics) (Department for Education / Ofqual)
References & sources
Department for Education / Ofqual