The Chi-Square Goodness-of-Fit Test
Observed vs. Expected Counts, Degrees of Freedom, and When to Reject — A TLDR Primer
The chi-square goodness-of-fit test shows up on the AP Statistics exam, in intro college stats courses, and on standardized tests — and it trips students up every time. Not because the math is hard, but because the setup, the logic, and the vocabulary all hit at once. This guide cuts straight to what you need.
Inside, you'll find a clear explanation of what the test actually asks (is this data consistent with a claimed distribution?), how to turn claimed proportions into expected counts, and how to build the chi-square statistic term by term. Degrees of freedom, the chi-square distribution, and how to read a p-value from a table or calculator are all covered plainly — no hand-waving, no skipping steps.
The guide also walks through the conditions students most often ignore (random sample, independence, expected counts of at least 5), shows exactly how to write a reject or fail-to-reject conclusion in context the way AP graders want to see it, and flags the misconceptions that cost points on exams. A full end-to-end worked example using M&M color claims ties every piece together. A final section clarifies how the goodness-of-fit test differs from the chi-square test for independence and the test for homogeneity — the confusion between these three is one of the most common mistakes in AP Statistics.
If you're prepping for the AP Statistics exam or working through an intro college statistics course and need a concise, no-filler resource on chi-square hypothesis testing for categorical data, this primer is built for you.
Grab it, work the examples, and walk into your exam ready.
- State null and alternative hypotheses for a goodness-of-fit problem
- Compute expected counts from a claimed distribution
- Calculate the chi-square statistic and degrees of freedom
- Use the chi-square table or p-value to make a decision at a given significance level
- Check the conditions (independence, sample size, expected counts ≥ 5) and recognize when the test does not apply
- Distinguish goodness-of-fit from the chi-square tests for independence and homogeneity
- 1. What the Goodness-of-Fit Test Actually AsksIntroduces the test as a way to compare observed category counts against a claimed distribution, with motivating examples like dice fairness and M&M color claims.
- 2. Expected Counts and the Chi-Square StatisticShows how to turn claimed proportions into expected counts and build the chi-square statistic term by term, with a fully worked dice example.
- 3. Degrees of Freedom, the Chi-Square Distribution, and P-ValuesExplains why degrees of freedom equal k−1, what the chi-square distribution looks like, and how to convert a test statistic into a p-value using a table or calculator.
- 4. Conditions, Decisions, and Writing the ConclusionCovers the conditions for using the test (random sample, independence, expected counts ≥ 5), how to phrase a reject/fail-to-reject conclusion in context, and common mistakes.
- 5. A Full Worked Example: Are M&M Color Claims True?End-to-end walkthrough on a Mars candy color distribution problem: hypotheses, expected counts, statistic, df, p-value, and conclusion.
- 6. Goodness-of-Fit vs. Independence vs. HomogeneityClarifies how this test differs from the other two chi-square tests students often confuse it with, and previews where each one shows up on exams.