Skip to topic
    ← Back to course topics

    SE: Chi squared tests for association — AQA AS-Level Further Mathematics

    SE: Chi squared tests for association explained

    SE: Chi squared tests for association covers 4 specification points, including Construction of n × m contingency tables.

    Read the full explanation

    and Use of ∑ (Oᵢ − Eᵢ)² / Eᵢ as an approximate χ²…. Open a point below for its explanation and revision guidance.

    Construction of n × m contingency tables.

    A contingency table arranges observed frequencies for two categorical variables so that association can be tested. One variable has n categories, placed down the rows, and the other has m categories, placed across the columns, giving an n × m grid of cells. Each cell holds the observed count for that combination of categories, and the table usually adds row totals, column totals and a grand total in the margins. For example, if hair colour has 3 categories and eye colour has 4, the table is 3 × 4 with 12 cells, plus marginal totals. The number of degrees of freedom for the chi-squared test of association is (n − 1)(m − 1), which for this example is 2 × 3 = 6. Building the table accurately, with correct totals, is the first step before computing expected frequencies.

    Use of ∑ (Oᵢ − Eᵢ)² / Eᵢ as an approximate χ² statistic with appropriate degrees of freedom.

    For a test of association in a contingency table, each cell has an observed frequency Oᵢ and an expected frequency Eᵢ calculated on the assumption of independence, usually as (row total × column total) ÷ grand total. The test statistic is the sum over all cells of (Oᵢ − Eᵢ)² ÷ Eᵢ, written ∑(Oᵢ − Eᵢ)²/Eᵢ. This value is compared with a χ² distribution whose degrees of freedom for an r × c table are (r − 1)(c − 1). Large values of the statistic suggest the observed data depart from independence, so the null hypothesis of no association is rejected when the statistic exceeds the critical value at the chosen significance level. Combine or check expected frequencies that are small before relying on the approximation.

    Know and use the convention that all Eᵢ should be greater than 5.

    In a chi-squared test for association you compare observed frequencies Oᵢ with expected frequencies Eᵢ calculated from the row and column totals under the null hypothesis of independence. The convention is that every expected frequency Eᵢ should be greater than 5. If some Eᵢ are 5 or less, the chi-squared distribution no longer gives a reliable approximation, so you should combine rows or columns with small expected frequencies, provided this is sensible, and then recompute the Eᵢ from the new totals. For example, if one cell has Eᵢ = 3.2, merge it with a neighbouring category in the same row or column, recalculate, and check that all new Eᵢ exceed 5 before finding the test statistic.

    Identification of sources of association in the context of a question.

    A chi-squared test for association asks whether two categorical variables recorded on the same individuals are related. The data are counts of individuals in each combination of categories, arranged in a contingency table. After a significant test, identifying sources of association means examining the individual cell contributions (O − E)²/E to see which categories drive the result: a large contribution signals a cell where observed and expected counts differ most, indicating where the association concentrates. For example, a survey crosses eye colour (blue, brown, green) with handedness (left, right); the test asks whether handedness is associated with eye colour, and cell contributions show which eye-colour/handedness combinations deviate most. Distinguish association from cause: the test detects dependence between the classifications, not a causal mechanism.

    Your focus

    1. Construct an n × m contingency table from raw categorical data.
    2. Complete marginal totals and verify they are consistent.
    3. Determine the degrees of freedom from the table dimensions.
    Show all 12 objectives
    1. Calculate expected frequencies for a contingency table under independence.
    2. Compute the χ² statistic using ∑(Oᵢ − Eᵢ)²/Eᵢ across all cells.
    3. Determine and apply the correct degrees of freedom (r − 1)(c − 1) to reach a conclusion.
    4. State the convention that all expected frequencies Eᵢ should be greater than 5.
    5. Check a set of expected frequencies against the convention.
    6. Combine categories and recalculate expected frequencies so that every Eᵢ exceeds 5.
    7. Identify the two categorical variables cross-tabulated in a given context.
    8. Distinguish count data for a chi-squared test from measured data.
    9. Interpret a significant result as evidence of association rather than causation, and locate sources of association through cell contributions.

    SE: Chi squared tests for association exam tips

    Marking Points
    • Sets out one variable's n categories as rows and the other variable's m categories as columns to form an n × m grid
    • Records observed frequencies in each cell for the corresponding combination of categories
    • Adds row totals, column totals and a grand total in the margins
    • Computes the degrees of freedom as (n − 1)(m − 1) for an n × m table
    • Identifies the number of cells as the product n × m
    • Keeps the table consistent so that marginal totals equal the sums of their row or column entries
    • Forms each expected frequency as row total times column total divided by grand total under the independence assumption.
    • Squares each difference between observed and expected frequency before dividing by the expected frequency.
    • Sums the contributions across every cell of the table to give the χ² statistic.
    • Uses degrees of freedom equal to (r − 1)(c − 1) for an r × c contingency table.
    • States that each expected frequency Eᵢ must be greater than 5 for the chi-squared approximation to be reliable.
    • Identifies that an expected frequency of 5 or less signals a problem that must be addressed before the test statistic is used.
    • Recommends combining rows or columns with small expected frequencies and recalculating the Eᵢ from the revised totals.
    • Confirms that all Eᵢ are checked against the greater-than-5 convention after any combination of categories.
    • Names the two categorical variables that are cross-tabulated and states that the test examines whether they are associated.
    • Recognises that the data must be counts of individuals in each combination of categories rather than measured values.
    • Explains that a significant chi-squared statistic indicates evidence of association between the two classifications, not proof of cause.
    • Identifies the sources of association by examining individual cell contributions (O − E)²/E and naming the categories with the largest contributions.
    Examiner Tips
    • 💡Label each row and column clearly with its category name.
    • 💡Check that every row total and column total matches the sum of its cells before proceeding.
    • 💡Write the degrees of freedom as (n − 1)(m − 1) and substitute the actual category counts.
    • 💡Lay out a table of Oᵢ, Eᵢ, Oᵢ − Eᵢ and (Oᵢ − Eᵢ)²/Eᵢ to keep the arithmetic transparent.
    • 💡State the null and alternative hypotheses and the significance level before computing the statistic.
    • 💡Compare the statistic with the critical value from the correct degrees of freedom and state the conclusion in context.
    • 💡Show each expected frequency Eᵢ before stating whether the convention is met.
    • 💡State clearly that the convention applies to expected frequencies, not observed ones.
    • 💡If you combine categories, show the revised table and the recalculated Eᵢ values.
    • 💡Underline the two categorical variables in the question and keep the context in view.
    • 💡Check whether the figures are counts of individuals, since measured data need a different technique.
    • 💡Distinguish association from causation; the test does not establish cause.
    • 💡Link any cell-contribution reasoning back to the named categories in the question's context.
    Common Mistakes
    • Swaps rows and columns inconsistently; fix one variable to rows and the other to columns throughout
    • Omits the marginal totals; add row totals, column totals and the grand total
    • Uses n × m degrees of freedom instead of (n − 1)(m − 1); subtract one from each dimension before multiplying
    • Miscounts categories, for example merging two distinct categories; list each category once before building the grid
    • Divides by the observed frequency instead of the expected frequency; divide each squared difference by Eᵢ.
    • Uses r × c or r + c − 2 as the degrees of freedom; apply (r − 1)(c − 1).
    • Omits the squaring of the difference or sums signed differences; square each difference before summing.
    • Applies the convention to observed frequencies rather than expected frequencies; check every Eᵢ instead.
    • Accepts an expected frequency of exactly 5 as satisfying the convention; require Eᵢ to be greater than 5.
    • Combines categories without recalculating the expected frequencies; recompute every Eᵢ from the new row and column totals.
    • Confuses the test for association with a goodness-of-fit test on a single variable; identify two cross-classified variables.
    • Treats the chi-squared test for association as a test on measured variables; restrict it to counts in categories.
    • Claims a significant result proves that one variable causes the other; state only that evidence of association is present.
    • Stops at the overall statistic and never examines cell contributions; use (O − E)²/E to locate which categories drive the association.