Mistake Master
Student view — seeing the site as a student does

Carrying Out a Chi-Square Test for Homogeneity or Independence

▶︎  Watch it animatedinteractive step-through · ~3 min · optional

The statistic is $\chi^2 = \sum \frac{(\text{observed} - \text{expected})^2}{\text{expected}}$, one non-negative contribution per cell, scaled so a fixed gap matters more where less was expected. For the three-school table the six contributions are about 3.84, 3.87, 1.07, 1.08, 1.14, and 1.15, totaling 12.15 with $df = (3-1)(2-1) = 2$ and an upper-tail p-value near 0.0023. The tail is always the upper one, because only a large statistic indicates disagreement with the null.

A correct calculation then gets over-read. The test is taken to identify which cell differs, though the alternative says only that the distributions differ somewhere; it is taken as causal, though that depends on random assignment; and a large p-value is taken as proof of independence, which accepts the null. Squaring also erases direction, so the statistic cannot say which group runs high. The follow-up supplies what the test cannot: the largest components point to the cells contributing most, and the conditional distributions, 60% against 45% and 44%, give the direction and the size.

each cell's (observed - expected)^2 / expected A yes 3.84 A no 3.87 B yes 1.07 B no 1.08 C yes 1.14 C no 1.15 chi-square = 12.15, df = 2 school A supplies about 7.7 of it
Every contribution is non-negative, so the total only grows as cells disagree with the null. Reading the largest components is a description of where the departure sits, not a second test of those cells.
chi-square distribution, df = 2 12.15 0 5 10 15 p-value = 0.0023 the area beyond 12.15 ALWAYS the upper tail: only a large statistic disagrees with H0 a small chi-square means the table looks like the null's picture
The curve is right-skewed and its shape depends on the degrees of freedom, so the same statistic carries different evidence in a larger table. There is no lower tail to consider.

The work

3 ways in · any order
Lesson
Carrying Out a Chi-Square Test for Homogeneity or Independence

Computes the chi-square statistic from its per-cell contributions, reads the upper-tail p-value with degrees of freedom from the table's shape, and marks off the three conclusions it does not license, with components and conditional distributions supplying the description it cannot.

Skill check · 10 scenarios
Diagnostic
10-item topic check

Ten items on chi-square results: large p-values read as proof of independence, single cells named from the statistic, causal claims from observed data, lower tails, and degrees of freedom from the sample size. Take it cold to find your habit, or after the lesson to check it is gone.

Not started · 10 items · ~15 min
Targeted Practice
Drill a single misconception

Pick one of the failure modes you missed and drill it on its own. The round is adaptive: two correct in a row clears it for now and moves you to the next. Two in a row is a checkpoint, not proof: if the error resurfaces later, the misconception comes back.

Take the diagnostic to identify your misconceptions