/en-tutor-prep-ap-statistics-chi-square-tests/
/en-tutor-prep-ap-statistics-chi-square-tests/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

AP Statistics Chi-Square Tests: Tutor Prep Guide (goodness of fit, homogeneity, independence)

AP Statistics Chi-Square Tests: Tutor Prep Guide (goodness of fit, homogeneity, independence)

  • 2026-11-24

Chi-square is not one formula, it is one formula worn by three designs. Most lost marks come from calling homogeneity independence, or taking degrees of freedom as categories minus one. This chapter teaches the design question first, then the expected counts, and only then the calculator.

Objectives — Students can: (1) decide from the design whether a question needs goodness of fit, homogeneity or independence, and say why; (2) compute expected counts (n times p for fit, row total times column total over the grand total for tables, the smallest here being 15.556); (3) state the degrees of freedom (k minus one for fit, (r minus 1)(c minus 1) for tables, here 2) and read the critical value; (4) use component contributions to say which cell drives the statistic (here the largest is 2.540) and follow up after rejecting; (5) state the three conditions (random, 10%, expected at least five) and, in an observational study, write the conclusion as an association rather than a cause.

01 Prerequisites (3-minute check)

If any of these fails, fix it before the lesson starts.

Skill Quick check Pass mark
Proportions 40 out of 80 is what share One half; expected counts are that share times the total
Order of operations (40 minus 31.11) squared, divided by 31.11 About 2.54; subtract, square, then divide
Reading a chi-square table Two degrees of freedom at alpha 0.05 A critical value of 5.991; five degrees of freedom gives 11.070

02 Lesson flow (60 minutes)

Time Stage Tutor does Student does
0-8 min Opening sort Give three prompts and ask only which chi-square test applies Write the choice and a reason
8-22 min Expected counts and df 2 by 3 table: row totals 80 and 100, column totals 70, 75, 35, grand total 180 Fill six cells and check the total
22-36 min Statistic and decision Chi-square about 8.743, 2 degrees of freedom, critical 5.991 Write the rejection and one contextual sentence
36-46 min Goodness of fit 120 rolls, observed [18, 22, 15, 25, 19, 21], expected 20 Chi-square 3.0, 5 degrees of freedom, p about 0.70
46-54 min Contributions and follow-up Largest contribution 2.540 at grade nine preferring A Say what to compare after rejecting
54-60 min Exit check Collect two questions, mark at once Independent work

03 Teaching script (read it out)

Scene 1: Three tests, three questions first

There is one chi-square formula but three designs, and naming the wrong design is answering the wrong question. Fix the sorting into three questions: how many variables, how many samples, and is the comparison against a stated distribution or between two variables?
Goodness of fit: one variable, one sample, compared with a stated theoretical distribution, for example 120 rolls of a die tested for fairness. Homogeneity: one variable, several groups or samples, comparing whether the distributions match, for example whether grade nine and grade ten have the same subject preferences. Independence: one sample, two variables, asking whether the variables are related, for example whether gender and subject preference are associated in one group of students.
Homogeneity and independence trip students up because the expected counts and degrees of freedom are identical. The difference is the sampling: homogeneity draws a separate sample from each group, independence takes one sample and asks two things about each person. Have them write one line, how many samples, before touching the formula; that line decides the wording of the conclusion.
Student task: label three prompts fit, homogeneity or independence, with one reason each.

Say this: “Count the samples first. A separate sample per group is homogeneity; one sample asked two questions is independence.”

Scene 2: Expected counts and degrees of freedom: two formulas, two disciplines

Expected counts come from one idea: if the null were true, how many should land in this cell. For fit, it is the total times the stated proportion; for a table, it is the row total times the column total over the grand total. Here the rows total 80 and 100, the columns total 70, 75 and 35 with a grand total of 180, so the first cell expects 80 times 70 over 180, which is 31.111; the six cells must add back to 180, which is the fastest self-check.
Degrees of freedom are never memorised. For fit they are the number of categories minus one, so six faces give 5; for a table they are (rows minus 1) times (columns minus 1), so 2 by 3 gives 2. The reason is that once the row and column totals are fixed, only that many cells can be filled freely. The commonest error is writing the cell count or the total minus one; one wrong number makes the whole table lookup wrong.
The statistic adds, over every cell, observed minus expected, squared, divided by expected. Here it is about 8.743 against a critical value of 5.991 at 2 degrees of freedom, so we reject the null, with a p-value of about 0.0126. Insist on three artefacts on one page: the expected table, the component table, and the sum.
Student task: compute the expected count and component for the third cell (grade nine, no preference) and check that it is 1.984.

Say this: “Degrees of freedom are (rows minus one) times (columns minus one), not the number of cells.”

Scene 3: Reading the statistic: contributions and what comes after

