Genetics and Molecular Biology · Unit 6: Populations and complex traits

Population Genetics: Hardy-Weinberg and Evolutionary Forces

Why does a dominant allele not take over a population, and what does it take to change how common an allele is? This lesson derives the Hardy-Weinberg proportions, tests a real-looking sample against them with a chi-square, and then sets each evolutionary force (selection, drift, migration, mutation and non-random mating) against that null model. Afterwards you can turn genotype counts into allele frequencies, estimate carrier frequency from the incidence of a recessive condition, and explain how heterozygote advantage keeps the sickle allele in malaria-exposed populations.

Watch first Why Dominant Alleles Do Not Spread · 2:52

If an allele is dominant, it shows up in heterozygotes as well as homozygotes. So why does a dominant allele not spread, generation by generation, until almost everyone shows it?

That was the question put to the mathematician G. H. Hardy in 1908. The answer is short, and it is the starting point for all of population genetics: dominance describes how alleles act inside one person, and says nothing about how common they become. To change how common an allele is, something has to act on the population. This lesson builds the baseline in which nothing acts, then adds each force in turn.

The idea: with nothing acting, frequencies stay put

A population, here, is a group of individuals that mate with one another. At a locus (a place on a chromosome) with two alleles, A and a, call the fraction of all allele copies that are A p, and the fraction that are a q. With only two alleles, p + q = 1.

Now picture every egg and sperm in the population thrown into one pool, and zygotes made by drawing one of each at random. The chance of drawing A from both is p x p. The chance of a heterozygote is pq for A from the egg and a from the sperm, plus qp for the reverse. That gives the Hardy-Weinberg proportions:

AA = p^2 Aa = 2pq aa = q^2 (and p^2 + 2pq + q^2 = 1)

This is the product and sum rule from probability and crosses, applied to a whole population instead of one cross. Count the A copies in the next generation and you get p^2 + pq = p(p + q) = p. The allele frequency has not moved, and one round of random mating restores the proportions whatever they were before.

Wilhelm Weinberg, a physician in Stuttgart, derived the same result independently in a lecture in January 1908, so the principle carries both names.

The assumptions are the whole point. The population is large, mating is random with respect to this locus, allele frequencies are the same in both sexes, and there is no selection, mutation, migration or drift. Real populations break these. Hardy-Weinberg is a null model: a statement of what you would see if nothing were happening, against which you detect what is.

Counting alleles and testing equilibrium

Worked problem, part 1. In a sample of 1,000 people typed at a codominant locus (each genotype distinguishable), there are MM 298, MN 489 and NN 213. Assume unrelated individuals and accurate typing.

  1. Count alleles, not people. Each MM person carries two M copies and each MN person one. M copies = 2 x 298 + 489 = 1,085, out of 2,000. So p = 0.5425, and q = 1 - p = 0.4575. Count first; never take a square root of a homozygote frequency to find p before you know the sample is at equilibrium.
  2. Expected counts. MM = 1,000 x 0.5425^2 = 294.3. MN = 1,000 x 2 x 0.5425 x 0.4575 = 496.4. NN = 1,000 x 0.4575^2 = 209.3. They add to 1,000.
  3. Chi-square. (298 - 294.3)^2 / 294.3 = 0.046; (489 - 496.4)^2 / 496.4 = 0.110; (213 - 209.3)^2 / 209.3 = 0.065. The total is 0.22.
  4. Degrees of freedom. Three classes, minus 1 because the counts must add to 1,000, minus 1 more because p was estimated from these same counts: 1, not 2.
  5. Decide. The critical value at P = 0.05 for one degree of freedom is 3.84. Since 0.22 is far below it (P is about 0.64), there is no evidence of departure.

That last sentence is all you can say. A good fit does not prove random mating or the absence of selection. A poor fit does not prove selection either, because inbreeding, a sample that mixes two populations, and genotyping errors can all produce one.

