Distinguish drift from a selective advantage
Trace chance changes in finite populations with equal reproductive contribution.
Learning outcome: Explain how allele frequencies can change under neutral sampling and compare replicated simulations without cherry-picking.
Starting recap
A finite offspring sample can differ from its expected proportions. Here the next generation is sampled from the immediately preceding generation.
All lessons are open directly. Your saved experiments remain when you leave and return.
Try
A population begins half A and half a. All individuals have equal contribution, yet a sampled generation can contain more or fewer A copies.
Open the experimentPredict
Can A reach 100% without a selective advantage? Will a larger population always fluctuate less in every individual run?
Experiment
Prespecify seeds 1, 2 and 3. Compare each at population sizes 10 and 50, retaining all trajectories. Inspect any fixation or loss and check later generations.
Follow finite-population sampling
Worked teaching model · synthetic values · Each population starts at 50% A. Twelve generations each draw N independent pseudorandom alleles from the preceding frequency. A and a have equal reproductive contribution. Mutation and migration are absent; fixation and loss are absorbing in this model.
Reset keeps your prediction, captures and practice history.
Frequency through generations
Each point records one generation; connecting lines do not model changes within a generation. A missing next-generation frequency is left undefined rather than drawn as zero.
Inspect the generation trace
| Generation | A (%) |
|---|---|
| 0 | 50.000 |
| 1 | 30.000 |
| 2 | 40.000 |
| 3 | 50.000 |
| 4 | 50.000 |
| 5 | 60.000 |
| 6 | 30.000 |
| 7 | 30.000 |
| 8 | 40.000 |
| 9 | 40.000 |
| 10 | 70.000 |
| 11 | 60.000 |
| 12 | 60.000 |
| Row | Quantity | Value (%) |
|---|---|---|
| 1 | A frequency at generation 0 | 50 |
| 2 | A frequency at generation 1 | 30 |
| 3 | A frequency at generation 2 | 40 |
| 4 | A frequency at generation 3 | 50 |
| 5 | A frequency at generation 4 | 50 |
| 6 | A frequency at generation 5 | 60 |
| 7 | A frequency at generation 6 | 30 |
| 8 | A frequency at generation 7 | 30 |
| 9 | A frequency at generation 8 | 40 |
| 10 | A frequency at generation 9 | 40 |
| 11 | A frequency at generation 10 | 70 |
| 12 | A frequency at generation 11 | 60 |
| 13 | A frequency at generation 12 | 60 |
Generation 12: 6 of 10 carry A (60.0%).
Each next generation samples the preceding frequency, not the initial 50%. A changing frequency can arise here without a selective advantage. Seeds are reproducible synthetic runs; one trajectory cannot establish the population-size effect.
Captures preserve recipes and replay their calculated results. They are synthetic model evidence, not physical measurements.
Understand
Apply
Public practice checks a specific claim. It does not establish independent mastery.
Explain why one increasing trajectory does not prove selection. Propose a comparison that uses reproductive evidence and multiple independent populations.
Continue
Completion requires a saved prediction, at least one capture and a reflection. Presence checks do not grade your reasoning.
Skipping retains experiments and awards no mastery.
Save a science backup or import one
Science work is stored locally in this browser, separately from mathematics and AI. It does not sync automatically. Use this science-only backup; this checkout's older all-subject export does not include science.
A legacy file is available only when the complete snapshot fits the 36 MB limit. For larger snapshots, prepare a complete file set below; never discard notebooks to make a smaller file.
Matching imported notebook drafts replace their current drafts. Omitted lessons and known first attempts remain. Export your current work first if you want to retain both drafts.
Complete file sets and course backups
A file set can hold more work than one science file. Keep its manifest and every part together. Each file is limited to 36 MB. This format needs this version of LearnAI or a compatible newer version; older versions can use only the legacy single-file backup above.
The set includes every saved science course and global continuation at this moment. Later edits need a new export. A conflicting tab exports its own visible work, which may differ from saved work in another tab.
0 file(s) selected. File order and filenames do not determine identity. Missing, changed or conflicting parts block the entire restore; no good part is applied by itself.
Science storage: loading. No account or remote computation is required.