Chi-square answers whether there is a difference, never where it lies. That is what component contributions are for: each cell’s (observed minus expected) squared over expected is its share of the statistic. Here the largest is grade nine preferring A at 2.540, meaning that cell departs most from the no-difference assumption, while grade nine preferring B at 0.333 is almost exactly on target.
Follow-up after rejection has two acceptable forms: point to the largest contributions, or compare conditional distributions, the percentages within each row. Say clearly that this follow-up is description, not a second test; AP asks only that students identify where the difference mainly sits.
The conditions are three: random, the 10% condition, and expected counts of at least five. Here the smallest expected count is 15.556, just over the line; if any cell falls below five the right move is to combine categories or enlarge the sample, not to compute anyway. Finally the wording: an observational study supports an association, never a cause; causal language requires random assignment in an experiment.
Student task: write one rejection conclusion and one sentence explaining why causation cannot be claimed.

Say this: “Chi-square only says there is a difference. The contributions tell you which cells carry it.”

04 Question types and worked steps

Type Example Steps Answer
Goodness of fit 120 rolls of a die, observed [18, 22, 15, 25, 19, 21] Expected 20 per face; sum of (observed minus expected) squared over expected; 5 degrees of freedom Chi-square 3.0 against 11.070, do not reject
Homogeneity Two grades, three preferences, tables [40, 30, 10] and [30, 45, 25] Expected from row total times column total over grand total; (2 minus 1)(3 minus 1) degrees of freedom Chi-square about 8.743 on 2 degrees of freedom, reject
Independence One sample, two variables, same table shape Same expected counts and degrees of freedom; the conclusion becomes an association Same statistic, different sampling design
Expected counts Row total 120, column total 110, grand total 400 Multiply and divide by the grand total to get 33 Every row and column of expected values must add up
Component contributions Which cell drives the statistic Cell by cell (observed minus expected) squared over expected, largest here 2.540 The largest contribution marks the difference
Condition check Smallest expected count 3.2 Below five fails the condition Combine categories or enlarge the sample
Sanity check (teach this): Five checks. First, the expected counts must add to the sample total; if not, one of the totals is wrong. Second, every expected count is positive; a zero or negative means the row or column totals were mixed up. Third, degrees of freedom cannot exceed the number of cells minus one and cannot be zero. Fourth, the statistic cannot be negative; a negative value means a square was skipped. Fifth, the wording of the conclusion must match the design: experiments may speak of cause, observational studies only of association.

05 Independent practice (3 questions)

Question Answer What to watch
200 rolls give 28, 36, 30, 42, 34 and 30; test the die for fairness. Chi-square 4.0 on 5 degrees of freedom against 11.070, do not reject Expected 33.333 per face, largest contribution on the four
Two groups of 100 give 60/40 and 45/55 successes; test whether the groups are homogeneous. Chi-square about 4.511 on 1 degree of freedom against 3.841, reject Expected values are 52.5 and 47.5 in both groups
A 3 by 4 table has row totals 120, 180, 100 and column totals 90, 110, 120, 80 with a grand total of 400; find the first row, second column expected count and the degrees of freedom. Expected 33, degrees of freedom 6 120 times 110 over 400; 2 times 3

06 Common mistakes and what to say

Mistake Student writes Say this
Using observed counts in the denominator “(40 minus 31.11) squared over 40” “The denominator is the expected count, not the observed. Using the wrong one shrinks the statistic.”
Cell count minus one for degrees of freedom “A 2 by 3 table, so 5 degrees of freedom” “Degrees of freedom are (rows minus one) times (columns minus one), so 1 times 2, which is 2.”
Causal language in an observational study “The preference difference causes the score difference” “An observational study supports an association only. Causation needs random assignment.”
Computing with an expected count below five “One cell expects 2.1, so carry on” “Below five means combine categories or enlarge the sample. Do not compute anyway.”

07 Homework (paper, section and question numbers)

08 Exit check (last 5 minutes)

Question Answer Decision
Three designs How many variables, how many samples Cannot say means replay act one
Degrees of freedom k minus one for fit, (r minus 1)(c minus 1) for tables Cells minus one means replay act two
Wording Association in observational studies, never cause Saying cause means replay act three

09 Tutor FAQ

Homogeneity and independence use the same formula, so why two names?

The arithmetic is identical but the sampling differs. Homogeneity samples each group separately and asks whether the distributions match; independence takes one sample and asks whether two variables are related. The names differ because the conclusion and the scope of inference differ.

Why must expected counts be at least five?

The chi-square distribution is a large-sample approximation, and very small expected counts make the approximation poor, so the p-value cannot be trusted. The AP convention is that every expected count is at least five; if not, combine categories or enlarge the sample.

After rejecting, how do we know where the difference lies?

Look at component contributions, each cell’s (observed minus expected) squared over expected; the largest few mark the difference. Comparing conditional percentages within each row gives the same picture. That follow-up is description, not another test.

Find a tutor — freeTutor Registration →

A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →