Natural selection – changing allele frequency (peppered moth)
BiologyEvolutionAges 17–18
How do you mainly use this simulation?
Use it with your class: students open it from a link or a QR code, with no account needed.
A moth population rests on tree trunks: genotypes AA and Aa give dark wings, aa gives light wings, and each genotype has its own fitness (survival rate to reproduction). Each generation, individuals are removed according to fitness, alleles are passed on, and A ⇄ a mutation occurs at a small rate; a graph tracks allele frequency across generations against the theoretical Δp curve. Students drag the fitness values, switch the bark color to reverse the direction of selection, and watch the favored allele rise over time. Two more scenarios link alleles to molecules: membrane phospholipids (unsaturated or saturated fatty acids) against water temperature, and photosynthetic pigment sets against water depth; recorded runs plot the favoured allele's frequency against the condition.
Lesson: The modern synthesis: natural selection and mutation change allele frequency in a population
What it shows
Natural selection changes allele frequencies because genotypes differ in fitness, the chance of surviving to reproduce. In the peppered-moth view, dark (AA, Aa) or light (aa) wings are better camouflaged depending on bark color. Two scenarios link alleles to molecules: phospholipids with more unsaturated fatty acids keep membranes fluid in the cold while saturated ones suit warm water, and an extra pigment that absorbs green light helps seaweed in deep water. Each generation the simulation removes individuals by fitness and breeds the next from the survivors' alleles, compared with the deterministic prediction Δp.
How to use
Press Next generation a few times, then let it run and watch p follow the theoretical curve. Change bark color reverses selection; compare a small and a large Population size N. Under Scenario, choose Membrane lipids and temperature or Photosynthetic pigments and light: the Water temperature or Water depth slider then sets the fitness values. Let p settle, press Record this generation, and repeat at other settings to plot the favoured allele's frequency.
Parameters you can change
- Fitness of AA (dark wings) 0–1
- Fitness of Aa (dark wings) 0–1
- Fitness of aa (light wings) 0–1
- Population size N 50–2000 individuals
- Initial frequency of allele A 0.01–0.99
- A ⇄ a mutation rate per generation 0–0.01
- Scenario Peppered moth (wing colour), Membrane lipids and temperature, Photosynthetic pigments and light
- Water temperature (membrane scenario) 0–40 °C
- Water depth (pigment scenario) 0–20 m
Questions to explore
- Why does selection against light aa moths remove allele a only slowly once it has become rare?
- What happens to allele frequencies when the fitness of AA, Aa and aa are all equal?
- Why does a population of 50 moths stray further from the theoretical curve than a population of 2000?
Teaching ideas
All guides- Hardy–Weinberg Virtual Lab: Selection and Genetic DriftHardy–Weinberg virtual lab: model allele frequencies over many generations, calculate p², 2pq and q², then break the rules with selection and drift.
- Selective Breeding Virtual Lab: Artificial SelectionA selective breeding virtual lab: choose the hairiest Fast Plants as parents, measure S and R, calculate realized heritability and watch inbreeding rise.