Problem
Analysts often need the effect of something that was not randomized: a medication, a training program, a level change in a game. Treated and untreated units differ in confounders such as age or severity, so a plain difference of means shows the wrong sign or size. That sends the rollout decision the wrong way. Without an A/B test, the groups must be made comparable by other means.
Example from the article: in a medication dataset with confounders age, severity and sex, the raw average treatment effect (ATE) on recovery days is 16.8957995464987, as if the medication prolonged recovery.
Solution in brief
Make treated and control units similar on everything except treatment. Match on covariates with a regression bias correction, stratify or weight on the propensity score, combine an outcome model with a propensity model, or compare units either side of a threshold. Refutation tests then check how stable the estimate is.
Questions this case answers
- How to estimate the causal effect of a treatment when assignment was not random and the groups differ on observed confounders
- How to estimate the effect of a rule-based assignment that switches on at a known threshold of a continuous score
- How to estimate a treatment effect from observational data when treated and untreated groups differ in age, severity or other confounders?
- How to reweight units by propensity score to remove selection bias from an effect estimate?
Tools and methods
- Matching with bias correction — pair treated and control units, then correct the leftover gap by regression.
- Propensity score stratification — effects within propensity quantiles, combined.
- Inverse Probability of Treatment Weighting (IPTW) — weight units by inverse propensity.
- Doubly robust estimation — outcome regressions plus propensity weights; one correct model is enough.
- Regression discontinuity design (RDD) — compare units just below and just above a cutoff.
- DoWhy — Microsoft's causal inference library with refutation tests.
Google or a one-time email code. No password.