InteractiveWhole classBreakoutsHomeworkPredict, observe, explainContrasting casesRecall with feedbackBefore teachingAccessibility not checkedPublished
Balanced but biased? Genetic matching with and without a missing confounder
By Alexis Diamond · Statistics · causal inference · Graduate · Simulation of a known property · version 6
Licence: CC BY 4.0
Topicsgenetic matchingcovariate balanceobservational causal inferenceselection on observablesnearest neighbor matching
Assumption ledger (5)
- dataTwo simulated data sets built to behave like the NSW data and Diamond & Sekhon's figures (A: 185 trainees with 1974 and 1975 earnings; B: 297 trainees with 1975 earnings only), each with a survey comparison pool of 1,200. Not the real data.
- parameterTraining adds exactly $1,794 (A) or $886 (B) to every trainee's 1978 earnings: the experimental benchmarks. B's 95% lower bound, −$55, is from Diamond (2005), Table 2.
- distribution1978 earnings without training depend on age, schooling, race, marriage, 1974 and 1975 earnings and whether each year had none, plus noise (SD $2,000), floored at $0.
- simplificationOne-to-one nearest-neighbour matching with replacement on SD-scaled covariates with diagonal weights (hand weights ×1 to ×300; search weights 1 to 1,000); the genetic algorithm is a simple stand-in for GenMatch (8 parents, 25 children per generation).
- interpretationBalance is the lowest p-value across paired t-tests (all recorded covariates) and KS tests (age, schooling, earnings), as in Diamond & Sekhon; 0.15 is their threshold for confident balance.
Checks Breakout ✓ · Accessibility ✓
Breakout check
✓ Ready for breakouts: every control we tried showed teammates the same thing.
Cite this · History
Cite this
Alexis Diamond (2026). Balanced but biased? Genetic matching with and without a missing confounder [Interactive model], version 6. Ideas at Play. https://ideasatplay.org/play/can-matching-recover-the-experiment-genetic-matching-on-the-d7917f?v=6 (CC BY 4.0)
History
- v6Break it (A5): 1974 earnings removed from the data; they appear in a separate "Not in the data" list (unknown until you look behind the curtain); matches pass every test yet the estimate is far off. Same separate list in B3. (edited, Nov 4, 2026)current
- v5Reveal steps: no dollar figures until the reveal (students read the plot; a "Your reading" line follows the slider); predictions cite step 1 explicitly; stage B named everywhere as the Lalonde sample, which lacks 1974 earnings. (edited, Nov 4, 2026)View
- v4Match by hand: at least 5 matches over 10–15 minutes, with a counter. Fixed axes that hold every possible estimate in both samples (hand weights now ×1 to ×300). (edited, Nov 4, 2026)View
- v3Clearer prediction wording in both stages (balance on the covariates → estimated ATT). (edited, Nov 4, 2026)View
- v2One artifact, two stages: A Dehejia–Wahba, B Lalonde; every step fits one screen; big right/wrong feedback; click a dot to see its balance table. (edited, Nov 4, 2026)View
- v1Imported; lineage before import is not available. (imported, Nov 4, 2026)View
Comments
No comments yet.
Sign in to comment or like.