Hardy-Weinberg Equilibrium
Three views: watch allele frequencies evolve under genotype fitness, run a χ² test on observed genotype counts, and turn a disease incidence into carrier frequency.
The null model of evolutionary change 🖖
In population genetics, the Hardy-Weinberg principle serves as the fundamental null hypothesis. It states that allele and genotype frequencies in a population will remain constant from generation to generation in the absence of evolutionary forces. Mathematically represented as p² + 2pq + q² = 1, it models a random-mating population of infinite size with no mutation, selection, migration, or genetic drift. Real populations never fully satisfy these conditions, but by measuring deviations from this equilibrium using statistical tests (like the chi-square test), geneticists can detect and measure the strength of evolutionary forces. The formula proves that sexual reproduction alone does not change allele frequencies, establishing that evolution requires active evolutionary pressures.
Genotypes are just two random draws 🖖
At its heart, Hardy-Weinberg is simple probability. If alleles pair up at random, the chance of an AA child is just p × p = p², exactly like flipping two heads. That lets you work backwards: from the fraction of people affected by a recessive condition (q²) you recover how common the silent carriers are. If 1 in 10,000 is affected, then q = 0.01 and carriers (2pq) are about 1 in 50 — 200 times more common than the disease itself.
A pure mathematician's afterthought 🖖
This cornerstone of genetics came from someone who thought little of it. In 1908 the geneticist Reginald Punnett — a cricketing friend of G. H. Hardy at Cambridge — could not explain why a dominant trait didn't slowly take over a population. Hardy scribbled the answer, then published it almost apologetically, being a pure mathematician who disdained applied maths. The physician Wilhelm Weinberg derived the same law that year in German; it was ignored for 35 years until Curt Stern gave both men equal credit in 1943.
Example problems
- Equal (p=0.5) - No fitness differences (all w = 1) with p = 0.5. Allele and genotype frequencies stay put generation after generation — the Hardy-Weinberg baseline.
- Selection - The recessive homozygote aa is less fit (w = 0.8). The recessive allele slowly declines, and the change decelerates as remaining copies hide in Aa heterozygotes.
- Overdominance - Heterozygote advantage — Aa is the fittest genotype, so both alleles are preserved and p settles at a stable equilibrium (~0.67) instead of one allele being lost.
- χ² test - Observed counts (AA=40, Aa=20, aa=40) that don't fit Hardy-Weinberg proportions; the χ² test flags a significant departure from equilibrium.
- Cystic fibrosis - Cystic-fibrosis-like incidence (~1 in 2500 affected). Recover the recessive allele frequency and the carrier frequency from q².