AP Statistics Inference for Categorical Data: Chi-Square — Worked Answer Explanations
Unit 8 · 12 questions explained
Below is a complete answer key for our AP Statistics Inference for Categorical Data: Chi-Square practice questions. For each question you'll find the correct choice, a full written explanation of how to get there, and — for every wrong answer — a short note on exactly why it's tempting and where it goes wrong. Reading these straight through is one of the fastest ways to find the gaps in a unit before exam day.
Prefer to test yourself first? Take the timed Inference for Categorical Data: Chi-Square practice test and come back here to review, or head back to the Inference for Categorical Data: Chi-Square unit overview.
- Question 1 · Easy
A die is rolled 60 times and the observed frequencies for each face are recorded. A chi-square goodness-of-fit test is used to check if the die is fair. What are the degrees of freedom?
- A6Why not A: Degrees of freedom = number of categories minus 1; using the number of categories without subtracting 1.
- B5Correct
- C59Why not C: Using ; for goodness-of-fit, where is the number of categories, not .
- D1Why not D: applies to a chi-square test; here there are 6 categories.
ExplanationFor a chi-square goodness-of-fit test, where is the number of categories. With 6 faces on a die, .
Key takeawayGoodness-of-fit $df = k - 1$ (number of categories minus 1).
- A
- Question 2 · Easy
A chi-square test for independence is conducted on a contingency table. What are the degrees of freedom?
- A12Why not A: Using (total cells) instead of .
- B6Correct
- C11Why not C: Using instead of .
- D2Why not D: Using only, ignoring the column dimension.
ExplanationFor a chi-square test of independence in an table, .
Key takeawayChi-square test of independence: $df = (r-1)(c-1)$.
- A
- Question 3 · Easy
In a goodness-of-fit test, the expected frequency for one category is . Should the chi-square test proceed?
- AYes; as long as , expected frequencies do not matter.Why not A: is for the CLT/t-procedures; chi-square requires all expected counts ≥ 5.
- BNo; the expected frequency condition requires all expected counts to be at least 5.Correct
- CYes; as long as the observed frequency for that category is at least 5.Why not C: The condition applies to expected frequencies, not observed ones.
- DNo; chi-square tests require expected counts of at least 10.Why not D: The standard AP Statistics condition is all expected counts ≥ 5, not ≥ 10.
ExplanationThe chi-square approximation is only valid when all expected frequencies are at least 5. An expected count of 2.5 violates this condition. One option is to combine categories to increase expected counts.
Key takeawayChi-square condition: all expected counts must be ≥ 5 for the approximation to be valid.
- A
- Question 4 · Easy
A researcher surveys 150 randomly selected students about their preferred study method (solo, group, or tutoring) and tests whether preference is related to major (STEM vs. non-STEM). Which chi-square test is appropriate?
- AChi-square goodness-of-fit testWhy not A: Goodness-of-fit tests one variable against a specified distribution; here two categorical variables are being examined for association.
- BChi-square test of independenceCorrect
- CChi-square test of homogeneityWhy not C: Homogeneity tests compare distributions of one variable across separately sampled groups; here one sample of 150 was taken and two variables were measured.
- DTwo-sample -testWhy not D: A -test compares means of a quantitative variable; here both variables are categorical.
ExplanationWhen a single random sample is drawn and two categorical variables are measured on each individual, the chi-square test of independence is used to determine whether the two variables are associated. If separate random samples had been drawn from each group, a test of homogeneity would apply.
Key takeawayIndependence: one sample, two categorical variables measured. Homogeneity: separate samples from groups, one categorical variable compared.
- A
- Question 5 · Easy
In a goodness-of-fit test with categories, the expected frequencies are each 25 and the observed frequencies are 20, 30, 22, 28. Compute .
- AWhy not A: Dividing by instead of .
- BCorrect
- CWhy not C: Summing instead of : ; something other than the correct formula.
- DWhy not D: Forgetting to divide by ; summing directly: .
Explanation. (Note: some rounding gives 2.08 or 2.72; using .)
Key takeaway$\chi^2 = \sum \frac{(O-E)^2}{E}$; each term divides the squared difference by the expected count.
- A
- Question 6 · Easy
A chi-square test of independence produces with . The critical value at is 7.815. What is the correct conclusion?
- AFail to reject ; the variables are independent.Why not A: , so we reject .
- BReject ; there is convincing evidence of an association between the two variables.Correct
- CReject ; we have proven the variables are dependent.Why not C: Rejecting provides evidence of association, not proof of dependence.
- DThe test is inconclusive because is not far above the critical value.Why not D: If exceeds the critical value, we reject ; there is no 'barely exceeds' provision.
ExplanationSince (critical value), we reject at . There is convincing statistical evidence of an association between the two categorical variables.
Key takeawayReject $H_0$ in chi-square tests when $\chi^2 >$ critical value (or $p$-value $< \alpha$). Chi-square tests are always right-tailed.
- A
- Question 7 · Easy
A chi-square test of homogeneity compares the distribution of preferred music genre across three age groups (teenagers, adults, seniors). The null hypothesis is:
- A: Music genre and age group are independent.Why not A: Independence is the null for a chi-square test of independence (one sample, two variables); homogeneity compares distributions across groups.
- B: The distribution of music genre preference is the same for all three age groups.Correct
- C: All genres are equally preferred in each age group.Why not C: This would be a goodness-of-fit test for a uniform distribution, not a test of homogeneity.
- D: There is no difference in mean age between genre groups.Why not D: This describes a comparison of means, not a chi-square test of categorical distributions.
ExplanationA chi-square test of homogeneity tests whether the distribution of a categorical variable is the same across multiple independently sampled populations (or groups). The null hypothesis states the distributions are identical across groups.
Key takeaway$H_0$ for homogeneity: the distribution of the categorical variable is the same across all groups/populations.
- A
- Question 8 · Easy
The expected cell count for a cell in a contingency table with total is computed as follows: the row total is 80 and the column total is 60. What is the expected count?
- A24Correct
- B140Why not B: Adding row total and column total (80 + 60) instead of multiplying and dividing.
- C40Why not C: Dividing by 5 — averaging without using the correct marginal totals.
- D0.024Why not D: Dividing by instead of .
ExplanationExpected cell count .
Key takeawayExpected count for cell $(i,j)$: $E_{ij} = (\text{row}_i \text{ total} \times \text{col}_j \text{ total}) / n$.
- A
- Question 9 · Medium
A chi-square goodness-of-fit test is performed on a spinner with 3 sections claimed to be equally likely. The test statistic is with . The -value is approximately 0.067. At , is there evidence the spinner is unfair?
- AYes; is large, so the spinner is definitely unfair.Why not A: The size of must be compared to a critical value or -value, not judged in absolute terms.
- BNo; -value = 0.067 > , so we fail to reject the null hypothesis that the spinner is fair.Correct
- CYes; any with small indicates a significant result.Why not C: The critical value for at is 5.991; does not exceed it.
- DNo; the -value should be doubled for a two-sided test.Why not D: Chi-square tests are always one-tailed (right tail); there is no two-sided version.
ExplanationThe critical value for at is 5.991. Since (equivalently, ), we fail to reject . There is insufficient evidence at the 5% level to conclude the spinner is unfair.
Key takeawayChi-square critical value for $df = 2$ at $\alpha = 0.05$ is 5.991; $\chi^2 < 5.991$ fails to reject $H_0$.
- A
- Question 10 · Medium
A researcher conducts a chi-square test of independence with , , . A student says the test shows that column variable causes changes in row variable . What is the error?
- AThe test only shows association, not direction; which variable causes the other cannot be determined.Why not A: While association has no direction issue, the main error is that association (even from a study with random assignment) doesn't automatically mean causation from chi-square alone.
- BChi-square tests measure association, not causation; without an experiment, causal conclusions are not justified.Correct
- CA -value < 0.01 is not small enough to conclude association.Why not C: is strong evidence against independence; the issue is the causal interpretation, not the strength of evidence.
- DThe is too small for a valid chi-square test.Why not D: is a perfectly valid degrees of freedom for a chi-square test.
ExplanationChi-square tests of independence detect statistical association between categorical variables. They do not establish causation. Causal conclusions require random assignment in a controlled experiment, not merely a survey or observational study.
Key takeawayChi-square tests detect association, not causation; causal claims require randomized experimental design.
- A
- Question 11 · Hard
In a chi-square test of independence, which of the following conditions must be met to proceed?
I. The data come from a random sample.
II. Expected cell counts are at least 5.
III. All observed counts are at least 5.- AI onlyWhy not A: Randomness alone is not sufficient; the large-counts condition on expected counts must also be met.
- BI and III onlyWhy not B: The condition applies to expected counts, not observed counts; III is not required.
- CI and II onlyCorrect
- DI, II, and IIIWhy not D: Observed counts can be 0; it is the expected counts that must be at least 5.
ExplanationTwo conditions must be met for a chi-square test of independence: (I) the data must come from a random sample (or random assignment), and (II) all expected cell counts must be at least 5. The condition about observed counts (III) is not required — observed counts can be 0 or very small.
Key takeawayChi-square conditions: (1) random sample and (2) all expected counts ≥ 5. Observed counts can be small.
- A
- Question 12 · Hard
A 3×2 contingency table (3 education levels × 2 voting outcomes) shows the following row totals and column totals:
Voted Did not vote Row total High school 80 Some college 60 College grad 60 Col total 120 80 200 The expected count for the High school/Voted cell is . Compute for this cell if the observed count is 40.
- A; cell contribution Correct
- B; cell contributionWhy not B: here; .
- C; cell contributionWhy not C: Using the column total (120/2 = 60) as the expected count, ignoring the row total.
- D; cell contributionWhy not D: Dividing by instead of : , or some other variant.
Explanation. Cell contribution: .
Key takeawayCompute expected counts before finding $\chi^2$; each cell contributes $(O-E)^2/E$ to the test statistic.
- A