X2 Contingency Testing
If two events are independent, the probability of both
events occurring is the product of the probabilities
of each separate event.
Event A occurs with P(A) and event B occurs with P(B),
then the probability of both A and B occurring is P(A)
P(B). The contingency X2 test evaluates whether
one factor influences the probability of a second factor.
Example
In a di-hybrid F2 cross with complete dominance
gene action at both loci the expected F2
progeny segregation is 9A_B_:3A_bb:3aaB_:1aabb, provided
the two loci segregate independently and the individual
loci segregate in a 3:1 ratio.
Strickberger, pgs. 317-318.
| class |
A_B_ |
Aabb |
aaBb |
aabb |
Total |
| observed |
180 |
30 |
60 |
10 |
280 |
| expected |
157.5 |
52.5 |
52.5 |
17.5 |
280 |
The X2 with Yates correction is 17.14 with
3df and the associated probability is less than 0.001.
We are testing Ho:9:3:3:1 with α
= 0.05, so we fail to accept Ho.
Significance
There are three possible explanations for the overall
X2 test being significant:
- distorted segregation at the A locus;
- distorted segregation at the B locus;
- the two loci do not segregate independently. We
can set up three hypothesis:
- Ho:3A:1a
- Ho:3B:1b
- Ho:A and B loci do not segregate independently.
The X2 tests show evidence that the A locus
segregates 3:1, but the B locus does not segregate 3:1.
There is evidence of a distorted segregation ratio at
the B locus. Now we will test for independence between
the two loci.
| |
B_ |
bb |
Totals |
| A_ |
180 |
30 |
210 |
| aa |
60 |
10 |
70 |
| |
240 |
40 |
280 |
If we assume independence we can find the expected
relative frequencies of each class. We then multiply
the expected relative frequencies by the total number
to get the expected number of each class.
P(A_B_) = P(A_)P(B_) = 0.75(0.857) = 0.64275.
The expected number of A_B_ is 0.64275(280)
= 179.97.
P(A_bb) = P(A_)P(bb) = (0.75)(0.143) = 0.10725.
The expected number of A_bb is 0.10725(280)
= 30.03.