Topic 8A · Lesson 5 of 6
Testing ratios with chi-squared
The chi-squared test
Real results never match a predicted ratio exactly, because which gametes fuse is a matter of chance. The chi-squared test tells you whether the difference between what you observed and what you expected is small enough to be due to chance, or so big that something else must be going on (for example linkage, or a wrong hypothesis).
where is the observed number in a class, is the expected number in that class, and means "add up for all the classes". There are no units.
How to do it:
- Step 1: State the null hypothesis: there is no significant difference between the observed and expected results (any difference is due to chance). For a cross, this usually means "the results fit the expected ratio".
- Step 2: Calculate the expected numbers : total number of offspring × the fraction expected in each class.
- Step 3: For each class, work out , then add them up to get .
- Step 4: Degrees of freedom = number of classes − 1.
- Step 5: Look up the critical value at a probability of 0.05 (5%) for those degrees of freedom. Common values: 3.84 (1 degree of freedom), 5.99 (2), 7.82 (3).
- Step 6: If is less than the critical value, accept the null hypothesis: the difference is not significant and is probably due to chance. If is greater than the critical value, reject it: there is a significant difference, so something other than chance is affecting the results.
Worked example
A chi-squared test on a dihybrid cross
A cross between two RrYy plants gave 160 offspring: 97 round yellow, 26 round green, 28 wrinkled yellow and 9 wrinkled green. Do these results fit a 9:3:3:1 ratio?
Show solutionHide solution
- Null hypothesis: there is no significant difference between the observed numbers and those expected from a 9:3:3:1 ratio.
- Expected numbers: the ratio has parts, so one part is . = 90, 30, 30 and 10.
- Round yellow: .
- Round green: .
- Wrinkled yellow: .
- Wrinkled green: .
- .
- Degrees of freedom ; critical value at is 7.82.
- , so we accept the null hypothesis: the results fit a 9:3:3:1 ratio, and the differences are probably due to chance. This supports the idea that the two genes are on different chromosomes and assort independently.
Worked example
Chi-squared shows linkagetop grade
Apply the chi-squared test to the fruit fly test cross above (42, 40, 9, 9), with a null hypothesis of a 1:1:1:1 ratio.
Show solutionHide solution
- Expected: in each class.
- .
- Degrees of freedom = 3; critical value 7.82.
- , so reject the null hypothesis. The difference is significant: the probability that it is due to chance is less than 5%. The genes do not assort independently, which supports the conclusion that they are linked.
Practise this topic
Both are part of Premium.