Simulates deterministic allele frequency change when migrants enter a focal population. Each generation, a fraction m₁ and optionally m₂ of the focal population is replaced by migrants with their own allele frequencies.
Use the horizontal scrollbar below to see contribution columns, p(next), q(next), Δp, equilibrium, and distance to equilibrium.
| Gen | p | q | p² | 2pq | q² | Resident share | Resident contribution | m₁ | pₘ₁ | m₁pₘ₁ | m₂ | pₘ₂ | m₂pₘ₂ | p(next) | q(next) | Δp | p equilibrium | |p − equilibrium| | Closed-form p | Check difference |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| No simulation yet. | ||||||||||||||||||||