IB Biology HL Topic 4 — Genetics & Inheritance Paper 1 & 2 Core skill ~11 min read

Statistics of Dihybrid Crosses

Real results never land exactly on 9 : 3 : 3 : 1. The question is whether they are close enough to call it chance, or so far off that something else must be going on. The chi-squared test answers exactly that — and it is one of the most predictable calculations in the whole course.

📚 What you need to know

What the test is really asking

Toss a coin 100 times and you will not get exactly 50 heads. Getting 47 would not surprise anyone. Getting 12 would — you would start to suspect the coin.

Chi-squared does the same job with genetics data. It puts a number on how far your counts are from what the ratio predicted, then tells you how likely a gap that size is by chance alone.

The chi-squared formula χ2 = Σ (O − E)2 ÷ E
where O = observed number, E = expected number, Σ = sum of

Look at what the formula is doing. (O − E) is the gap. Squaring it removes the minus signs, so gaps in both directions count. Dividing by E scales it — a gap of 10 matters far more when you expected 20 than when you expected 200.

The method

🧩 Six steps, always in this order

  1. State your hypotheses. H0: no significant difference between observed and expected. H1: there is one.
  2. Work out the expected numbers from the ratio. Divide the total by the sum of the ratio parts, then multiply.
  3. Build a table with columns for O, E, O − E, (O − E)2 and (O − E)2/E.
  4. Add up the last column — that sum is χ2.
  5. Find the degrees of freedom (classes − 1) and read the critical value at p = 0.05.
  6. Compare and conclude. Below the critical value, accept H0. Above it, reject H0.
Build the table even if you can do the arithmetic in your head. Marks are given for the working, and a table stops you pairing an observed value with the wrong expected one — the single most common error in this calculation.

Critical values at a glance

Degrees of freedomp = 0.10p = 0.05p = 0.01p = 0.001
12.713.846.6410.83
24.605.999.2113.82
36.257.8211.3416.27
47.789.4913.2818.46

A dihybrid cross has four phenotype classes, so the degrees of freedom are 4 − 1 = 3, and the number you almost always end up comparing against is 7.82.

Where your chi-squared value lands (3 degrees of freedom) the critical value at p = 0.05 splits the line in two accept H₀ reject H₀ difference is due to chance something else is going on 0 2 4 6 8 10 our value 2.73 critical value 7.82 chi-squared value 2.73 is comfortably inside the accept region a value of 72.93 would sit far off the right-hand end of this line
The further right your value falls, the less likely the difference is to be chance. Landing past the dashed line is what “significant” means.

Worked examples

WORKED EXAMPLE 1

A dihybrid cross in rabbits was expected to give a 9 : 3 : 3 : 1 ratio. Of 320 offspring, the counts were 171, 65, 68 and 16. Carry out a chi-squared test and state your conclusion.

Step 1: hypotheses H0: no significant difference between observed and expected numbers Step 2: expected numbers 320 ÷ 16 = 20 per part → 180, 60, 60, 20 Step 3: (O − E)2/E for each class 81 ÷ 180 = 0.450 25 ÷ 60 = 0.417 64 ÷ 60 = 1.067 16 ÷ 20 = 0.800 Step 4: add them up χ2 = 2.73 Step 5: degrees of freedom and critical value 4 − 1 = 3, so the critical value at p = 0.05 is 7.82 2.73 < 7.82, so accept H₀ There is no significant difference — the results fit a 9 : 3 : 3 : 1 ratio, and the small differences are due to chance. The genes behave as if unlinked.
Phenotype classObserved (O)Expected (E)O − E(O − E)2(O − E)2/E
Brown coat, long ears171180−9810.450
Brown coat, short ears6560+5250.417
Grey coat, long ears6860+8641.067
Grey coat, short ears1620−4160.800
Total3203202.73
WORKED EXAMPLE 2

A second cross, also expected to give 9 : 3 : 3 : 1 from 320 offspring, gave counts of 240, 25, 22 and 33. Calculate χ2 and suggest an explanation.

Step 1: expected numbers are the same 180, 60, 60, 20 Step 2: (O − E)2/E for each class 3600 ÷ 180 = 20.00 1225 ÷ 60 = 20.42 1444 ÷ 60 = 24.07 169 ÷ 20 = 8.45 Step 3: total χ2 = 72.93 Step 4: compare with 7.82 (3 df, p = 0.05) 72.93 is far greater than 7.82 Reject H₀ — the difference is significant Far too many parental-type offspring and far too few of the other two classes. The likely cause is autosomal gene linkage: the two genes are on the same chromosome, so they did not assort independently.
Reading the pattern, not just the number. In the second example the two big classes are the parental combinations and the two small ones are the recombinants. That shape — parentals too high, recombinants too low — is the fingerprint of linkage. Always describe the pattern as well as quoting χ2.

Samples and populations

You cannot count every organism in a population, so you work with a sample and assume it represents the whole. Larger samples are more representative, which is why a chi-squared test on 40 offspring is much weaker evidence than the same test on 400.

This is also why the test uses raw counts rather than percentages. Converting to percentages throws away the sample size, and sample size is exactly what tells you how seriously to take a difference.

💡 Exam tip

⚠ Common mix-up

Up next: Genes & Polypeptides (Skills) — how gene loci are named, and how databases let you look up any human gene and its protein.

Want this explained one-to-one?

Book a free session with an experienced IB Biology tutor and get your trickiest topics made simple.

Book a Free Session →