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.

In-content ad
  1. 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?

    • A
      6
      Why not A: Degrees of freedom = number of categories minus 1; using the number of categories without subtracting 1.
    • B
      5Correct
    • C
      59
      Why not C: Using ; for goodness-of-fit, where is the number of categories, not .
    • D
      1
      Why not D: applies to a chi-square test; here there are 6 categories.
    Explanation

    For a chi-square goodness-of-fit test, where is the number of categories. With 6 faces on a die, .

    Key takeaway

    Goodness-of-fit $df = k - 1$ (number of categories minus 1).

  2. Question 2 · Easy

    A chi-square test for independence is conducted on a contingency table. What are the degrees of freedom?

    • A
      12
      Why not A: Using (total cells) instead of .
    • B
      6Correct
    • C
      11
      Why not C: Using instead of .
    • D
      2
      Why not D: Using only, ignoring the column dimension.
    Explanation

    For a chi-square test of independence in an table, .

    Key takeaway

    Chi-square test of independence: $df = (r-1)(c-1)$.

  3. Question 3 · Easy

    In a goodness-of-fit test, the expected frequency for one category is . Should the chi-square test proceed?

    • A
      Yes; as long as , expected frequencies do not matter.
      Why not A: is for the CLT/t-procedures; chi-square requires all expected counts ≥ 5.
    • B
      No; the expected frequency condition requires all expected counts to be at least 5.Correct
    • C
      Yes; 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.
    • D
      No; 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.
    Explanation

    The 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 takeaway

    Chi-square condition: all expected counts must be ≥ 5 for the approximation to be valid.

  4. 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?

    • A
      Chi-square goodness-of-fit test
      Why not A: Goodness-of-fit tests one variable against a specified distribution; here two categorical variables are being examined for association.
    • B
      Chi-square test of independenceCorrect
    • C
      Chi-square test of homogeneity
      Why 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.
    • D
      Two-sample -test
      Why not D: A -test compares means of a quantitative variable; here both variables are categorical.
    Explanation

    When 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 takeaway

    Independence: one sample, two categorical variables measured. Homogeneity: separate samples from groups, one categorical variable compared.

  5. 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 .

    • A
      Why not A: Dividing by instead of .
    • B
      Correct
    • C
      Why not C: Summing instead of : ; something other than the correct formula.
    • D
      Why 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.

  6. Question 6 · Easy

    A chi-square test of independence produces with . The critical value at is 7.815. What is the correct conclusion?

    • A
      Fail to reject ; the variables are independent.
      Why not A: , so we reject .
    • B
      Reject ; there is convincing evidence of an association between the two variables.Correct
    • C
      Reject ; we have proven the variables are dependent.
      Why not C: Rejecting provides evidence of association, not proof of dependence.
    • D
      The 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.
    Explanation

    Since (critical value), we reject at . There is convincing statistical evidence of an association between the two categorical variables.

    Key takeaway

    Reject $H_0$ in chi-square tests when $\chi^2 >$ critical value (or $p$-value $< \alpha$). Chi-square tests are always right-tailed.

  7. 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.
    Explanation

    A 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.

  8. 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?

    • A
      24Correct
    • B
      140
      Why not B: Adding row total and column total (80 + 60) instead of multiplying and dividing.
    • C
      40
      Why not C: Dividing by 5 — averaging without using the correct marginal totals.
    • D
      0.024
      Why not D: Dividing by instead of .
    Explanation

    Expected cell count .

    Key takeaway

    Expected count for cell $(i,j)$: $E_{ij} = (\text{row}_i \text{ total} \times \text{col}_j \text{ total}) / n$.

  9. 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?

    • A
      Yes; 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.
    • B
      No; -value = 0.067 > , so we fail to reject the null hypothesis that the spinner is fair.Correct
    • C
      Yes; any with small indicates a significant result.
      Why not C: The critical value for at is 5.991; does not exceed it.
    • D
      No; 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.
    Explanation

    The 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 takeaway

    Chi-square critical value for $df = 2$ at $\alpha = 0.05$ is 5.991; $\chi^2 < 5.991$ fails to reject $H_0$.

  10. 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?

    • A
      The 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.
    • B
      Chi-square tests measure association, not causation; without an experiment, causal conclusions are not justified.Correct
    • C
      A -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.
    • D
      The is too small for a valid chi-square test.
      Why not D: is a perfectly valid degrees of freedom for a chi-square test.
    Explanation

    Chi-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 takeaway

    Chi-square tests detect association, not causation; causal claims require randomized experimental design.

  11. 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.

    • A
      I only
      Why not A: Randomness alone is not sufficient; the large-counts condition on expected counts must also be met.
    • B
      I and III only
      Why not B: The condition applies to expected counts, not observed counts; III is not required.
    • C
      I and II onlyCorrect
    • D
      I, II, and III
      Why not D: Observed counts can be 0; it is the expected counts that must be at least 5.
    Explanation

    Two 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 takeaway

    Chi-square conditions: (1) random sample and (2) all expected counts ≥ 5. Observed counts can be small.

  12. Question 12 · Hard

    A 3×2 contingency table (3 education levels × 2 voting outcomes) shows the following row totals and column totals:

    VotedDid not voteRow total
    High school80
    Some college60
    College grad60
    Col total12080200

    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 contribution
      Why not B: here; .
    • C
      ; cell contribution
      Why not C: Using the column total (120/2 = 60) as the expected count, ignoring the row total.
    • D
      ; cell contribution
      Why not D: Dividing by instead of : , or some other variant.
    Explanation

    . Cell contribution: .

    Key takeaway

    Compute expected counts before finding $\chi^2$; each cell contributes $(O-E)^2/E$ to the test statistic.