Chi-squared goodness of fit tests

Chi-squared goodness of fit tests Test

Spec 4.1–2 · Edexcel International 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 International A Level Further Maths

Chi-squared goodness of fit tests

Total 27 marks

Name

Class

Date

  1. 1
    A die is thrown 120 times. Faces 1 to 6 occurred 14, 25, 17, 22, 24 and 18 times respectively. A χ2\chi^2 goodness of fit test is to be used to test whether the die is fair.
    (a)
    Find the expected frequency for each face if the die is fair.
    [1 mark]
    • A16\frac16
    • B66
    • C2020
    • D120120
    Show the mark scheme

    Mark scheme

    Answer: C
    (b)
    State the number of degrees of freedom for the test.
    [1 mark]
    • A55
    • B66
    • C44
    • D119119
    Show the mark scheme

    Mark scheme

    Answer: A
    (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 9420\frac{94}{20}
    A1:
    4.74.7
    Accept:
    4.704.70

    Total for question 1: 4 marks

  2. 2
    A firm records the number of machine breakdowns in each of 100 weeks. No breakdowns occurred in 27 weeks, 1 in 35 weeks, 2 in 22 weeks, 3 in 11 weeks, 4 in 4 weeks and 5 in 1 week. The mean number of breakdowns per week is 1.33. The firm models the weekly number of breakdowns by a Poisson distribution with mean 1.33. The expected frequencies are 26.45, 35.18, 23.39, 10.37, 3.45 and 1.17 for 0, 1, 2, 3, 4 and 5 or more breakdowns respectively.
    (a)
    The test requires every expected frequency to be at least 5. Which cells must be combined?
    [1 mark]
    • A4 and 5 or more only
    • B3, 4 and 5 or more
    • C3 and 5 or more only
    • DNo cells need combining, because every observed frequency is at least 1
    Show the mark scheme

    Mark scheme

    Answer: B
    (b)
    After combining cells, the firm tests whether the Poisson model fits. State the number of degrees of freedom.
    [1 mark]
    • A33
    • B44
    • C11
    • D22
    Show the mark scheme

    Mark scheme

    Answer: D
    (c)
    Calculate the value of the test statistic for the combined cells.
    [2 marks]
    Show the mark scheme

    Mark scheme

    M1: combines 3, 4 and 5 or more to give E=14.99E=14.99, O=16O=16, with ∑(O−E)2E\sum\frac{(O-E)^2}{E} over four cells
    A1:
    0.1630.163
    Accept:
    0.160.16, 0.1640.164

    Total for question 2: 4 marks

  3. 3
    An inspector tests 120 boxes, each containing 4 bulbs, and records the number of defective bulbs in each box. There were 48 boxes with no defective bulbs, 42 with 1, 22 with 2, 7 with 3 and 1 with 4. The inspector suggests that the number of defective bulbs in a box can be modelled by B(4,p)B(4,p), with pp estimated from the data.
    (a)
    State suitable hypotheses and show that the estimate of pp is 0.231 to 3 significant figures.
    [3 marks]
    Show the mark scheme

    Mark scheme

    B1: H0H_0: B(4,p)B(4,p) is a suitable model; H1H_1: B(4,p)B(4,p) is not a suitable model
    M1: mean number of defective bulbs
    =0×48+1×42+2×22+3×7+4×1120=111120=0.925=\frac{0\times48+1\times42+2\times22+3\times7+4\times1}{120}=\frac{111}{120}=0.925
    A1:
    p=0.9254=0.23125≈0.231p=\frac{0.925}{4}=0.23125\approx0.231
    AG

    Do not accept: hypotheses about a mean only
    (b)
    With p=0.23125p=0.23125, the expected frequencies for 0, 1, 2, 3 and 4 defective bulbs are 41.91, 50.43, 22.75, 4.56 and 0.34. Carry out the test at the 5% significance level, giving the test statistic and the critical value.
    [4 marks]
    Show the mark scheme

    Mark scheme

    M1: combines cells so that every expected frequency is at least 5, giving 0, 1 and 2 or more, with E=22.75+4.56+0.34=27.65E=22.75+4.56+0.34=27.65 and O=22+7+1=30O=22+7+1=30
    A1: test statistic
    2.492.49
    Accept:
    2.52.5
    B1:
    ν=3−1−1=1\nu=3-1-1=1 and critical value 3.8413.841
    R1:
    2.49<3.8412.49<3.841, so insufficient evidence to reject H0H_0; the binomial model is suitable
    Do not accept: 'accept
    H0H_0' with no comment on the evidence

    Total for question 3: 7 marks

  4. 4
    A botanist measures the heights of 150 plants. The sample mean is 40 cm and the sample standard deviation is 4 cm. The heights are grouped into five classes: under 34 cm, 34 to 38 cm, 38 to 42 cm, 42 to 46 cm and over 46 cm, containing 14, 31, 55, 38 and 12 plants respectively. The botanist suggests that the heights are modelled by a Normal distribution, with mean and variance estimated from the sample.
    (a)
    (i) Show that the expected frequency for the class 38 to 42 cm is 57.4 to 3 significant figures.
    (ii) Hence find the expected frequencies for the other four classes and calculate the test statistic.
    [6 marks]
    Show the mark scheme

    Mark scheme

    M1: (i) standardises to P(−0.5<Z<0.5)P(-0.5<Z<0.5), using 38−404=−0.5\frac{38-40}{4}=-0.5 and 42−404=0.5\frac{42-40}{4}=0.5
    A1: (i)
    P=0.3829P=0.3829
    A1: (i)
    150×0.3829=57.4150\times0.3829=57.4
    AG

    M1: (ii) other classes from
    P(Z<−1.5)=0.0668P(Z<-1.5)=0.0668 and P(−1.5<Z<−0.5)=0.2417P(-1.5<Z<-0.5)=0.2417, with symmetry
    A1: (ii)
    10.010.0, 36.336.3, 57.457.4, 36.336.3, 10.010.0
    A1: (ii) test statistic
    2.922.92
    Accept:
    2.92.9, or 2.922.92 to 2.952.95
    (b)
    The test statistic is 2.92. Carry out a goodness of fit test at the 5% significance level, explaining why no classes need to be combined and how the degrees of freedom are found.
    [6 marks]
    Show the mark scheme

    Mark scheme

    B1: H0H_0: heights follow a Normal distribution; H1H_1: heights do not follow a Normal distribution
    B1: all expected frequencies are at least 5 (the smallest is
    10.010.0), so no combining is needed
    B1:
    ν=5−1−2=2\nu=5-1-2=2, because the mean and the variance were both estimated from the sample
    B1: critical value
    5.9915.991
    M1: compares
    2.92<5.9912.92<5.991
    A1: insufficient evidence to reject
    H0H_0; the Normal model is suitable for the heights of the plants
    Accept: follow-through from their test statistic from (a)

    Do not accept:
    ν=4\nu=4

    Total for question 4: 12 marks

End of questions

Subtopic tests