Teacher answer key · Grades 10–12 · about 20 minutes

Answer key: Chi-Square Test Activity

For teachers. This page is hidden from search engines and not linked from student pages, but it is not password-protected, so please don’t share the link with students. Student activity: Chi-Square Test Activity.

Goal: Use the chi-square goodness-of-fit test to decide whether offspring counts fit an expected Mendelian ratio, and explain what the result does and does not show.

Connects to NGSS HS-LS3-3 (Apply concepts of statistics and probability to explain the variation and distribution of expressed traits in a population.)

Completed results table

Every value is the tool’s own readout for that setting, calculated with the same code as the Chi-square test for genetics.

Dataχ²Degrees of freedomCritical valueVerdict
Mendel: 705 purple : 224 white0.39113.841Fits 3 : 1
Poor fit: 250 : 15033.33313.841Reject the ratio
Snapdragons: 28 red : 55 pink : 17 white3.4225.991Fits 1 : 2 : 1
Mendel dihybrid: 315 : 108 : 101 : 320.4737.815Fits 9 : 3 : 3 : 1

Answers

  1. For 705 purple : 224 white, calculate the expected counts for a 3 : 1 ratio and then χ².

    The total is 929, so expected purple = 929 × 3/4 = 696.75 and white = 929 × 1/4 = 232.25. χ² = (705 − 696.75)²/696.75 + (224 − 232.25)²/232.25 = 0.098 + 0.293 = 0.391.

  2. Why is the 250 : 150 result rejected, even though it may not look far from 3 : 1?

    The expected counts are 300 and 100, so both classes are 50 away from expected, which is large relative to the expected 100: χ² = 2,500/300 + 2,500/100 = 8.33 + 25 = 33.33, far above 3.841. A χ² that large would happen by chance less than 0.1% of the time.

  3. How do you find the degrees of freedom? Why does the critical value change between the 3 : 1, 1 : 2 : 1 and 9 : 3 : 3 : 1 tests?

    df = number of classes − 1: 1 for 3 : 1, 2 for 1 : 2 : 1 and 3 for 9 : 3 : 3 : 1. With more classes χ² adds up more terms, so a larger total can happen by chance and the critical value rises: 3.841, 5.991 and 7.815 at α = 0.05.

  4. Do the snapdragon counts (28 red : 55 pink : 17 white) support incomplete dominance with a 1 : 2 : 1 ratio?

    Yes. χ² = 3.42 with df = 2 is below the critical value 5.991 (p ≈ 0.181), so the differences could be due to chance and the data fit 1 : 2 : 1.

  5. A “fits” verdict does not prove the hypothesis is true. Explain what it does tell you.

    It means the differences between observed and expected counts are small enough to be explained by chance (p > 0.05), so we fail to reject the hypothesis. Another ratio might fit as well, and small samples make almost any ratio hard to reject.

  6. Challenge: Mendel’s dihybrid counts give χ² = 0.47. Is that a good fit? What would a χ² of exactly 0 mean?

    Yes: 0.47 is far below the critical value 7.815 for df = 3, with p ≈ 0.925. A χ² of 0 would mean the observed counts exactly equal the expected counts, which is very unlikely in real data.

All activities