PPolySim OS
For K-12 Students · Genetic Drift

Genetic Drift for a drug dose

Built for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework. Simulate a drug dose live below — adjust the inputs and watch it respond, right in your browser.

Genetic Drift (Wright-Fisher)Live

Controls

Presets

Even with no selection, allele frequencies wander purely by chance as each generation is randomly sampled from the last. In small populations this genetic drift is fast and alleles quickly fix or vanish; in large populations it is slow. Each colored line is an independent population starting from the same frequency.

▶ Run in Python

Data Inspector

Fixed (reached 1)0
Lost (reached 0)0
Population size50

Governing equation

Reading this result: Over many replicates the fraction that fix an allele converges on its starting frequency p₀=0.5 — drift is directionless, but the odds of fixation equal where you began.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Genetic Drift

Frequently asked questions

Is this good for k-12 students?
Yes — this version of "Genetic Drift for a drug dose" is framed for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.