EuraStudy
This topic tests whether two categorical variables in a two-way table are associated, using the chi-squared test. It covers computing expected frequencies under the assumption of independence, forming the chi-squared statistic, finding the degrees of freedom, applying Yates' continuity correction to a 2x2 table, and concluding in context under the small-expected-frequency conditions.
5 sections~12 min reading time3 competenciesLevel Standard 2 · Advanced 3
basic level
The chi-squared test for association is principally full A-Level (Paper 3) content within the statistical-enquiry strand.
higher level
The full A-Level expects expected frequencies, the chi-squared statistic, degrees of freedom, Yates' correction and a contextual conclusion.
Reading depth: In depth
Text size: Standard
Observed contingency table
Hypotheses for the test of association
Independence is the null; the test looks for evidence of association.
A survey cross-classifies 200 people by age group and preferred brand. State the hypotheses and identify the marginal totals needed.
: age group and brand preference are independent; : they are associated.
Each age group totals 100.
Brands A, B, C total 50, 70, 80, summing to the grand total 200.
Result: : independence; : association; the marginal totals are 100, 100 (rows) and 50, 70, 80 (columns).
Typical mistakes
Active revision
State the null and alternative hypotheses for testing whether smoking status and exercise level are associated in a two-way table.
Active recall
Recall the key points — then reveal.
Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)
Observed versus expected frequencies
Expected frequency under independence
From the multiplication rule for independent events, scaled to the grand total.
For the brand-preference table (row totals 100, 100; column totals 50, 70, 80; grand total 200), find the expected frequencies for the 'under 30' row.
.
.
.
, matching the row total.
Result: The expected 'under 30' frequencies are 25, 35 and 40, summing to the row total 100.
Typical mistakes
Active revision
For the brand-preference table, compute all six expected frequencies and verify their totals.
Active recall
Recall the key points — then reveal.
Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)
Chi-squared statistic and degrees of freedom
Summed over all cells; the test is upper-tailed and indexed by .
For the brand table, observed 30, 40, 30, 20, 30, 50 against expected 25, 35, 40, 25, 35, 40, compute and the degrees of freedom.
, , for the first row.
, , .
(3 s.f.).
.
Result: with 2 degrees of freedom.
Typical mistakes
Active revision
A 3x4 contingency table gives . State the degrees of freedom and describe how to conclude.
Active recall
Recall the key points — then reveal.
Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)
Yates' correction and the expected-frequency condition
Apply Yates only to tables; merge categories to keep every expected frequency at least 5.
A 2x2 table has cells with in every cell and expected frequencies 15, 15, 10, 10. Compute the Yates-corrected .
Each term uses .
.
(3 d.p.) with 1 degree of freedom.
The 5% critical value for 1 df is 3.841; since , do not reject .
Result: The Yates-corrected , so do not reject independence at the 5% level.
Typical mistakes
Active revision
A 2x2 table has observed 18, 12, 7, 13 and expected 15, 15, 10, 10. Apply Yates' correction to find .
Active recall
Recall the key points — then reveal.
Sources: Pearson Edexcel Level 3 Advanced GCE in Statistics (9ST0) Specification (Pearson Edexcel)
Chi-squared distribution with the critical region
The decision rule
Upper-tailed: reject independence when the statistic exceeds the critical value.
For the brand data, with 2 degrees of freedom. Using the 5% critical value 5.991, conclude the test.
, so the statistic lies in the rejection region.
Reject at the 5% level.
There is sufficient evidence of an association between age group and brand preference; the Brand C cells contribute most.
This shows association, not causation, and says nothing about its strength.
Result: Since , reject : there is evidence of association between age and brand preference (but not causation).
Typical mistakes
Active revision
Given with 2 degrees of freedom and a 5% critical value of 5.991, 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