How do you state the hypotheses, compute expected counts, and check conditions for a chi-square goodness-of-fit test?
Topic 8.2 Setting Up a Chi-Square Goodness of Fit Test: state the hypotheses for a goodness-of-fit test, compute expected counts from a claimed distribution, and verify the conditions.
A focused answer to AP Statistics Topic 8.2, on stating the hypotheses for a goodness-of-fit test, computing expected counts from a claimed distribution, and checking the random, large-counts (expected at least 5), and 10% conditions.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this topic is asking
The College Board (Topic 8.2) wants you to set up a chi-square goodness-of-fit test: state the distributional hypotheses, compute the expected counts from a claimed distribution, and check the conditions (random, all expected counts at least , and ).
Distributional hypotheses
These hypotheses are about the entire distribution, not a single proportion. Write as the claimed split, "equal across categories," or "the ratio," or specific percentages, and as "the distribution is not as claimed" (it is enough that some category's proportion differs; you do not specify which). Stating as "all proportions differ" is wrong; "at least one differs" is correct.
Computing expected counts
Expected counts are what the null predicts you would see on average. For an "equal" claim with categories, each . For a ratio like , the parts sum to , so the proportions are and . The expected counts need not be whole numbers, and they should sum to , a useful check. They are the backbone of both the condition check and the test statistic in Topic 8.3.
Checking the conditions
The large-counts condition for chi-square is "all expected counts ," which differs from the proportion test's " and ." Use the expected counts you just computed; if any falls below , the chi-square approximation is unreliable and categories may need combining. Checking expected (not observed) counts is the distinctive requirement here and a common slip.
Try this
Q1. A claim is tested with . Find the three expected counts. [2 points]
- Cue. Parts sum to , so proportions are ; expected counts .
Q2. Which counts must be at least for the condition, observed or expected? [1 point]
- Cue. Expected counts; every expected count must be at least .
Exam-style practice questions
Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
AP 2018 (style)1 marksSection I (multiple choice). A goodness-of-fit test claims a distribution across categories with . The expected count in each category is (A) (B) (C) (D) Show worked answer →
The correct answer is (B).
Under an equal distribution, each category's expected count is .
(A) is the minimum-expected-count condition value, not the expected count. (C) is the total. (D) is the ratio number, not a count. The expected count is .
AP 2021 (style)3 marksSection II (free response). A geneticist claims offspring appear in a ratio across four phenotypes. A random sample of offspring is classified. (a) State the hypotheses for a goodness-of-fit test. (b) Compute the expected count for each phenotype. (c) Check the conditions.Show worked answer →
A 3-point set-up question.
(a) (1 point) : the true distribution of phenotypes follows the ratio. : the true distribution is not the ratio (at least one proportion differs).
(b) (1 point) Total ratio parts . Expected counts: , , , .
(c) (1 point) Random: stated random sample. Large counts: all expected counts () are at least . : is plausibly under of all offspring.
Markers reward distributional hypotheses (not about a single proportion), correct expected counts from the ratio, and the all-expected-at-least-5 check.
Related dot points
- Topic 8.3 Carrying Out a Chi-Square Test for Goodness of Fit: compute the chi-square statistic from observed and expected counts, find the P-value using k minus 1 degrees of freedom, and state a conclusion in context.
A focused answer to AP Statistics Topic 8.3, on computing the chi-square statistic from observed and expected counts, finding the P-value with k minus 1 degrees of freedom, and stating a conclusion in context, with a full worked test.
- Topic 8.1 Introducing Statistics: Are My Results Unexpected?: explain why comparing observed counts across several categories to expected counts motivates the chi-square family of tests.
A focused answer to AP Statistics Topic 8.1, on why comparing observed counts across several categories to expected counts motivates chi-square tests, extending proportion inference to variables with more than two categories.
- Topic 8.5 Setting Up a Chi-Square Test for Homogeneity or Independence: distinguish a test of homogeneity from a test of independence based on the design, state the appropriate hypotheses, and check the conditions.
A focused answer to AP Statistics Topic 8.5, on distinguishing a chi-square test of homogeneity (several groups, same variable) from a test of independence (one sample, two variables), stating the right hypotheses, and checking the conditions.
- Topic 8.4 Expected Counts in Two-Way Tables: compute the expected count for each cell of a two-way table under the null hypothesis using the row total times column total divided by the grand total.
A focused answer to AP Statistics Topic 8.4, on computing expected counts in a two-way table under the null of no association, using row total times column total over the grand total, and why this formula encodes independence.
- Topic 1.3 Representing a Categorical Variable with Tables: build and interpret frequency and relative frequency tables for a single categorical variable, and read proportions and percentages from them.
A focused answer to AP Statistics Topic 1.3, on building frequency and relative frequency tables for one categorical variable, converting between counts, proportions, and percentages, and interpreting them in context, with worked tables.
Sources & how we know this
- AP Statistics Course and Exam Description — College Board (2020)