Contingency tables and the chi-squared test

Contingency tables and the chi-squared test Test

Spec SE1–SE4 · AQA 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

AQA A-Level Further Maths

Contingency tables and the chi-squared test

Total 27 marks

Name

Class

Date

  1. 1
    A survey of 150 employees records how they travel to work and whether they live in town. Of the 40 who walk, 30 live in town. Of the 60 who take the bus, 25 live in town. Of the 50 who drive, 15 live in town. A chi-squared test for association is to be carried out.
    (a)
    Assuming no association, find the expected number of employees who drive and live in town.
    [1 mark]
    • A25.025.0
    • B26.726.7
    • C23.323.3
    • D35.035.0
    Show the mark scheme

    Mark scheme

    Answer: C
    (b)
    Find the contribution to the test statistic from the employees who walk and live in town.
    [1 mark]
    • A4.284.28
    • B11.311.3
    • C128128
    • D6.886.88
    Show the mark scheme

    Mark scheme

    Answer: D
    (c)
    State the null hypothesis and the number of degrees of freedom for the test.
    [2 marks]
    Show the mark scheme

    Mark scheme

    B1: H0H_0: there is no association between method of travel and living in town (the two are independent)
    B1:
    ν=(3−1)(2−1)=2\nu=(3-1)(2-1)=2

    Total for question 1: 4 marks

  2. 2
    Hospital records for 200 patients from three wards, A, B and C, give each patient's recovery outcome. Ward A has 70 patients: 48 recovered fully, 20 partially and 2 not at all. Ward B has 60 patients: 35 fully, 22 partially and 3 not at all. Ward C has 70 patients: 27 fully, 36 partially and 7 not at all.
    (a)
    Assuming recovery is independent of ward, find the expected number of patients in ward B who recovered partially.
    [1 mark]
    • A23.423.4
    • B22.022.0
    • C26.026.0
    • D20.020.0
    Show the mark scheme

    Mark scheme

    Answer: A
    (b)
    How many degrees of freedom does the test statistic for this table have?
    [1 mark]
    • A88
    • B44
    • C99
    • D66
    Show the mark scheme

    Mark scheme

    Answer: B
    (c)
    Explain why two of the outcome categories must be combined before the test is carried out, and state the degrees of freedom after doing so.
    [2 marks]
    Show the mark scheme

    Mark scheme

    B1: the expected frequencies for 'not at all' are below 5 (4.2, 3.6, 4.2), so the chi-squared approximation is unreliable; combine it with 'partially'
    B1:
    ν=(3−1)(2−1)=2\nu=(3-1)(2-1)=2

    Total for question 2: 4 marks

  3. 3
    A cafe owner records the drink chosen by 120 customers: 60 in the morning and 60 in the afternoon. In the morning, 18 chose tea, 30 chose coffee and 12 chose juice. In the afternoon, 24 chose tea, 14 chose coffee and 22 chose juice.
    (a)
    Find the expected frequency for each cell, assuming the drink is independent of the time of day, and calculate the value of the test statistic ∑(O−E)2E\sum\frac{(O-E)^2}{E}.
    [3 marks]
    Show the mark scheme

    Mark scheme

    M1: E=row total×column totalgrand totalE=\frac{\text{row total}\times\text{column total}}{\text{grand total}}
    A1: expected frequencies
    2121 (tea), 2222 (coffee), 1717 (juice) in both rows
    A1:
    9.629.62
    Accept:
    9.69.6, 9.616…9.616\ldots
    (b)
    Using the test statistic 9.629.62, test at the 5%5\% significance level whether the drink chosen is associated with the time of day.
    [4 marks]
    Show the mark scheme

    Mark scheme

    B1: H0H_0: no association between drink and time of day; H1H_1: there is an association
    B1:
    ν=(2−1)(3−1)=2\nu=(2-1)(3-1)=2, critical value 5.9915.991
    M1: compare
    9.62>5.9919.62>5.991
    A1: reject
    H0H_0; there is evidence of an association between drink chosen and time of day

    Total for question 3: 7 marks

  4. 4
    A health authority surveys 180 patients, 60 at each of three clinics, X, Y and Z, about their satisfaction. At X, 40 were satisfied, 15 neutral and 5 dissatisfied. At Y, 30 were satisfied, 20 neutral and 10 dissatisfied. At Z, 20 were satisfied, 20 neutral and 20 dissatisfied.
    (a)
    Carry out a chi-squared test, at the 5%5\% significance level, to investigate whether satisfaction is associated with the clinic.
    [6 marks]
    Show the mark scheme

    Mark scheme

    B1: H0H_0: no association between clinic and satisfaction; H1H_1: there is an association
    M1:
    E=60×column total180E=\frac{60\times\text{column total}}{180}
    A1:
    ∑(O−E)2E=17.6\sum\frac{(O-E)^2}{E}=17.6
    Accept:
    17.5817.58
    Accept: expected frequencies
    3030, 18.318.3, 11.711.7 in every row
    B1:
    ν=(3−1)(3−1)=4\nu=(3-1)(3-1)=4
    B1: critical value
    9.4889.488
    B1:
    17.6>9.48817.6>9.488, so reject H0H_0; there is evidence of an association between clinic and satisfaction
    (b)
    The test in part (a) shows an association. Use the contributions of the individual cells to the test statistic to identify the sources of the association, and state a conclusion in context.
    [6 marks]
    Show the mark scheme

    Mark scheme

    M1: cell contributions (O−E)2E\frac{(O-E)^2}{E} calculated
    A1: largest contributions: Z dissatisfied
    5.955.95, X dissatisfied 3.813.81, X satisfied 3.333.33, Z satisfied 3.333.33
    B1: Z has more dissatisfied patients than expected (20 against 11.7) and fewer satisfied (20 against 30)

    B1: X has more satisfied patients than expected (40 against 30) and fewer dissatisfied (5 against 11.7)

    B1: Y is close to the expected frequencies, with a total contribution of only
    0.390.39
    B1: conclusion: patients are most satisfied at clinic X and least satisfied at clinic Z

    Total for question 4: 12 marks

End of questions

Subtopic tests