Carrying Out a Chi-Square Test for Homogeneity or Independence
▶︎ Watch it animatedinteractive step-through · ~3 min · optionalThe 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.
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.
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.
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.