AP Statistics Unit 8: Inference for Categorical Data: Chi-Square

260 multiple-choice questions on AP Statistics Unit 8, Inference for Categorical Data: Chi-Square, organized by topic. They are not tied to any one class or teacher: they follow the College Board course framework. Learn the 11 key terms with the flashcards first, then test yourself. Every answer comes with a short explanation.

Take the practice test · Flashcards · All study tools

What it covers

  1. 8.1 Chi-square goodness-of-fit test
  2. 8.2 Tests for homogeneity and independence

Key terms

8.1 Chi-square goodness-of-fit test

Chi-square distribution
A right-skewed family of curves on [0, ∞), indexed by degrees of freedom, used as the sampling distribution of the χ² statistic
Large-counts condition (chi-square)
The requirement that every expected count is at least 5, so the chi-square curve is a good approximation to the sampling distribution
Degrees of freedom (goodness of fit)
For a chi-square goodness-of-fit test, df = (number of categories) − 1

8.2 Tests for homogeneity and independence

Chi-square goodness-of-fit test
Tests whether one categorical variable follows a hypothesized distribution
Chi-square test for homogeneity
Compares the distribution of a categorical variable across several populations or treatments
Chi-square test for independence
Tests for association between two categorical variables in one population
Expected count
The count expected under H0; in a two-way table (row total × column total)/grand total
Chi-square statistic
Σ (observed − expected)² / expected
Degrees of freedom (two-way table)
(rows − 1)(columns − 1)
Association (categorical variables)
A relationship in which the conditional distribution of one categorical variable changes with the value of another
Conditional distribution
The distribution of one categorical variable among only those individuals who fall in a given category of another variable

Sample practice questions

  1. A chi-square goodness-of-fit test is used to determine whether

    1. two quantitative variables are linearly related in the population
    2. one categorical variable's distribution matches a claimed distribution
    3. the means of two or more populations differ from each other
    4. a single population proportion equals one claimed value

    Answer: B. one categorical variable's distribution matches a claimed distribution Goodness of fit compares observed counts in categories with counts expected from a hypothesized distribution.

  2. Researchers take separate random samples of freshmen, sophomores, juniors, and seniors and ask each student's favorite sport. To test whether preferences differ by grade, use

    1. a chi-square test for independence
    2. a chi-square test for homogeneity
    3. a chi-square goodness-of-fit test
    4. a two-sample t-test

    Answer: B. a chi-square test for homogeneity Separate samples from several populations, one categorical variable: homogeneity.

  3. A die is rolled 120 times to test whether it is fair. The expected count for each face is

    1. 20
    2. 120
    3. 6
    4. 1/6

    Answer: A. 20 Expected count = n × p = 120 × 1/6 = 20.

  4. A single random sample of adults is classified by both political party and opinion on a policy. To test whether the variables are associated, use

    1. a chi-square test for homogeneity
    2. a two-proportion z-test
    3. a chi-square test for independence
    4. a goodness-of-fit test

    Answer: C. a chi-square test for independence One sample with two categorical variables: test for independence (association).

  5. For the die-rolling test with 6 categories, the degrees of freedom are

    1. 6
    2. 5
    3. 119
    4. 120

    Answer: B. 5 For goodness of fit, df = number of categories − 1 = 5.

  6. In a two-way table, the expected count for a cell is

    1. $\dfrac{(\text{row total})(\text{column total})}{\text{table total}}$
    2. $\dfrac{\text{row total}}{\text{column total}}$
    3. the observed count divided by the number of cells
    4. $(\text{row total}) + (\text{column total})$

    Answer: A. $\dfrac{(\text{row total})(\text{column total})}{\text{table total}}$ Under the null hypothesis, expected = row total × column total / grand total.

  7. The chi-square statistic is computed as

    1. $\sum \dfrac{(\text{observed} - \text{expected})}{\text{expected}}$
    2. $\sum \dfrac{(\text{observed} - \text{expected})^2}{\text{expected}}$
    3. $\sum (\text{observed} - \text{expected})^2$
    4. $\dfrac{\text{observed}}{\text{expected}}$

    Answer: B. $\sum \dfrac{(\text{observed} - \text{expected})^2}{\text{expected}}$ Each component squares the deviation and divides by the expected count; then add over all cells.

  8. A two-way table has 3 rows and 4 columns. The degrees of freedom for a chi-square test are

    1. 12
    2. 7
    3. 6
    4. 11

    Answer: C. 6 df = (rows − 1)(columns − 1) = 2 × 3 = 6.

  9. A category has observed count 30 and expected count 25. Its contribution to $\chi^2$ is

    1. 5
    2. 0.2
    3. 25
    4. 1

    Answer: D. 1 (30 − 25)²/25 = 25/25 = 1.

  10. A two-way table has row total 60, column total 50, and grand total 200. The expected count for that cell is

    1. 30
    2. 110
    3. 12
    4. 15

    Answer: D. 15 60 × 50/200 = 3000/200 = 15.

Practice all 260 questions

More AP Statistics

Studying for a test in your own class? Make a practice test from your class notes.