Biology · Simulator 040
Run many identical populations side by side, with no selection at all, only the luck of who reproduces. Watch allele frequencies wander and eventually hit 0% or 100%. Change the population size and see how much faster small populations lose variety.
In the Wright–Fisher model, each new generation of N diploid individuals (2N gene copies) is drawn at random from the previous one. If an allele has frequency p, the number of copies next generation is binomial: k ~ Binomial(2N, p). On average p stays the same, but it jitters, and the jitters accumulate.
variance per generation: p(1 − p) / 2N
heterozygosity: H_t ≈ H₀ (1 − 1/2N)^t
Eventually every population fixes at 100% or loses the allele at 0%. The chance of fixation equals the starting frequency. The expected time to fixation from p = 0.5 is about 2.8 N generations, so small populations lose variation quickly. This is why bottlenecks and founder effects matter for endangered species.
Each line is one population, with a fixed random seed for reproducible comparisons.
Neutral alleles, constant population size, random mating and no mutation or migration.
A population of 2000 butterflies crashes to 10 survivors for one generation, then recovers. How much heterozygosity is lost in that bottleneck generation, compared with a normal generation?
Loss per generation is 1/(2N). At N = 10 that is 1/20 = 5% in a single generation, against 1/4000 = 0.025% normally, 200 times more. A few bottleneck generations can erase variation that took thousands of generations to build up.