Goodness of fit tests and contingency tables

Goodness of fit tests and contingency tables Test

Spec 6.1 · Edexcel A-Level Further Maths: Subtopic test

Studying this course? Keep your progress in one place.

Two ways to do this test

Question by question

One question at a time. Each answer is marked the moment you hand it in, so you learn as you go. Drago helps if you get stuck. All 10 questions, or just 5.

Exam mode

The whole paper in one go, timed like the real exam. Nothing is marked until you hand it in, then you get every mark explained.

10 questions, 27 marks

Edexcel A-Level Further Maths

Goodness of fit tests and contingency tables

Total 27 marks

Name

Class

Date

  1. 1
    A six-sided die is rolled 120 times. The frequencies of the faces 1,2,3,4,5,61,2,3,4,5,6 are 14,25,17,22,24,1814, 25, 17, 22, 24, 18 respectively. A test is carried out, at the 5% significance level, of whether the die is fair.
    (a)
    Find the expected frequency of each face if the die is fair.
    [1 mark]
    • A66
    • B2020
    • C2424
    • D120120
    Show the mark scheme

    Mark scheme

    Answer: B
    (b)
    State the number of degrees of freedom for the test.
    [1 mark]
    • A66
    • B44
    • C55
    • D119119
    Show the mark scheme

    Mark scheme

    Answer: C
    (c)
    Calculate the value of the test statistic ∑(Oi−Ei)2Ei\sum\frac{(O_i-E_i)^2}{E_i}.
    [2 marks]
    Show the mark scheme

    Mark scheme

    M1: (14−20)2+(25−20)2+(17−20)2+(22−20)2+(24−20)2+(18−20)220\frac{(14-20)^2+(25-20)^2+(17-20)^2+(22-20)^2+(24-20)^2+(18-20)^2}{20}, or 36+25+9+4+16+420\frac{36+25+9+4+16+4}{20}
    A1:
    4.74.7
    Accept:
    9420\frac{94}{20}

    Total for question 1: 4 marks

  2. 2
    A survey of 120 students recorded their gender and usual mode of travel to school. Of the 60 boys, 20 walk, 25 take the bus and 15 come by car. Of the 60 girls, 30 walk, 20 take the bus and 10 come by car. A χ2\chi^2 test is used to investigate whether mode of travel is associated with gender.
    (a)
    Find the expected number of boys who take the bus, assuming that mode of travel is independent of gender.
    [1 mark]
    • A22.522.5
    • B2525
    • C2020
    • D4545
    Show the mark scheme

    Mark scheme

    Answer: A
    (b)
    State the number of degrees of freedom for this test.
    [1 mark]
    • A66
    • B11
    • C33
    • D22
    Show the mark scheme

    Mark scheme

    Answer: D
    (c)
    The test statistic is 3.563.56, to 3 significant figures. State the conclusion of the test at the 5% significance level, giving the critical value used.
    [2 marks]
    Show the mark scheme

    Mark scheme

    B1: critical value 5.9915.991 (for ν=2\nu=2 at 5%)
    A1:
    3.56<5.9913.56<5.991, so do not reject H0\mathrm{H}_0; no evidence of an association between gender and mode of travel
    Accept: p-value
    0.169>0.050.169>0.05

    Total for question 2: 4 marks

  3. 3
    A farmer packs eggs in boxes of 4. In a random sample of 100 boxes, the numbers of boxes containing 0,1,2,3,40,1,2,3,4 cracked eggs were 41,38,16,4,141, 38, 16, 4, 1 respectively. The farmer suggests that the number of cracked eggs in a box follows a binomial distribution B(4,p)\mathrm{B}(4,p), where pp is estimated from the data.
    (a)
    Show that the estimate of pp is 0.2150.215, and find the expected frequency of boxes containing exactly one cracked egg, to 2 decimal places.
    [3 marks]
    Show the mark scheme

    Mark scheme

    B1: mean =0+38+32+12+4100=0.86=\frac{0+38+32+12+4}{100}=0.86
    M1:
    p^=0.864=0.215\hat p=\frac{0.86}{4}=0.215 and E1=100×4(0.215)(0.785)3E_1=100\times4(0.215)(0.785)^3
    A1:
    41.6041.60
    AG for
    0.2150.215
    (b)
    The other expected frequencies are 37.9737.97 for 0, 17.0917.09 for 2, 3.123.12 for 3 and 0.210.21 for 4 cracked eggs. Test, at the 5% significance level, whether B(4,p)\mathrm{B}(4,p) is a suitable model. State your hypotheses.
    [4 marks]
    Show the mark scheme

    Mark scheme

    B1: H0\mathrm{H}_0: B(4,p)\mathrm{B}(4,p) is a suitable model; H1\mathrm{H}_1: it is not
    M1: cells with
    E<5E<5 combined to give X≥2X\geq2 with E=20.43E=20.43 and O=21O=21, then (41−37.97)237.97+(38−41.60)241.60+(21−20.43)220.43\frac{(41-37.97)^2}{37.97}+\frac{(38-41.60)^2}{41.60}+\frac{(21-20.43)^2}{20.43}
    B1:
    ν=3−1−1=1\nu=3-1-1=1 and critical value 3.8413.841
    A1:
    χ2=0.57<3.841\chi^2=0.57<3.841, so do not reject H0\mathrm{H}_0; the binomial model is suitable
    Accept:
    E=20.42E=20.42; χ2\chi^2 between 0.560.56 and 0.580.58

    Total for question 3: 7 marks

  4. 4
    A weaver inspects 100 one-metre lengths of cloth and records the number of faults in each. The numbers of lengths with 0,1,2,30, 1, 2, 3 and 4 or more faults were 30,36,20,930, 36, 20, 9 and 55 respectively. The 5 lengths with 4 or more faults contained 21 faults in total, so the sample mean number of faults per length is 1.241.24. The weaver suggests that the number of faults per metre follows a Poisson distribution.
    (a)
    The expected frequencies for a Poisson distribution with mean 1.241.24 are 28.94,35.88,22.2528.94, 35.88, 22.25 and 12.9312.93 for 0,1,20,1,2 and 3 or more faults. Test, at the 5% significance level, whether a Poisson model with mean 1.241.24 is suitable. State your hypotheses and the degrees of freedom.
    [6 marks]
    Show the mark scheme

    Mark scheme

    B1: H0\mathrm{H}_0: Poisson is a suitable model; H1\mathrm{H}_1: it is not
    M1: observed frequency for 3 or more
    =9+5=14=9+5=14 (cells combined to match E=12.93E=12.93)
    M1:
    ∑(O−E)2E\sum\frac{(O-E)^2}{E} with all four terms
    A1:
    χ2=0.355\chi^2=0.355
    B1:
    ν=4−1−1=2\nu=4-1-1=2 (one parameter estimated), critical value 5.9915.991
    A1:
    0.355<5.9910.355<5.991, so do not reject H0\mathrm{H}_0; Poisson is a suitable model
    Accept:
    χ2\chi^2 between 0.350.35 and 0.360.36
    (b)
    The manufacturer claims instead that the number of faults per metre follows a Poisson distribution with mean 1.51.5, with expected frequencies 22.31,33.47,25.10,12.5522.31, 33.47, 25.10, 12.55 and 6.566.56 for 0,1,2,30,1,2,3 and 4 or more faults. Test this claim at the 5% significance level, and explain why the degrees of freedom differ from part (a).
    [6 marks]
    Show the mark scheme

    Mark scheme

    B1: H0\mathrm{H}_0: Poisson with mean 1.51.5 is a suitable model; H1\mathrm{H}_1: it is not
    B1: all
    E≥5E\geq5, so no cells need combining (5 cells)
    M1:
    ∑(O−E)2E\sum\frac{(O-E)^2}{E} with all five terms
    A1:
    χ2=5.25\chi^2=5.25
    B1:
    ν=5−1=4\nu=5-1=4 (no parameter estimated), critical value 9.4889.488
    R1:
    5.25<9.4885.25<9.488, so do not reject H0\mathrm{H}_0; in (a) the mean was estimated from the data, which costs one more degree of freedom
    Accept:
    χ2\chi^2 between 5.25.2 and 5.35.3

    Total for question 4: 12 marks

End of questions

Subtopic tests