Wright–Fisher update
Each child picks its parent independently, so the number of mutants in the next generation is binomial. Its mean is the selected frequency; its variance is drift.
FR24 · Evolution and ecology
How often does a new mutation take over a population of fifty, and how long does that take? A neutral mutation wins as often as its starting share. One newcomer among fifty wins once in fifty tries, and a win takes about a hundred generations. A 5 percent advantage lifts that newcomer's chance only to about 9 percent, so most beneficial mutations are still lost by chance.
Watch one Wright–Fisher population pass labels down the generations, then compare 240 replicate runs with the exact fixation probability and the diffusion formula.
Exact values solve the absorption equations of the finite Wright–Fisher chain. Replicates are scored only when a whole batch has finished, so slow rounds are not dropped. The exported file lists every round with its seed, outcome and duration.
Physics tutorial
BackgroundA population that stays the same size still changes its genes, because who has children is partly luck. In a population of fifty, that luck is large enough to fix or remove a mutation within a few dozen generations.
Why it mattersEvolution is often told as selection alone. Counting outcomes in many identical populations shows how much of the result is chance, and how a small advantage changes the odds.
Start with the essentials
Each child picks its parent independently, so the number of mutants in the next generation is binomial. Its mean is the selected frequency; its variance is drift.
Valid when is large and small. The Lab also shows the exact probability of the finite chain, which differs slightly.
For this is about generations; for a single new mutant it approaches .
Typical misconceptionA beneficial mutation always spreads.
Better mental modelA single new mutant with in a population of fifty fixes only about one time in ten. Early on there are too few copies for the advantage to beat luck.
Leave the half-and-half preset running.
What to observe: Amber and teal stripes drift until one colour fills the row; then the population is relabelled and the race starts again.Look at the fixation chart while the replicate batch finishes.
What to observe: About half the replicate runs fix the mutant, and the interval covers the exact value of one half.Choose Better, yet usually lost.
What to observe: Most runs still lose the single mutant, yet the fixed fraction sits near the exact value of about 0.094, almost five times the neutral one in fifty.Evolution as statistical physics · Reading path
Articles on this path that use this experiment, followed by the other experiments they suggest.