Test whether migration and selection can be swapped
Gene flow moves inherited variants between populations when migrants or their gametes contribute to reproduction. Movement alone is not necessarily genetic contribution. A mixture model must define whether migrants replace residents, add to them or contribute only a fraction of the next generation.
Learning outcome: Compare both stage orders at m0.2,w2, then set m0 or w1. Identify the algebraic reason for the equality at each boundary and an observation that could discriminate the stage order in a real life cycle.
Starting recap
Distinguish population mechanisms using explicit allele, genotype, life-cycle and sampling denominators; compare conditional explanations and independent falsifying evidence.
All lessons are open directly. Your saved experiments remain when you leave and return.
Try
For m=0.2,w=2, migration first gives p=0.32 and selection then0.64/1.32=16/33≈0.48485. Selection first gives1/3; migration then0.8/3+0.16=32/75≈0.42667. The different endpoints reflect different stage histories.
Open the experimentPredict
If both pathways use the same migration fraction and fitness ratio, must they predict the same endpoint?
Experiment
Compare both stage orders at m0.2,w2, then set m0 or w1. Identify the algebraic reason for the equality at each boundary and an observation that could discriminate the stage order in a real life cycle.
Test whether migration and selection commute
Worked teaching model · synthetic values · Haploid resident A frequency0.2 and donor0.8. Migration replaces fraction m. Selection maps p→wp/(wp+1−p). Compare the same operators in opposite orders; donor supply is external and unchanged.
Reset keeps your prediction, captures and practice history.
Causal-stage order can change a prediction even when the parameter values are identical.
Migration changes which variants selection acts upon; selection is nonlinear in frequency because contributions must be normalized. At m=0 or w=1 the two paths agree, but equality in a special case is not general commutativity.
| Quantity | Value | Unit |
|---|---|---|
| Migration then selection | 0.4848485 | A fraction |
| Selection then migration | 0.4266667 | A fraction |
| Order difference | 0.05818182 | fraction |
Retain prior predictions, settings and quantities in the notebook. These are original supplied/calculated comparisons, not physical specimen observations or laboratory participation.
Causal-stage order can change a prediction even when the parameter values are identical.
Migration changes which variants selection acts upon; selection is nonlinear in frequency because contributions must be normalized. At m=0 or w=1 the two paths agree, but equality in a special case is not general commutativity.
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.
Use m=0.25,w=2 with resident0.2 and donor0.8. Calculate both stage orders.
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.