Chalk−1

Biology · Introductory biology · Worked example

Find allele frequencies from genotype counts

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.

Try one — Chalk checks each line

Count the A copies

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

Find p

p is the share of all 400 copies that are A.

260400=0.65

Find q

Every copy is A or a, so q=1−p. As a check, the 2⁢(30)+80=140 a copies are 0.35 of 400.

1−0.65=0.35

Predict the genotype frequencies

Under random mating, AA has frequency p2, Aa has 2⁢p⁢q and aa has q2. The three add to 1.

0.652=0.42252⁢(0.65)⁢(0.35)=0.4550.352=0.1225

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 2⁢p⁢q above. The next two steps check it.

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

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
GenotypeObservedExpected
AA9084.5
Aa8091
aa3024.5

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, 2⁢p⁢q 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, 2⁢p⁢q=0.32 and q2=0.04, which give 320, 160 and 20 of 500.

p=2⁢(320)+1602⁢(500)p=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.

2⁢(32)+53=117117198≈0.59199⋅2⁢(0.591)⁢(0.409)≈47.86

3. Somewhere new

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 2⁢p⁢q=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.480.48+2⁢(0.16)=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.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Open the Hardy–Weinberg tool Check the counts in Math Study the 12 key terms Open worked example on a board Hardy–Weinberg equation in Biology Reference

Your existing work stays on this device. Examples open as editable copies.