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
- 8.1 Chi-square goodness-of-fit test
- 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
A chi-square goodness-of-fit test is used to determine whether
- two quantitative variables are linearly related in the population
- one categorical variable's distribution matches a claimed distribution
- the means of two or more populations differ from each other
- 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.
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
- a chi-square test for independence
- a chi-square test for homogeneity
- a chi-square goodness-of-fit test
- a two-sample t-test
Answer: B. a chi-square test for homogeneity Separate samples from several populations, one categorical variable: homogeneity.
A die is rolled 120 times to test whether it is fair. The expected count for each face is
- 20
- 120
- 6
- 1/6
Answer: A. 20 Expected count = n × p = 120 × 1/6 = 20.
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
- a chi-square test for homogeneity
- a two-proportion z-test
- a chi-square test for independence
- a goodness-of-fit test
Answer: C. a chi-square test for independence One sample with two categorical variables: test for independence (association).
For the die-rolling test with 6 categories, the degrees of freedom are
- 6
- 5
- 119
- 120
Answer: B. 5 For goodness of fit, df = number of categories − 1 = 5.
In a two-way table, the expected count for a cell is
- $\dfrac{(\text{row total})(\text{column total})}{\text{table total}}$
- $\dfrac{\text{row total}}{\text{column total}}$
- the observed count divided by the number of cells
- $(\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.
The chi-square statistic is computed as
- $\sum \dfrac{(\text{observed} - \text{expected})}{\text{expected}}$
- $\sum \dfrac{(\text{observed} - \text{expected})^2}{\text{expected}}$
- $\sum (\text{observed} - \text{expected})^2$
- $\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.
A two-way table has 3 rows and 4 columns. The degrees of freedom for a chi-square test are
- 12
- 7
- 6
- 11
Answer: C. 6 df = (rows − 1)(columns − 1) = 2 × 3 = 6.
A category has observed count 30 and expected count 25. Its contribution to $\chi^2$ is
- 5
- 0.2
- 25
- 1
Answer: D. 1 (30 − 25)²/25 = 25/25 = 1.
A two-way table has row total 60, column total 50, and grand total 200. The expected count for that cell is
- 30
- 110
- 12
- 15
Answer: D. 15 60 × 50/200 = 3000/200 = 15.
More AP Statistics
- Unit 1: Exploring One-Variable Data
- Unit 2: Exploring Two-Variable Data
- Unit 3: Collecting Data
- Unit 4: Probability, Random Variables, and Probability Distributions
- Unit 5: Sampling Distributions
- Unit 6: Inference for Categorical Data: Proportions
- Unit 7: Inference for Quantitative Data: Means
- Unit 9: Inference for Quantitative Data: Slopes
Studying for a test in your own class? Make a practice test from your class notes.