A DNA test of 200 fish at one gene finds 90 AA, 80 Aa and 30 aa. Find the allele frequencies p and q, and the genotype counts Hardy–Weinberg equilibrium predicts for a sample of this size.
The 200 fish carry 400 copies of the gene. Each AA fish carries two A copies and each Aa fish carries one.
2(90)+80=260
2
Find p
p is the share of all 400 copies that are A.
400260=0.65
3
Find q
Every copy is A or a, so q=1−p. As a check, the 2(30)+80=140 a copies are 0.35of 400.
1−0.65=0.35
4
Predict the genotype frequencies
Under random mating, AA has frequency p2, Aa has 2pq and aa has q2. The three add to 1.
0.652=0.42252(0.65)(0.35)=0.4550.352=0.1225
5
Predict before you multiply
The sample has 80 Aa fish, a share of 80/200=0.40. Predict whether that is more or fewer heterozygotes than equilibrium expects, from the 2pq above. The next two steps check it.
6
Turn frequencies into expected counts
Multiply each frequency by the 200 fish sampled. Why can an expected count be 84.5? It is an average over many samples, so it need not be a whole number.
200(0.4225)=84.5200(0.455)=91200(0.1225)=24.5
7
Compare with what was counted
The sample has a few more homozygotes and 11 fewer heterozygotes than equilibrium predicts. Whether a gap this size is more than chance is a question for a chi-square test.
Observed and expected genotype counts
Genotype
Observed
Expected
AA
90
84.5
Aa
80
91
aa
30
24.5
8
A near miss
For a gene on the X chromosome, each male carries one copy, not two. 200 males then hold 200 copies, and their genotype shares are p and q, not p2,2pq and q2. Count the copies each individual carries before dividing.
Result
p=0.65 and q=0.35. Hardy–Weinberg equilibrium predicts 84.5 AA, 91 Aa and 24.5 aa among 200 fish, against the 90,80 and 30 counted.
Your turn
1. One like the example
A sample of 500 plants has 320 AA, 160 Aa and 20 aa. Find p and q, and compare the counts with Hardy–Weinberg expectations.
Show the answer and explanation
p=0.8 and q=0.2. The expected counts are 320,160 and 20, exactly what was counted.
The 1,000 gene copies include 2(320)+160=800 A copies, so p=800/1000=0.8 and q=0.2. Then p2=0.64,2pq=0.32 and q2=0.04, which give 320,160 and 20of 500.
p=2(500)2(320)+160p=0.8
2. A variation
In the lactase variant, 99 people of Finnish ancestry from the same project carry 32 with two persistence copies, 53 with one and 14 with none. Find p, the persistence allele’s frequency, and the expected number of heterozygotes.
Show the answer and explanation
p≈0.591, and about 47.9 heterozygotes are expected, against 53 counted.
The 198 copies include 2(32)+53=117 persistence copies, so p=117/198≈0.591 and q≈0.409. The expected heterozygotes are 99⋅2(0.591)(0.409)≈47.86. The sample has a few more heterozygotes than expected, a gap a chi-square test would judge.
In a population in Hardy–Weinberg equilibrium, 16% of people are aa. What fraction of all copies of the a allele sit in heterozygotes?
Show the answer and explanation
0.6, so 60% of the a copies are in heterozygotes.
q=√0.16=0.4 and p=0.6. Per person, heterozygotes hold 2pq=0.48 copies of a, one each, and aa individuals hold 2(0.16)=0.32, two each. The heterozygotes’ share is 0.48/(0.48+0.32)=0.6. The rarer an allele, the more of it hides in carriers.
√0.16=0.42(0.6)(0.4)=0.480.48+2(0.16)0.48=0.6
Keep exploring
The Hardy–Weinberg tool opens with these counts and shows p,q and the expected counts. Its Send to… route carries the observed and expected counts to a chi-square test in Statistics.