Simulation lab
Darwin's Finch Beak Selection Lab
On the Galapagos island of Daphne Major, Peter and Rosemary Grant documented evolution in real time: during droughts, only tough Tribulus seeds remained, and finches with larger, stronger beaks survived to breed. Here allele A represents a large-beak variant. Give it high fitness during drought years, reverse the fitnesses in wet years when small seeds favor small beaks, and watch fluctuating selection push the allele back and forth.
Natural Selection Simulator
Watch allele frequencies change under selection, generation by generation.
Fitness = relative reproductive success (1.0 = baseline). Try w_aa = 0 to model a lethal recessive allele.
Generation-by-generation table
| Gen | p | q | w̄ (mean fitness) |
|---|---|---|---|
| 0 | 0.1000 | 0.9000 | — |
| 6 | 0.4381 | 0.5619 | 0.7954 |
| 12 | 0.7380 | 0.2620 | 0.9226 |
| 18 | 0.8759 | 0.1241 | 0.9681 |
| 24 | 0.9383 | 0.0617 | 0.9852 |
| 30 | 0.9683 | 0.0317 | 0.9927 |
| 36 | 0.9835 | 0.0165 | 0.9963 |
| 42 | 0.9913 | 0.0087 | 0.9980 |
| 48 | 0.9954 | 0.0046 | 0.9990 |
| 54 | 0.9976 | 0.0024 | 0.9995 |
| 60 | 0.9987 | 0.0013 | 0.9997 |
Each generation: p′ = (p²·wAA + pq·wAa) / w̄, where w̄ = p²·wAA + 2pq·wAa + q²·waais mean fitness. This is a deterministic model — it ignores genetic drift, mutation and migration, so real small populations will bounce around these curves.
How to use it
Set p0 = 0.3 and model drought with wAA = 1.0, wAa = 0.95, waa = 0.5 over 100 generations.
Watch the p curve rise and record the generation at which the readout reports fixation of the large-beak allele.
Model wet years by reversing fitnesses: wAA = 0.6, wAa = 0.7, waa = 1.0; watch p fall as small beaks are favored.
Repeat the drought with p0 = 0.7 to see how standing variation changes the speed of response.
Open the generation table and track mean fitness (w-bar): it climbs whenever the population matches the current environment.
Beak size is a polygenic, quantitative trait in reality; compressing it into a single diallelic locus is a teaching simplification. The panel collapses heritability and the selection differential into fitness values, and it ignores gene flow between islands, genetic drift, and the fact that real droughts vary in intensity. Fitness values are illustrative rather than measured from the Grants' data.
What you will learn
- Explain directional selection on beak size during drought as differential survival.
- Describe fluctuating selection as fitnesses reversing between wet and dry years.
- Explain why higher starting variation (p0) speeds the evolutionary response.
- Cite the Grants' finch work as evidence of natural selection observable within decades.