Chi-square worksheet with answer key
8 problems on chi-square, ready to print for class or homework. The answer key prints on its own page, so hand out everything before it.
Name: ______________________________ Date: ______________ Period: ______
Problem 1
An animal shelter records, for a random sample of 200 recently adopted pets, the species of the pet and whether the adopter signed up for a free training class.
| Species | Signed up | Did not | Total |
|---|---|---|---|
| Cat | 80 | 40 | 120 |
| Dog | 70 | 10 | 80 |
| Total | 150 | 50 | 200 |
Assuming no association between species and signing up, find the expected count for all four cells and check the expected-counts condition.
Problem 2
For each study, name the chi-square test that fits (homogeneity or independence), state the hypotheses in words, and give the degrees of freedom.
- Study A. A researcher takes one random sample of 250 adults and records each person's favorite coffee style (drip, espresso, or cold brew) and whether they work remotely, then asks whether coffee style and remote work are associated.
- Study B. A district office draws separate random samples of 100 students from each of three high schools and records each student's preferred learning mode (in person, hybrid, or online), then asks whether the distribution of learning mode is the same across the three schools.
Problem 3
A streaming service takes a random sample of 300 subscribers and cross-classifies each by plan tier and the device they watch on most.
| Plan | TV | Phone | Laptop | Total |
|---|---|---|---|---|
| Basic | 100 | 50 | 30 | 180 |
| Premium | 50 | 40 | 30 | 120 |
| Total | 150 | 90 | 60 | 300 |
Find the expected count for every cell under the null hypothesis of no association, and give the degrees of freedom.
Problem 4
An orchard tests two pollination methods on whether each tree sets fruit. It randomly assigns 100 trees to managed bee boxes and 100 trees to hand pollination, then records the outcome for each tree.
| Method | Set fruit | No fruit | Total |
|---|---|---|---|
| Bee boxes | 66 | 34 | 100 |
| Hand | 54 | 46 | 100 |
| Total | 120 | 80 | 200 |
Compute the chi-square statistic and its degrees of freedom for a test of whether the fruit-set rate differs by method.
Problem 5
At three wetland sites, a conservation crew bands a random sample of 100 birds per site and records whether each bird is a juvenile or an adult.
| Site | Juvenile | Adult | Total |
|---|---|---|---|
| Site 1 | 48 | 52 | 100 |
| Site 2 | 36 | 64 | 100 |
| Site 3 | 36 | 64 | 100 |
| Total | 120 | 180 | 300 |
Test at whether the age distribution is the same across the three sites. Find the expected counts, the chi-square statistic, the degrees of freedom, and the decision.
Problem 6
A transportation study compares primary commute mode in two cities. Independent random samples of 200 commuters are drawn in each city, and each commuter's main mode (bus, train, or bike) is recorded.
| City | Bus | Train | Bike | Total |
|---|---|---|---|---|
| City X | 105 | 65 | 30 | 200 |
| City Y | 75 | 95 | 30 | 200 |
| Total | 180 | 160 | 60 | 400 |
(a) State the hypotheses and name the test. (b) Find the expected counts. (c) Compute the chi-square statistic and degrees of freedom. (d) At , state your conclusion in context.
Problem 7
A random sample of 200 day hikers at a national park is classified by experience level and by whether they carry a first-aid kit.
| Experience | Carries kit | No kit | Total |
|---|---|---|---|
| Novice | 30 | 50 | 80 |
| Intermediate | 34 | 26 | 60 |
| Expert | 36 | 24 | 60 |
| Total | 100 | 100 | 200 |
(a) Name the appropriate test and explain why. (b) State the hypotheses. (c) Find the expected counts and the chi-square statistic with its degrees of freedom. (d) At , state a conclusion. (e) Would the decision change at ?
Problem 8
A high school compares study-music preferences using separate random samples of 150 juniors and 150 seniors. Each student names their usual study music: lo-fi, classical, or none.
| Grade | Lo-fi | Classical | None | Total |
|---|---|---|---|---|
| Juniors | 78 | 39 | 33 | 150 |
| Seniors | 42 | 51 | 57 | 150 |
| Total | 120 | 90 | 90 | 300 |
(a) Compute the chi-square statistic and degrees of freedom. (b) Identify the cell that contributes most to the statistic and interpret it in context. (c) A classmate suggests running this instead as a test of independence. Explain why a test of homogeneity is the right choice here.
From statslearn.org/worksheets/chi-square-worksheet. Free to print and copy for classroom use.
Chi-square: answer key
Expected counts: cat and signed up 90, cat and did not 30, dog and signed up 60, dog and did not 20; all exceed 5, so the condition is met.
Study A: test of independence, coffee style and remote work independent vs associated, . Study B: test of homogeneity, same learning-mode distribution across schools vs not the same, .
Expected counts (basic) 90, 54, 36 and (premium) 60, 36, 24, all above 5; .
Expected counts are 60 and 40 in every cell; with (p-value about 0.083).
Expected counts 40 (juvenile) and 60 (adult) per site; , . Since (p about 0.135), fail to reject ; no convincing evidence the age distribution differs.
(a) Homogeneity test, same commute-mode distribution vs different. (b) Expected 90, 80, 30 per city. (c) , . (d) p about 0.005 < 0.05, reject ; convincing evidence the distributions differ.
(a)/(b) Test of independence, experience and kit independent vs associated. (c) , . (d) p about 0.0145 < 0.05, reject . (e) At , p > 0.01, so fail to reject; the decision changes.
(a) , (p < 0.001). (b) The lo-fi cells contribute most (5.4 each): juniors pick lo-fi much more than expected (78 vs 60), seniors much less (42 vs 60). (c) Two separate grade samples compared on one variable calls for homogeneity, not independence.
Every step is worked at statslearn.org/practice/chi-square-practice. Free to print and copy for classroom use.
The key gives final answers only. The full worked solution for each problem is on the matching practice set, and every other sheet is on the worksheets page.
More worksheets from this unit
- Chi-square two-way table worksheet with answer key
- Checking conditions for inference worksheet with answer key
- Interpreting confidence intervals: worksheet with answer key
- Justifying claims: confidence interval worksheet
- P-value interpretation worksheet with answer key
- Proportion z-test worksheet with answer key
- Margin of error and sample size worksheet with answer key
- Sampling distribution of p-hat worksheet with answer key
- Two-proportion z interval and z test worksheet with answers
- Type I and Type II Error worksheet with answer key