Challenge the counterfactual behind a paired change contrast
A before–after change can reflect weather, background trends or measurement changes as well as an intervention. A comparison site helps estimate what might have happened without treatment. Pairing can reduce nuisance variation, but causal interpretation still depends on design, interference, measurement comparability and the relevant counterfactual.
Learning outcome: Compare the full packet with each single-pair omission, then vary the background trend. Identify the assumption needed to call the contrast an intervention effect and propose an independent observation testing it.
Starting recap
Preserve packet identity, independent units, analysis recipe, outcome constraints and review authority; distinguish scientific uncertainty from stakeholder value choices.
All lessons are open directly. Your saved experiments remain when you leave and return.
Try
With all pairs and a hypothetical background differential trend−1 mg/L, adjusted intervention effect is−2.5−(−1)=−1.5 mg/L. Ignoring that alternative would attribute too much of the decrease to treatment.
Open the experimentPredict
A leave-one-pair-out analysis is most defensible when:
Experiment
Compare the full packet with each single-pair omission, then vary the background trend. Identify the assumption needed to call the contrast an intervention effect and propose an independent observation testing it.
Test a paired intervention contrast and its counterfactual
Worked teaching model · synthetic values · Use corrected packet contrasts[−4,−2,−2,−2]mg/L. Mean retained contrast is a before–after difference of differences; adjusted effect=mean−supplied parallel-trend violation. Leave-one-pair-out is sensitivity, not permission for result-driven exclusion. No concentration-to-load inference without flow.
Reset keeps your prediction, captures and practice history.
| Quantity | Value | Unit |
|---|---|---|
| Retained independent pairs | 4 | pairs |
| Mean observed paired contrast | -2.5 | mg/L |
| Supplied differential background trend | 0 | mg/L |
| Counterfactual-adjusted intervention effect | -2.5 | mg/L |
| Full-packet contrast for comparison | -2.5 | mg/L |
Inspect the immutable source packet cenv-basin-pairs@1
Original synthetic paired-site data authored 30 October 2026. Eight sites in four independently randomized treatment/comparison pairs. Before/after are representative interval means, not technical replicates. Calibration packet stipulates a +2 mg/L after-period sensor offset only for BASIN-P3-T; no uncertainty is supplied for that correction.
| Record ID | Before (mg/L) | Raw after (mg/L) | Known offset (mg/L) | Corrected after (mg/L) |
|---|---|---|---|---|
| BASIN-P1-T | 20 | 18 | 0 | 18 |
| BASIN-P1-C | 18 | 20 | 0 | 20 |
| BASIN-P2-T | 24 | 24 | 0 | 24 |
| BASIN-P2-C | 22 | 24 | 0 | 24 |
| BASIN-P3-T | 28 | 30 | 2 | 28 |
| BASIN-P3-C | 26 | 28 | 0 | 28 |
| BASIN-P4-T | 32 | 32 | 0 | 32 |
| BASIN-P4-C | 30 | 32 | 0 | 32 |
The CSV is a fictional teaching dataset, not actual field observations. Preserve its identity and correction column in your report.
A paired before–after contrast needs a justified no-intervention counterfactual.
Random assignment supports exchangeability in expectation but does not make finite-sample chance imbalance impossible. Spillover, differential trends or changed measurement can affect interpretation. Pair omission is an explicitly reported sensitivity check, not a hidden selection rule.
Predict, change one control, and retain contrasting captures. Reconstruct the analysis and decision rule before opening feedback. Display precision is not measurement precision.
A paired before–after contrast needs a justified no-intervention counterfactual.
Random assignment supports exchangeability in expectation but does not make finite-sample chance imbalance impossible. Spillover, differential trends or changed measurement can affect interpretation. Pair omission is an explicitly reported sensitivity check, not a hidden selection rule.
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.
Omit pair 1 and assume treatment sites would have declined 2 mg/L more than comparisons without intervention. What adjusted effect remains?
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.