# Chi-Square Tests — AP Statistics
Chi-square () tests analyze categorical data. AP Statistics covers three types: goodness-of-fit, independence, and homogeneity. All use the same test statistic but apply to different research questions.
Key Concepts
Chi-Square Test Statistic
where = observed count, = expected count.
1. Goodness-of-Fit Test
- Purpose: Does the distribution of one categorical variable match a claimed distribution?
- : The distribution matches the claimed proportions.
- where = number of categories.
- Expected: .
2. Test of Independence
- Purpose: Are two categorical variables independent (in a single population)?
- : The variables are independent.
- Data in a two-way table.
- .
- Expected: .
3. Test of Homogeneity
- Purpose: Do different populations have the same distribution of a categorical variable?
- Same mechanics as the test of independence.
- : The distribution is the same across populations.
Conditions
- Random sample(s).
- All expected counts .
- Independence (10% condition).
Properties of
- Always .
- Right-skewed distribution.
- Larger → more evidence against .
- Always a right-tail test.
Worked Example
Problem: A die is rolled 60 times. Results: 8, 12, 10, 9, 11, 10 for faces 1-6. Test if the die is fair ().
Solution:
: The die is fair (each face has probability 1/6). for each face.
. at . Since , fail to reject . No evidence the die is unfair.
Practice Questions
1. A two-way table has 3 rows and 4 columns. What are the degrees of freedom?
.
2. If an expected count is 3, is the condition met?
No — all expected counts should be at least 5.
3. A test of independence yields with . The p-value is approximately 0.004. What do you conclude at ?
Reject . There is convincing evidence of an association between the two variables.
Want to check your answers and get step-by-step solutions?
Summary
- for all cells.
- Goodness-of-fit: one variable, known distribution.
- Independence/Homogeneity: two-way tables; same calculation, different context.
- Conditions: random, expected counts ≥ 5, independence.
- Always a right-tail test.
