AP Biology · Natural selection
Population genetics and Hardy-Weinberg
1Populations and allele frequencies
A population is a group of individuals of the same species living in the same area and interbreeding. Its gene pool is all the alleles of all genes in the population.
Evolution at its simplest is a change in allele frequencies in a population over generations (microevolution).
Mechanisms that change allele frequencies:
- Natural selection: alleles that increase fitness become more common.
- Genetic drift: random changes in allele frequencies, strongest in small populations.
- Bottleneck effect: a disaster drastically reduces population size; surviving alleles may not represent the original population (e.g. northern elephant seals hunted to about 20 individuals).
- Founder effect: a small group starts a new population with different allele frequencies (e.g. high rates of certain disorders among the Amish).
- Gene flow: movement of alleles between populations through migration; makes populations more similar.
- Mutation: introduces new alleles, but slowly.
- Non-random mating: mate choice changes genotype frequencies.
Check yourself
A hurricane kills 90% of a lizard population at random, changing allele frequencies. This is:
Show the answer
A bottleneck effect (genetic drift)
Random survival of a few.
2The Hardy-Weinberg equilibrium
The Hardy-Weinberg principle states that allele and genotype frequencies remain constant from generation to generation if no evolution occurs. It is a null model used to test whether a population is evolving.
For a gene with two alleles:
- p = frequency of the dominant allele; q = frequency of the recessive allele.
$$p + q = 1$$
$$p^2 + 2pq + q^2 = 1$$
- $p^2$ = frequency of homozygous dominant individuals.
- $2pq$ = frequency of heterozygotes.
- $q^2$ = frequency of homozygous recessive individuals.
Five conditions for Hardy-Weinberg equilibrium:
- No mutations.
- Random mating.
- No natural selection.
- Very large population (no genetic drift).
- No gene flow (no migration).
Real populations rarely meet all five, so deviations indicate evolution.
Check yourself
Which condition is required for Hardy-Weinberg equilibrium?
Show the answer
A very large population
Prevents genetic drift.
3Hardy-Weinberg calculations
Always start from the homozygous recessive frequency ($q^2$), because recessive phenotypes reveal their genotype.
Worked example:
- In a population, 16% of individuals show a recessive trait. Find the allele and genotype frequencies.
- $q^2 = 0.16$, so $q = \sqrt{0.16} = 0.4$.
- $p = 1 - 0.4 = 0.6$.
- $p^2 = 0.36$ (36% homozygous dominant); $2pq = 2(0.6)(0.4) = 0.48$ (48% heterozygous); $q^2 = 0.16$.
- Check: 0.36 + 0.48 + 0.16 = 1.
Worked example 2:
- Cystic fibrosis affects 1 in 2,500 people. What proportion are carriers?
- $q^2 = 1/2500 = 0.0004$, so $q = 0.02$.
- $p = 0.98$; $2pq = 2(0.98)(0.02) = 0.0392$, about 1 in 25 people are carriers.
How genotype frequencies change with allele frequency in a population at Hardy-Weinberg equilibrium
Check yourself
If q = 0.3, what is the frequency of heterozygotes?
Show the answer
0.42
2 × 0.7 × 0.3.
4Testing for evolution
To test whether a population is evolving:
- Calculate expected genotype frequencies from allele frequencies using $p^2 + 2pq + q^2$.
- Compare with observed genotype numbers, often with a chi-square test.
- A significant difference means at least one Hardy-Weinberg condition is violated: the population is evolving.
if a population has fewer heterozygotes than expected, there may be non-random mating (e.g. inbreeding) or selection against heterozygotes.
Check yourself
Observed genotype frequencies differ significantly from Hardy-Weinberg predictions. This suggests:
Show the answer
The population is evolving
A condition is being violated.
5Going deeper: solving Hardy-Weinberg problems step by step
Evolution is a change in allele frequencies in a population over generations. The Hardy–Weinberg principle describes a population that is not evolving: a null model against which real populations are compared.
Five conditions for Hardy–Weinberg equilibrium
- No mutation.
- Random mating.
- No natural selection.
- A very large population (no genetic drift).
- No gene flow (no migration in or out).
If all hold, allele and genotype frequencies stay constant. Real populations almost never meet them all, which is why they evolve.
The equations: for a gene with two alleles,
- p + q = 1, where p is the frequency of the dominant allele and q of the recessive.
- p² + 2pq + q² = 1: p² = frequency of homozygous dominant individuals; 2pq = heterozygotes; q² = homozygous recessive.
The method
- Start with q²: the homozygous recessive individuals are the only ones whose genotype is certain from their phenotype.
- Take the square root: q.
- p = 1 − q.
- Calculate p² and 2pq.
- Multiply by the population size if numbers of individuals are wanted.
in a population of 500 plants, 80 have white flowers (recessive); the rest are purple.
- q² = 80 ÷ 500 = 0.16.
- q = √0.16 = 0.40.
- p = 0.60.
- p² = 0.36; 2pq = 2(0.6)(0.4) = 0.48.
- Expected numbers: 180 homozygous purple; 240 heterozygous; 80 white.
- Check: 0.36 + 0.48 + 0.16 = 1.
Worked example (carriers of a disease): a recessive disorder affects 1 in 2500 births.
- q² = 1 ÷ 2500 = 0.0004.
- q = 0.02.
- p = 0.98.
- Carriers: 2pq = 2(0.98)(0.02) = 0.039, about 1 in 25.
Carriers are a hundred times more common than affected individuals: this is why harmful recessive alleles persist.
Worked example (from genotype counts): a population has 90 AA, 60 Aa and 50 aa individuals (200 total).
- Count alleles: A = 2(90) + 60 = 240; a = 2(50) + 60 = 160; total 400.
- p = 0.60; q = 0.40.
- Expected at equilibrium: AA 0.36 × 200 = 72; Aa 96; aa 32.
- Observed (90, 60, 50) differ from expected: fewer heterozygotes. The population is not in equilibrium; perhaps mating is not random, or selection acts against heterozygotes.
- Note that here q was found by counting alleles, not from q², because the population is not assumed to be in equilibrium.
Mechanisms that change allele frequencies
- Natural selection: the only one that consistently produces adaptation.
- Genetic drift: random change, strongest in small populations. It can eliminate alleles by chance and reduces variation.
- Bottleneck effect: a disaster shrinks the population; the survivors' alleles are a non-representative sample (cheetahs; northern elephant seals).
- Founder effect: a few individuals start a new population (high rates of certain disorders in isolated communities).
- Gene flow: movement of alleles between populations through migration; makes populations more alike.
- Mutation: the source of new alleles; slow by itself.
- Non-random mating: changes genotype frequencies (more homozygotes with inbreeding).
Worked example (identifying the mechanism)
- A storm kills most of a small island's lizards at random; the survivors happen to be mostly one color: genetic drift (bottleneck).
- Pollen from a crop field fertilizes wild relatives nearby: gene flow.
- Darker mice on dark lava survive predation better: natural selection.
- Ten birds blown to a new island found a population: founder effect.
Why variation matters: populations with little genetic variation are less able to respond to disease or environmental change and are at greater risk of extinction.
Common mistakes
- Using the frequency of the dominant phenotype as p². (It is p² + 2pq.)
- Forgetting to take the square root.
- Confusing allele frequency (p, q) with genotype frequency (p², 2pq, q²).
- Saying drift is strongest in large populations.
- Saying the dominant allele must be the more common one.
- Rounding too early.
Check yourself
In a population in Hardy–Weinberg equilibrium, 9% of individuals show the recessive phenotype. What is the frequency of heterozygotes?
Show the answer
0.42
q² = 0.09, so q = 0.3 and p = 0.7; 2pq = 2 × 0.7 × 0.3.
6For top marks
- Show every step of Hardy-Weinberg calculations, starting with $q^2$.
- Distinguish allele frequencies (p, q) from genotype frequencies (p², 2pq, q²).
- Explain why genetic drift has a bigger effect in small populations.
- Link each violated condition to a mechanism of evolution.
"Because small populations have fewer individuals, random events like the death of a few individuals can greatly change allele frequencies, so genetic drift is stronger."
Check yourself
In a population of 1,000, 90 individuals have the recessive phenotype. How many are expected to be heterozygous?
Show the answer
420
q = 0.3, p = 0.7, 2pq = 0.42.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera