Free tools & games for everyone
Free · No sign-up · No accounts
See evolution at work: allele frequencies under selection, mutation and drift (Hardy-Weinberg, Wright-Fisher), and moths that adapt their camouflage to the bark.
| Tab | Move between tabs, boxes and buttons |
|---|---|
| Enter in a box | Run the model |
| Arrow keys in a number box | Change the value by one step |
The allele tab uses the standard one-locus model of population genetics. With frequency p of A and q = 1 − p, random mating gives genotype shares p², 2pq and q² (Hardy-Weinberg). After selection the new frequency is p' = (p² wAA + p q wAa) / w̄, where w̄ = p² wAA + 2pq wAa + q² waa is the mean fitness; then a share u of A mutates to a and v of a to A. The drift lines follow the Wright-Fisher model: the next generation's 2N gene copies are drawn at random using that frequency.
The moth tab is inspired by the peppered moth of industrial Britain, whose dark form became common on soot-darkened trees and rare again after clean-air laws. Here a moth is eaten with a chance of hunting × the difference between its shade and the bark's, survivors pair at random, and a child's shade is the parents' average plus a normal random change. Because a child's shade is the parents' average, variety would shrink every generation without the random change; that change stands in for mutation and the mixing of many genes. It is a simple teaching model of selection on a trait, not a model of real moth genetics. Runs are seeded, so the same settings and seed give the same result. Everything runs in your browser.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product