Skip to main content
Sandbox Physics

FR24 · Evolution and ecology

Genetic Drift and Fixation: Who Takes Over a Small Population?

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.

Interactive modelGenetic Drift and Fixation: Who Takes Over a Small Population?
Mutant fixed in replicate runsP^fix=0.508±0.023\hat P_{\mathrm{fix}}=0.508\pm0.023
Exact fixation probabilityPfix=0.5P_{\mathrm{fix}}=0.5
Mean time to fixationtˉfix=64.6 gen\bar t_{\mathrm{fix}}=64.6\ \text{gen}
Sample traced to one ancestorTMRCA=48 genT_{\mathrm{MRCA}}=48\ \text{gen}
Mutant frequency in replicate populations
Fixation probability: simulated, exact and diffusion
More numbers and how they are computed
Diffusion approximation of the fixation probability
00
Exact mean time to fixation, given fixation
00
Simulated mean time to fixation
00
Neutral diffusion fixation time
00
Kingman mean time to the sample ancestor
00
Replicate rounds scored
00
Mutants at the start
00
Round shown in the scene
00

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

Drift decides who wins in a small population

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

Focus question
How often does a new mutation take over a population of fifty, and how long does that take?
One-sentence intuition
A neutral mutant fixes with probability equal to its starting frequency. With an advantage, the chance rises, but a single new mutant is still lost most of the time unless NsNs is large.

Core mathematical model

Wright–Fisher update

kt+1∼Bin ⁣(N, pt(1+s)1+s pt),pt=ktNk_{t+1}\sim\mathrm{Bin}\!\left(N,\ \frac{p_t(1+s)}{1+s\,p_t}\right),\qquad p_t=\frac{k_t}{N}

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 Np(1−p)Np(1-p) is drift.

Diffusion formula for fixation

u(p0)=1−e−2Nsp01−e−2Ns → s→0  p0u(p_0)=\frac{1-e^{-2Nsp_0}}{1-e^{-2Ns}}\ \xrightarrow{\,s\to0\,}\ p_0

Valid when NN is large and ss small. The Lab also shows the exact probability of the finite chain, which differs slightly.

Neutral time to fixation

tˉfix(p0)≈−2N(1−p0)ln⁡(1−p0)p0\bar t_{\mathrm{fix}}(p_0)\approx-\frac{2N(1-p_0)\ln(1-p_0)}{p_0}

For p0=1/2p_0=1/2 this is about 1.39N1.39N generations; for a single new mutant it approaches 2N2N.

Common difficulties

Better does not mean safe

Typical misconceptionA beneficial mutation always spreads.

Better mental modelA single new mutant with s=0.05s=0.05 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.

Run the experiment

  1. 01

    Watch one population

    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.
  2. 02

    Count many populations

    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.
  3. 03

    Give the mutant an advantage

    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.

Related experiments and articles

Evolution as statistical physics · Reading path

From random sampling to pulled and pushed waves

Articles on this path that use this experiment, followed by the other experiments they suggest.

  1. ArticleGenetic drift lets a neutral gene take over a finite population
  2. ArticleFixation probability and time, and why a better mutant often loses
  3. ArticleThe coalescent traces a sample back to its common ancestor
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy