Population Parameters
Simulation Settings
Selection (optional)
s > 0: favors allele A
s < 0: favors allele a
s = 0: neutral drift
Simulate genetic drift in finite populations—watch alleles randomly fix or go extinct
s > 0: favors allele A
s < 0: favors allele a
s = 0: neutral drift
The Wright–Fisher model describes how allele frequencies change over time in finite populations due to random sampling of gametes (genetic drift). It's the foundation of population genetics theory.
For a neutral allele at frequency p, the variance in frequency after one generation is:
Var(p) = p(1-p) / (2N)
This shows that drift is strongest when:
When selection is present, the deterministic force of selection competes with stochastic drift. If |s| >> 1/(2N), selection dominates. If |s| << 1/(2N), drift dominates. This determines whether evolution is primarily adaptive or random.
Real populations often have effective population sizes (N~e~) much smaller than census size due to variation in offspring number, sex ratios, and overlapping generations. For conservation, N~e~ > 50 prevents inbreeding depression, while N~e~ > 500 maintains adaptive potential.