← Guides Genotype Frequencies

Introductory 10 min read Open the module

Genotype frequencies and Hardy-Weinberg

Two allele frequencies fix three genotype frequencies after one generation of random mating.

Two alleles, three genotypes

At one autosomal locus with two alleles, A and a, every diploid individual is one of three genotypes: AA, Aa or aa. Write p for the frequency of A among all gene copies and q = 1 − p for a. Counting is the whole of the first step: if a population has D individuals of AA, H of Aa and R of aa, then p = (2D + H)/2(D + H + R), because each AA carries two A copies and each Aa carries one.

The second step runs the other way. Suppose individuals mate at random, which means the gametes that meet are independent draws from the gene pool. An egg carries A with probability p and so does a sperm, so the zygote is AA with probability p². It is aa with probability q², and Aa with probability 2pq, the 2 because the A can come from either parent. These are the Hardy-Weinberg proportions, and they sum to 1 because (p + q)² = p² + 2pq + q².

The Genotype Frequencies module plots exactly these three expressions for every p from 0 to 1. There is nothing random in it and nothing to set: Run draws the curves, Reset clears them. Each vertical slice through the chart is one population at Hardy-Weinberg equilibrium.

The three curves

Figure 1. P(AA) = p² rises from 0 to 1, P(aa) = q² falls from 1 to 0, and P(Aa) = 2pq is the hump between them. At p = 0.30 the three values are 0.09, 0.42 and 0.49, which add to 1.

Reading the curves

Two features of the chart carry most of the teaching. The first is the top of the hump: 2pq is largest at p = q = 0.5, where it equals 0.5 and the two homozygotes are 0.25 each. No population at Hardy-Weinberg equilibrium has more than half heterozygotes. A sample can exceed 0.5 by chance, which is what the Chi-Square HWE Test module is for, but the expectation never does.

The second feature is at the edges. Take p = 0.9, so the rare allele a has q = 0.1. Only q² = 0.01 of the population is aa, but 2pq = 0.18 is Aa. Of all the a copies, the fraction sitting in heterozygotes is 2pq/(2pq + 2q²) = p = 0.9. A rare allele lives almost entirely in heterozygotes, where a recessive phenotype does not show. This single fact explains why selection against a rare recessive is slow (see the Natural Selection tutorial) and why carrier frequencies of recessive diseases are far higher than disease frequencies.

A useful habit is to read any genotype count against this chart. If 1 in 10,000 people have a recessive condition, then q² = 0.0001, q = 0.01, and the carrier frequency 2pq is about 0.02: one person in fifty, two hundred times the frequency of the condition itself.

Exercise

Read one population

Open the module, press Run and hover the chart at p = 0.30. The panel lists the three genotype frequencies and their sum.

What to expect. p² = 0.09, 2pq = 0.42, q² = 0.49, sum 1. Move to p = 0.50 and the middle value reaches its maximum, 0.50.

Open the walkthrough step →

One generation is enough

The proportions do not require the parents to be in Hardy-Weinberg proportions. Whatever genotype frequencies a population starts with, one round of random mating produces p², 2pq and q² in the offspring, because the gamete frequencies are p and q regardless of how the copies were packaged into parents. From then on the proportions stay put as long as the assumptions hold: random mating, a very large population, and no selection, mutation or migration. The De Finetti Parabola module draws this one-generation jump as an arrow onto the equilibrium curve.

The one-generation rule needs the two sexes to carry the same allele frequency, which is automatic for an autosomal locus. An X-linked locus breaks it: males carry one copy and females two, so if the sexes start at different frequencies the population needs several generations to settle. Sons get their X from their mother, so the male frequency each generation equals the previous female frequency, while the female frequency is the average of the two.

An X-linked locus takes longer

Figure 2. Frequency of A on the X chromosome in females and in males, starting at 0.7 and 0.3. The difference halves and changes sign every generation; both converge on (2 × 0.7 + 0.3)/3 = 0.567, the frequency weighted by the number of X copies each sex carries.

Exercise

Where the rare allele hides

In the module, hover at p = 0.90 and read 2pq and q². Then work out what fraction of the a copies are in heterozygotes.

What to expect. 2pq = 0.18 and q² = 0.01. Heterozygotes hold 0.18 a copies per individual against 0.02 in aa homozygotes, so 0.18/0.20 = 0.9 of all a copies are in heterozygotes, the same as p.

Open the walkthrough step →

Summary

  • Allele frequencies come from counting copies: p = (2D + H)/2N for genotype counts D, H and R.
  • Random mating turns p and q into genotype frequencies p², 2pq and q², which sum to 1.
  • Heterozygosity 2pq peaks at 0.5 when p = 0.5 and never exceeds it at equilibrium.
  • A rare allele sits almost entirely in heterozygotes: the fraction is p, the frequency of the common allele.
  • Autosomal loci reach the proportions in one generation; X-linked loci approach them over several.
  • The proportions are a null model, and departures from them point to structure, inbreeding, selection or error.