01 / 21

Hardy-Weinberg &
Evolutionary Change

Learn how the Hardy-Weinberg equilibrium serves as a null model to detect whether evolution is acting on a population's allele frequencies.

AP Biology

What Is a Gene Pool?

Every population carries a collective set of alleles: the gene pool. If you could inventory every copy of every gene in a population, you would know its allele frequencies: the fraction of each variant present.

Allele
A version of a gene, such as \(A\) or \(a\).
Frequency
Proportion of that allele in the gene pool, from 0 to 1.
Genotype
An individual's combination of alleles: \(AA\), \(Aa\), or \(aa\).

Why Do Allele Frequencies Matter?

Evolution is defined as a change in allele frequencies over time. If \(p\) and \(q\) stay the same generation after generation, the population is not evolving. If they shift, some evolutionary force is at work.

\(p=0.7\)
\(q=0.3\)
Generation 1
\(p=0.7\)
\(q=0.3\)
Generation 2 No Evolution Frequencies unchanged
\(p=0.7,\; q=0.3\)
\(p=0.5,\; q=0.5\)

The Hardy-Weinberg Principle

In 1908, mathematician G. H. Hardy and physician Wilhelm Weinberg independently showed that allele and genotype frequencies remain constant from generation to generation in a population that meets five specific conditions.

The principle gives us two equations. The allele-frequency equation:

Decoding \(p^2 + 2pq + q^2 = 1\)

\(A\;(p)\)
\(a\;(q)\)
\(A\;(p)\)
\(a\;(q)\)
AA Aa Aa aa
\(AA = p^2\)
\(Aa = 2pq\)
\(aa = q^2\)
$$p^2 + 2pq + q^2 = 1$$
All genotype frequencies sum to 100%

The Five Conditions for Equilibrium

Hardy-Weinberg equilibrium holds only when all five conditions are met. Violating any one drives evolution:

1
No mutation: Alleles do not change from one form to another.
2
No gene flow: No immigration or emigration of individuals (or gametes).
3
Random mating: Individuals pair without preference for genotype.
4
No natural selection: All genotypes survive and reproduce equally.
5
Large population size: No genetic drift (random fluctuations).

Equilibrium vs. Evolution

HW Equilibrium Evolutionary Change
Allele frequencies Constant across generations Changing across generations
Conditions All 5 met One or more violated
Genotype ratios Match \(p^2 : 2pq : q^2\) Deviate from prediction
Role Null hypothesis (baseline) Evidence of a force acting
Real-world? Rarely perfectly met The norm in nature

How to Apply Hardy-Weinberg

1
Identify the known value. Usually you know the frequency of the recessive phenotype, which equals \(q^2\).
2
Solve for \(q\). Take the square root: \(q = \sqrt{q^2}\).
3
Solve for \(p\). Use \(p = 1 - q\).
4
Calculate genotype frequencies. Find \(p^2\) (homozygous dominant), \(2pq\) (heterozygous), and \(q^2\) (homozygous recessive).
5
Compare with observed data. If observed genotype frequencies differ from expected, the population may be evolving.

Example 1: Finding Allele Frequencies

In a population of 500 wildflowers, 80 have white flowers (recessive phenotype \(aa\)). The remaining 420 have purple flowers. What are the allele frequencies?

1
Frequency of \(aa\): \(q^2 = \frac{80}{500} = 0.16\)
2
Solve for \(q\): \(q = \sqrt{0.16} = 0.4\)
3
Solve for \(p\): \(p = 1 - 0.4 = 0.6\)

Example 2: Genotype Predictions

Using \(p = 0.6\) and \(q = 0.4\) from Example 1, predict the expected genotype frequencies in a population of 500:

\(AA = p^2\)
\(0.6^2 = 0.36\)
Expected: \(0.36 \times 500 = 180\)
\(Aa = 2pq\)
\(2(0.6)(0.4) = 0.48\)
Expected: \(0.48 \times 500 = 240\)
\(aa = q^2\)
\(0.4^2 = 0.16\)
Expected: \(0.16 \times 500 = 80\)

Example 3: Detecting Evolution

The next generation, researchers count 200 AA, 180 Aa, and 120 aa. Is the population still in equilibrium?

Genotype Expected (HW) Observed
\(AA\) 180 200
\(Aa\) 240 180
\(aa\) 80 120

Forces That Violate Equilibrium

Mutation
New alleles introduced: changes \(p\) and \(q\) slowly over time.
Gene Flow
Migration mixes gene pools, shifting allele frequencies between populations.
Genetic Drift
Random sampling in small populations causes unpredictable frequency changes.
Natural Selection
Differential survival and reproduction favors certain alleles.
Non-Random Mating
Mate choice based on phenotype changes genotype ratios without altering allele frequencies directly.

HW as a Null Model

Observe Population Data Calculate HW Expected Frequencies Observed = Expected? No Evolution Evolution Detected Yes No

Genotype Frequencies vs. \(p\)

0 0.2 0.4 0.6 0.8 1.0
\(p\) (frequency of allele \(A\))
0 0.5 1.0 Frequency
\(p^2\) (AA)
\(2pq\) (Aa)
\(q^2\) (aa)

Common Mistakes to Avoid

Forgetting to Square-Root
Students use \(q^2\) directly as \(q\). Remember: if 16% are \(aa\), then \(q^2 = 0.16\) and \(q = 0.4\), not 0.16.
Mixing Phenotype and Genotype
The recessive phenotype frequency equals \(q^2\). The dominant phenotype includes both \(AA\) and \(Aa\): \(p^2 + 2pq\).
Assuming Real Populations Are in HW
HW is a theoretical baseline. All real populations violate at least one condition to some degree. The point is to measure the deviation.

Summary at a Glance

Concept Key Idea
\(p + q = 1\) Allele frequencies must sum to 1
\(p^2 + 2pq + q^2 = 1\) Predicted genotype frequencies under equilibrium
5 Conditions No mutation, no gene flow, random mating, no selection, large population
Null Hypothesis HW predicts "no evolution" baseline
Detecting Evolution Compare observed vs. HW expected: deviation = evolution
Start From Recessive phenotype frequency = \(q^2\), then solve backward

Question 1 of 5

In a population in Hardy-Weinberg equilibrium, the frequency of the recessive allele \(q = 0.3\). What is the expected frequency of heterozygous individuals?

Question 2 of 5

Which of the following would NOT cause a population to deviate from Hardy-Weinberg equilibrium?

Question 3 of 5

In a population, 36% of individuals show the recessive phenotype. Assuming HW equilibrium, what is the frequency of the dominant allele \(p\)?

Question 4 of 5

A researcher finds that a population's observed genotype frequencies differ significantly from those predicted by the HW equation. What can the researcher most directly conclude?

Question 5 of 5

If \(p = 0.8\) and the population is in HW equilibrium, what percentage of the population is homozygous recessive (\(aa\))?