Worked problem, part 2. A recessive condition affects 1 in 2,500 newborns in a hypothetical population. Assume the population is at equilibrium at this locus. Affected people are aa, so q^2 = 1/2,500 and q = 0.02, p = 0.98. Carriers are 2pq = 2 x 0.98 x 0.02 = 0.039, about 1 in 26.

Carriers are about 100 times as common as affected people (0.0392 / 0.0004 = 98). The ratio is 2pq / q^2 = 2p/q, close to 2/q when q is small. A rare allele sits almost entirely in heterozygotes: here 98% of a copies are in carriers. This is how families meet a recessive condition with no affected relatives in the pedigree.

The forces that move frequencies

Selection means genotypes differ consistently in survival or reproduction. It changes allele frequencies, and its speed depends on which genotypes it can see. Against a rare recessive it is slow, because selection acts only on aa, and almost every a copy is hiding in a carrier. If aa individuals never reproduced, q would fall as q_n = q_0 / (1 + n q_0). Starting at 0.02, halving q to 0.01 would take 50 generations.

Migration (gene flow) mixes gene pools. If a fraction m of the next generation’s allele copies comes from migrants with frequency p_m:

p’ = (1 - m) p + m p_m

With p = 0.2, p_m = 0.6 and m = 0.1, p’ = 0.18 + 0.06 = 0.24. Migration pulls populations toward each other.

Mutation is the source of new alleles (see mutation) but a weak force on frequency. In human parent-offspring trios, the TOPMed study estimated about 1.2 x 10^-8 new single-base changes per base pair per generation, a genome average. Over a few generations, that barely moves an allele frequency.

Non-random mating is the odd one out. Inbreeding, mating between relatives, and assortative mating for a trait influenced by the locus, make homozygotes more common and heterozygotes rarer. They pair the same copies differently, so on their own they change genotype frequencies and leave p and q where they were. They can still expose recessive alleles to selection.

Drift is change by chance.

Drift and founders: chance in small populations

Each generation, only a sample of the parents’ allele copies makes it into the offspring. In a small population that sample can stray far from the parents’ frequency. Under the simplest model, with a constant effective population size Ne (the number of breeders in an idealized population that would drift at the same rate), the spread of the change in one generation is:

variance of the change in p = p(1 - p) / (2Ne)

With Ne = 50 and p = 0.5, the variance is 0.0025, a standard deviation of 0.05 in a single generation. Drift has no direction, and in a small population a frequency wanders until it hits 0 (the allele is lost) or 1 (it is fixed).

Drift and selection: replicate populations⚙ original · interactive

Expected beside observed
ExpectedObserved

With no systematic force acting, the expected p stays put; drift scatters small populations around that line without a direction, and selection gives the line one. This is a sketch of the logic: constant Ne, random mating, selection against aa only. Viability selection with wAA = wAa = 1 and waa = 1 - s; each generation draws 2Ne allele copies at random (binomial sampling); 30 replicates, 50 generations. Here s is the cost to aa, not the s of q = s/(s + t).

Peter Buri saw this in 1956 with 107 laboratory populations of Drosophila, each kept at 8 males and 8 females and each started at a frequency of one half for an eye-colour allele. Over 19 generations the populations spread apart, and many lost or fixed the allele, while the average across them stayed near where it began.

A founder effect is drift at the start of a population: a small group carries, by chance, a different set of alleles than the population it left. In a 2020 exome study of 5,521 Lancaster County Old Order Amish participants, 124 carried the KCNQ1 variant p.T224M, about 1 in 45, and none was homozygous. That is an allele frequency of 124 / (2 x 5,521), about 0.011: a carrier frequency of 1 in 45 is not an allele frequency of 1/45. The authors note that pathogenic variants may occur at much higher frequency in founder populations, and they attribute this variant’s frequency to a founder effect and drift. Tay-Sachs disease among Ashkenazi Jewish people, and the group of rare diseases called the Finnish disease heritage, are other examples often taught this way. These are features of particular populations and their histories, not of races: most human genetic variation lies within populations, not between them.

Balanced polymorphism: sickle cell and malaria

The sickle allele of the β-globin gene (HBB) changes glutamate to valine at position 6 of the β chain, and deoxygenated HbS polymerises (see protein binding and allostery). Sickle-cell disease (SS) is autosomal recessive. In conditions where the disease shortens life, selection should remove S. Yet in regions with intense falciparum malaria the allele is common.

The reason is heterozygote advantage. Sickle-cell trait (AS) does not give immunity to malaria. In two cohorts of children on the Kenyan coast it made no difference to symptomless infection, but it was associated with about 50% protection against mild malaria, 75% against hospital admission and almost 90% against severe disease. AS outsurvives AA through malaria and SS through the disease, and selection then holds both alleles. If the cost to AA is s and the cost to SS is t, the equilibrium is:

q = s / (s + t)

Design problem

Interpret these illustrative data (not measurements) for a malaria-endemic population. Newborns are AA 0.81, AS 0.18 and SS 0.01, so q = 0.10, at Hardy-Weinberg proportions. Relative survival to adulthood is AA 0.88, AS 1.00 and SS 0.20. What maintains the S allele, where should its frequency settle, and what would adults look like? What other data would you need to rule out migration or drift?

One way to do it

Heterozygotes survive best, so this is balancing selection. The fitness costs are s = 1 - 0.88 = 0.12 for AA and t = 1 - 0.20 = 0.80 for SS. Assuming a large, randomly mating population with survival as the only force, the equilibrium is q = 0.12 / 0.92 = 0.13. Since newborns start at 0.10, q should rise slightly over generations.

Check one generation. Survivors are AA 0.81 x 0.88 = 0.713, AS 0.18, SS 0.01 x 0.20 = 0.002, out of 0.895. As fractions of adults: AA 0.797, AS 0.201, SS 0.002. Adult q = 0.201/2 + 0.002 = 0.103. Under Hardy-Weinberg, q = 0.103 predicts 0.184 heterozygotes, but adults have 0.201. Adults show a heterozygote excess, even though their newborns fit. When to sample matters.

To separate selection from the alternatives, show that the allele’s frequency follows the historical intensity of malaria across regions, that AS children are protected in follow-up studies, and that newborns fit equilibrium while adults show the excess. Migration from a high-S population would raise q without producing that newborn-to-adult change.

The next lesson uses the same allele counts, across hundreds of thousands of loci at once, to look for variants associated with complex traits.

How we measure it

Gene counting and the Hardy-Weinberg chi-square test

Each genotype is counted, and allele frequencies are found by counting allele copies, with no assumption about equilibrium. Expected counts under Hardy-Weinberg proportions are then compared with the observed ones, by a chi-square with one degree of freedom or by an exact test when an allele is rare.

Hemoglobin electrophoresis

Hemoglobin from a blood sample is run through a gel in an electric field. HbS has lost one negative charge on each beta chain, so it moves differently from HbA, and carriers (AS) show both bands. This lets a survey count AA, AS and SS individuals directly.

Replicate small populations

Many populations are started from the same allele frequency and kept at a fixed small size. Chance acts differently in each, so the spread of frequencies across populations shows drift directly, which a single population cannot.

Exome sequencing in a founder population

The protein-coding parts of the genome are sequenced in thousands of members of a population descended from few founders. Variants that drift made common can be counted and tested for association with a trait, and then tested for function in cells.

Finish line

Test yourself

8 questions

Practice and MCAT-style, with explained answers.

Next · Lesson 26

Complex Traits, Heritability and GWAS

If height is 80 percent heritable, is 80 percent of your height genetic? No, and the reason is the whole lesson.

Continue →

← Lesson 24 · Forward and Reverse Genetics: Screens, RNAi and CRISPR

↑ Top