Repair an unfair comparison
Separate treatment effects from group composition.
Learning outcome: Compute group means and diagnose a confounded headline difference.
Starting recap
A weighted mean multiplies each stratum's mean by its fraction of the group.
All lessons are open directly. Your saved experiments remain when you leave and return.
Try
The treatment adds 4 points to both baseline groups, yet the headline difference can be much larger.
Open the experimentPredict
Can the treatment appear harmful even though it adds 4 in both groups?
Experiment
Swap treatment and comparison high-baseline shares, then make them equal.
Repair a group comparison
Worked teaching model · synthetic values · High-baseline outcomes are 80 points; low-baseline outcomes are 40. The programmed treatment adds 4 in both strata. No noise or unmeasured confounder is included.
Reset keeps your prediction, captures and practice history.
| Row | Quantity | Value (points) |
|---|---|---|
| 1 | Treatment mean | 76 |
| 2 | Comparison mean | 48 |
| 3 | High stratum treatment | 84 |
| 4 | High stratum comparison | 80 |
| 5 | Low stratum treatment | 44 |
| 6 | Low stratum comparison | 40 |
Headline difference: 28.0 points. Within each stratum: 4 points.
Treatment mean = 84 × treated high share + 44 × treated low share. The headline gap equals 4 + 40 × (treated high share − comparison high share). Matching composition repairs this particular bias, not every possible confounder.
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 the stratum values to explain the headline gap and the repaired comparison.
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.