Count degrees of freedom from classes, not genes
- The idea
- Predict
- See it
- Why
- Check
The idea
“With two genes there's 1 degree of freedom, because it's genes minus one.”
A dihybrid cross is about two genes, so 2 feels like the number to use. The test never sees genes, only the count in each class.
The short version
The mistake: With two genes there's 1 degree of freedom, because it's genes minus one.
What's actually true: Degrees of freedom are the number of outcome classes minus one, however many genes made them.
- The genes only set the expected ratio. Chi-square adds one term per class, comparing observed with expected.
- So df is the number of classes minus one. One gene with three phenotypes gives 2 df.
- At the same p-value, fewer df means a lower critical value. Use too few and you can reject a hypothesis the data actually fit.
On the exam: Count the outcome classes in the table and subtract one. How many genes made them doesn't matter.