All 9 Statistics units
📊
AP Statistics · Unit 8 of 9

Inference for Categorical Data: Chi-Square

2–5% of the exam4 lessons · 55 min13 terms

What this unit covers

The topics below follow the published Statistics course framework for Unit 8. This unit is worth 2–5% of the exam, so budget your time against that rather than against how long the unit takes to teach.

Goodness of fitIndependenceHomogeneityExpected counts

Lessons in this unit

Formulas in Unit 8

Chi-square statistic and GOF degrees of freedom
χ² = Σ (observed − expected)² / expected · expected = n·p₀ · df = (number of categories) − 1
For goodness of fit, df is the number of categories minus 1. The p-value is the area to the right of χ² under the chi-square distribution.
Expected count in a two-way table
expected = (row total × column total) / grand total
Computed for every cell under the assumption of no association. The Large Counts condition requires every expected count ≥ 5.
Chi-square test for a two-way table
χ² = Σ (observed − expected)² / expected · df = (r − 1)(c − 1)
Here r is the number of rows and c the number of columns. A 3×4 table has df = (3−1)(4−1) = 6. Always upper-tailed.
Choosing the test
one sample, two variables → INDEPENDENCE · multiple samples/groups, one variable → HOMOGENEITY
Both use χ² = Σ(O−E)²/E with df = (r−1)(c−1). Only the design and the wording of the hypotheses change.

Every term in Unit 8

All 13 terms we publish for Inference for Categorical Data: Chi-Square, with definitions. Reading them through is the fastest way to find the ones you cannot define — then drill those in cram mode until you can produce them without the prompt.

Chi-square statistic
χ² = Σ(observed − expected)²/expected, summed over every cell. Always non-negative, and larger values mean worse fit to the null.
Goodness-of-fit test
Compares one categorical variable's observed counts to a claimed distribution. df = categories − 1.
Test for homogeneity
Compares the distribution of one categorical variable across several populations or treatments. df = (rows − 1)(columns − 1).
Test for independence
Tests whether two categorical variables are associated within one population. Same statistic and df as homogeneity; the difference is the sampling design.
Conditions for chi-square
Random sample or random assignment, 10% condition, and every EXPECTED count at least 5 — expected, not observed.
Calculating expected counts
For a two-way table, (row total × column total)/grand total.
Chi-square distribution shape
Right-skewed, becoming more symmetric as degrees of freedom rise. Only large values give small p-values, so the test is inherently one-sided.
Which chi-square test to use
One sample and one variable is goodness-of-fit; several samples and one variable is homogeneity; one sample and two variables is independence.
Follow-up after a significant chi-square
Identify the cells with the largest contributions to χ² and describe how observed differs from expected there, in context.
Stating chi-square hypotheses
Goodness-of-fit states a claimed distribution; homogeneity and independence state no difference and no association respectively, always in context.
Why expected counts, not observed
The condition guards the approximation of the sampling distribution, which depends on what the null predicts rather than on what was seen.
Combining categories
When an expected count is under 5, adjacent categories may be merged — reducing degrees of freedom accordingly.
Interpreting a large contribution to chi-square
That cell is where observed and expected diverge most, and it is where the description of the association should focus.

What examiners penalize here

Practice Statistics

Our practice bank is drawn from across the whole course rather than filtered to one unit, which is closer to how the exam asks anyway — it will not tell you which unit a question is testing.

Questions about this unit

How much of the AP Statistics exam is Unit 8?

Unit 8, Inference for Categorical Data: Chi-Square, is worth 2–5% of the Statistics multiple-choice section according to the published course framework. Across all 9 units that makes it one of the lighter units, so it is not where a review phase should start.

What topics are covered in Statistics Unit 8?

Inference for Categorical Data: Chi-Square covers Goodness of fit, Independence, Homogeneity and Expected counts. We publish 13 terms with definitions for this unit, all of them on this page.

How should I study Statistics Unit 8?

Read the 4 lessons below first — about 55 minutes — then drill the 13 terms in cram mode until you can produce each definition from memory rather than just recognize it. Recognition is what makes a unit feel finished when it is not. Finish with practice questions and read the explanation for every one you get right by elimination as well as the ones you miss.

All 9 units of AP Statistics

  1. Unit 1 · Exploring One-Variable Data
  2. Unit 2 · Exploring Two-Variable Data
  3. Unit 3 · Collecting Data
  4. Unit 4 · Probability & Random Variables
  5. Unit 5 · Sampling Distributions
  6. Unit 6 · Inference for Proportions
  7. Unit 7 · Inference for Means
  8. Unit 8 · Inference for Categorical Data: Chi-Square
  9. Unit 9 · Inference for Quantitative Data: Slopes

Unit names, topics and exam weights follow the published College Board course framework for AP Statistics. AP® is a trademark registered by the College Board, which does not endorse this site.