The chi-square test has only a few steps, but each step has a typical mistake. This example uses the seed counts that Gregor Mendel reported in 1866.
In the second generation of a cross between pea plants with round seeds and pea plants with wrinkled seeds, Mendel counted 5,474 round seeds and 1,850 wrinkled seeds. Do these counts agree with the 3:1 ratio expected for one gene with a dominant allele and a recessive allele?
The null hypothesis is that there is no significant difference between the observed counts and the counts expected from a 3:1 ratio. Any difference is due to chance.
The total is seeds. The expected number of round seeds is . The expected number of wrinkled seeds is .
Mistake to avoid: do not use percentages or ratios in the formula. The chi-square formula needs counts. The expected counts must add up to the same total as the observed counts: .
The formula is , where is an observed count and is an expected count.
Round seeds: . Wrinkled seeds: .
Add the two terms: . Mistakes to avoid: divide by the expected count, not the observed count, and square each difference before dividing.
The degrees of freedom are the number of categories minus one. There are two categories, round and wrinkled, so there is degree of freedom. The number of seeds does not matter for this step.
The table on the AP Biology equations and formulas sheet gives a critical value of for and one degree of freedom. The calculated value, , is smaller than .
Because the calculated value is smaller than the critical value, we fail to reject the null hypothesis. The difference between the observed counts and a 3:1 ratio can be explained by chance.
Do not write that the test “proves” the 3:1 ratio or that the hypothesis is “accepted”. The correct statements are “fail to reject the null hypothesis” and “the data are consistent with a 3:1 ratio”. If the calculated value were larger than the critical value, the null hypothesis would be rejected, and you would look for a biological reason, such as linked genes or a different pattern of inheritance.
Try the same five steps on a cross with four phenotype categories, where there are three degrees of freedom. If one step keeps going wrong, bring your work to a tutoring conversation.
Explore AP tutoring · Ask about tutoring
Based in Massachusetts, USA. Tutoring is online.
Independent SAT and AP preparation. SAT and AP are trademarks of the College Board, which does not sponsor or endorse this site.