Skip to content

9231 · 4.3

χ²-tests — practice questions

Practice and worked examples for 9231 χ²-tests. Short previews only — attempt the full question in MarkScheme against the official scheme.

Worked example 1

A die was rolled 180 times with the following results:

Score123456
Frequency253528322238

Test, at the 5% significance level, whether the die is fair.

Show solution outline
  1. Hypotheses H0H_0: The die is fair. (The data follows a discrete uniform distribution). H1H_1: The die is not fair.
  2. Expected Frequencies If the die is fair, the probability of each score is 1/61/6. The total number of rolls is 180. Expected frequency for each score, Ei=180×16=30E_i = 180 \times \frac{1}{6} = 30. All expected frequencies are > 5, so the test is valid.
  3. Calculate the Test Statistic We use the formula χ2=(OiEi)2Ei\chi^2 = \sum \frac{(O_i - E_i)^2}{E_i}.
    ScoreOiO_iEiE_iOiEiO_i - E_i(OiEi)2(O_i - E_i)^2(OiEi)2/Ei(O_i - E_i)^2 / E_i

| 1 | 25 | 30 | -5 | 25 | 0.8333 | | --- | --- | --- | --- | --- | --- | | 2 | 35 | 30 | 5 | 25 | 0.8333 | | 3 | 28 | 30 | -2 | 4 | 0.1333 | | 4 | 32 | 30 | 2 | 4 | 0.1333 | | 5 | 22 | 30 | -8 | 64 | 2.1333 | | 6 | 38 | 30 | 8 | 64 | 2.1333 |

$\chi^2_{calc} = 0.8333 + 0.8333 + 0.1333 + 0.1333 + 2.1333 + 2.1333 = 6.2$

4. Degrees of Freedom and Critical Value Number of categories = 6. Number of restrictions = 1 (since we only used the total frequency). No parameters were estimated. Degrees of freedom, ν=61=5\nu = 6 - 1 = 5. Significance level = 5% = 0.05. From tables, the critical value is χ52(0.05)=11.070\chi^2_{5}(0.05) = 11.070. 5. Conclusion Since our calculated value χcalc2=6.2\chi^2_{calc} = 6.2 is less than the critical value of 11.070, we do not reject H0H_0. There is insufficient evidence at the 5% significance level to suggest that the die is not fair.

Worked example 2

A survey of 200 sixth form students recorded their year group and preferred subject choice from a selection. The results are shown in the table. Test, at the 5% significance level, whether there is an association between a student's year group and their subject preference.

MathsHistoryArtTotal
Year 1245252090
---------------
Year 13553520110
Total1006040200
Show solution outline
  1. Hypotheses H0H_0: There is no association between year group and subject preference. H1H_1: There is an association between year group and subject preference.
  2. Expected Frequencies We calculate Eij=Row Total×Column TotalGrand TotalE_{ij} = \frac{\text{Row Total} \times \text{Column Total}}{\text{Grand Total}}. E11=90×100200=45E_{11} = \frac{90 \times 100}{200} = 45 E12=90×60200=27E_{12} = \frac{90 \times 60}{200} = 27 E13=90×40200=18E_{13} = \frac{90 \times 40}{200} = 18 E21=110×100200=55E_{21} = \frac{110 \times 100}{200} = 55 E22=110×60200=33E_{22} = \frac{110 \times 60}{200} = 33 E23=110×40200=22E_{23} = \frac{110 \times 40}{200} = 22 Table of Expected Frequencies:
    MathsHistoryArt

| Year 12 | 45 | 27 | 18 | | --- | --- | --- | --- | | Year 13 | 55 | 33 | 22 | All expected frequencies are > 5. 3. Calculate the Test Statistic χcalc2=(OE)2E\chi^2_{calc} = \sum \frac{(O - E)^2}{E} =(4545)245+(2527)227+(2018)218+(5555)255+(3533)233+(2022)222= \frac{(45-45)^2}{45} + \frac{(25-27)^2}{27} + \frac{(20-18)^2}{18} + \frac{(55-55)^2}{55} + \frac{(35-33)^2}{33} + \frac{(20-22)^2}{22} =0+427+418+0+433+422= 0 + \frac{4}{27} + \frac{4}{18} + 0 + \frac{4}{33} + \frac{4}{22} =0+0.1481...+0.2222...+0+0.1212...+0.1818...= 0 + 0.1481... + 0.2222... + 0 + 0.1212... + 0.1818... =0.6733...0.673= 0.6733... \approx 0.673 (3 s.f.) 4. Degrees of Freedom and Critical Value The table is 2x3. Degrees of freedom, ν=(21)×(31)=1×2=2\nu = (2-1) \times (3-1) = 1 \times 2 = 2. Significance level = 5% = 0.05. From tables, the critical value is χ22(0.05)=5.991\chi^2_{2}(0.05) = 5.991. 5. Conclusion Since χcalc2=0.673\chi^2_{calc} = 0.673 is less than the critical value of 5.991, we do not reject H0H_0. There is insufficient evidence at the 5% significance level to suggest an association between a student's year group and their subject preference.