The Chi-Square Test of Independence
Contingency Tables, Expected Counts, and Reading the P-Value — A TLDR Primer
The chi-square test of independence shows up on the AP Statistics exam, in intro college stats, and in research methods courses across biology, psychology, and political science — and it trips students up every time. The formula looks manageable, but the logic behind expected counts, the degrees of freedom calculation, and the difference between "statistically independent" and "no relationship whatsoever" are where points get lost.
This TLDR primer covers exactly what you need: how to read and build a contingency table, how to compute expected counts under the assumption of independence, how to apply the chi-square formula term by term, and how to make a decision from a p-value or critical-value table. Every concept is paired with a fully worked numerical example so you can follow the arithmetic step by step, not just watch it go by.
Designed for students preparing for the AP Statistics exam or working through an intro college stats course, the guide is short by design — no filler, no detours into topics you won't be tested on. It also addresses the mistakes that cost students the most: confusing the test of independence with the test of homogeneity, skipping the conditions check, and writing conclusions that overreach what the data actually show.
If you've stared at a chi-square problem and weren't sure where to start, this guide gives you a clear, repeatable process from raw data to written conclusion.
Scroll up and grab your copy before the next exam.
- Recognize when a chi-square test of independence is the right tool versus goodness-of-fit or a test for homogeneity
- Build a two-way contingency table and compute expected counts under the independence assumption
- Calculate the chi-square statistic and degrees of freedom by hand
- Use a chi-square table or p-value to make a decision about the null hypothesis
- State conclusions in context and avoid common interpretation traps
- 1. What the Test Actually AsksFrames the test as a question about whether two categorical variables are related in a population, using a relatable example.
- 2. Contingency Tables and Expected CountsWalks through building a two-way table, computing row and column totals, and deriving expected counts under the assumption of independence.
- 3. The Chi-Square Statistic and Degrees of FreedomExplains the chi-square formula term by term, shows a full worked calculation, and derives degrees of freedom for an r-by-c table.
- 4. Conditions, P-Values, and DecisionsCovers the conditions for valid inference, how to read a chi-square table or p-value, and how to make and state a decision.
- 5. Interpreting Results Without OverreachingShows how to write a contextual conclusion, distinguishes independence from homogeneity, and names the most common student mistakes.
- 6. Where You'll See This AgainConnects the chi-square test to AP Stats free-response patterns, intro college stats, and real research contexts in biology, polling, and medicine.