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.

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.

SpeciesSigned upDid notTotal
Cat8040120
Dog701080
Total15050200

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.

PlanTVPhoneLaptopTotal
Basic1005030180
Premium504030120
Total1509060300

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.

MethodSet fruitNo fruitTotal
Bee boxes6634100
Hand5446100
Total12080200

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.

SiteJuvenileAdultTotal
Site 14852100
Site 23664100
Site 33664100
Total120180300

Test at α=0.05\alpha = 0.05 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.

CityBusTrainBikeTotal
City X1056530200
City Y759530200
Total18016060400

(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 α=0.05\alpha = 0.05, 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.

ExperienceCarries kitNo kitTotal
Novice305080
Intermediate342660
Expert362460
Total100100200

(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 α=0.05\alpha = 0.05, state a conclusion. (e) Would the decision change at α=0.01\alpha = 0.01?

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.

GradeLo-fiClassicalNoneTotal
Juniors783933150
Seniors425157150
Total1209090300

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

Chi-square: answer key

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

  2. Study A: test of independence, H0H_0 coffee style and remote work independent vs HaH_a associated, df=2df = 2. Study B: test of homogeneity, H0H_0 same learning-mode distribution across schools vs HaH_a not the same, df=4df = 4.

  3. Expected counts (basic) 90, 54, 36 and (premium) 60, 36, 24, all above 5; df=(2−1)(3−1)=2df = (2 - 1)(3 - 1) = 2.

  4. Expected counts are 60 and 40 in every cell; χ2=0.6+0.9+0.6+0.9=3.0\chi^2 = 0.6 + 0.9 + 0.6 + 0.9 = 3.0 with df=1df = 1 (p-value about 0.083).

  5. Expected counts 40 (juvenile) and 60 (adult) per site; χ2=2.4+1.6=4.0\chi^2 = 2.4 + 1.6 = 4.0, df=2df = 2. Since 4.0<5.9914.0 < 5.991 (p about 0.135), fail to reject H0H_0; no convincing evidence the age distribution differs.

  6. (a) Homogeneity test, H0H_0 same commute-mode distribution vs HaH_a different. (b) Expected 90, 80, 30 per city. (c) χ2=10.625\chi^2 = 10.625, df=2df = 2. (d) p about 0.005 < 0.05, reject H0H_0; convincing evidence the distributions differ.

  7. (a)/(b) Test of independence, H0H_0 experience and kit independent vs HaH_a associated. (c) χ2=8.4667\chi^2 = 8.4667, df=2df = 2. (d) p about 0.0145 < 0.05, reject H0H_0. (e) At α=0.01\alpha = 0.01, p > 0.01, so fail to reject; the decision changes.

  8. (a) χ2=18.8\chi^2 = 18.8, df=2df = 2 (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.

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