Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Two ways to make a fair comparison afterwards
Propensity scores. Older robots were more likely to get a maintenance patch. To compare fairly, give each robot a weight. An old robot that didn’t get the patch is rare, so it counts extra. Then the patched and unpatched groups have the same age mix, as if a coin had decided.
Instruments. Sometimes the reason for treatment is hidden. Suppose a random factor, like a firmware gain chosen by lottery, pushed some wheels to spin faster and has no other effect on slip. Comparing outcomes across that random push reveals the causal effect of speed, even with hidden confounders.
Fleet logs, flight data and maintenance records are observational. Propensity methods and instruments are the standard tools for estimating “what would this change do?” from such data. Their assumptions tell you which sensors and records you must keep.
- 1. A propensity score is…
- 2. An instrument affects the outcome…
- 3. Instruments are useful when confounders are…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The propensity score (Rosenbaum and Rubin, 1983)
. If treatment is ignorable given , it’s ignorable given alone. This is the balancing property: among units with the same , covariates have the same distribution in both arms. That reduces many covariates to one number for matching, stratification or weighting.
Inverse-propensity weighting (IPW):
A treated unit with stands in for 5 units. Normalizing the weights in each arm (Hájek) is more stable.
Instrumental variables
is an instrument for if it is
- relevant: it affects ;
- excluded: it affects only through ;
- independent: it is unconfounded with . It’s often randomized.
With one instrument and a linear effect, (the Wald estimator).
- 1. The balancing property says, given e(X), covariates are…
- 2. IPW weight for a control unit with e = 0.9?
- 3. The IV (Wald) estimate is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Doing propensity analysis well
- Estimate with logistic regression or ML (boosting, forests). The goal is balance, not prediction accuracy.
- Check overlap: plot the histograms by arm. Trim units with or , or target the overlap population.
- Check balance: standardized mean differences after weighting should satisfy .
- Watch the effective sample size .
- Doubly robust (AIPW) combines an outcome model with the propensity:
It’s consistent if either model is correct, and efficient if both are (Robins, Rotnitzky and Zhao, 1994). With cross-fitting and ML nuisance models it becomes double/debiased ML (Chernozhukov et al., 2018).
Doing IV well
- Two-stage least squares (2SLS): regress on , then on the fitted . Use the correct IV standard errors.
- Weak instruments: a first-stage F below about 10 means bias toward OLS and unreliable intervals (Staiger and Stock, 1997).
- The exclusion restriction can’t be tested from data alone. It needs domain arguments.
- 1. AIPW is consistent if…
- 2. A first-stage F of 3 suggests…
- 3. The exclusion restriction is…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Why IPW is unbiased
. This uses consistency (), ignorability (), and positivity (). ∎ This is importance sampling (A5.2-6) from the treated distribution to the population.
The Wald estimator
With and : . ∎ OLS fails because .
LATE: what IV estimates with heterogeneous effects
Take a binary instrument and binary treatment, under monotonicity (no one takes the treatment because they weren’t encouraged). The Wald ratio
equals the local average treatment effect among compliers, the units whose treatment the instrument changes (Imbens and Angrist, 1994). It’s not the population ATE.
Exercise 3.1: Encouragement design
A random half of operators is encouraged to enable a new mode (Z = 1). Uptake is 70% if encouraged and 10% if not. Success is 62% vs 50%. LATE among compliers.
- 1. IPW is a form of…
- 2. With heterogeneous effects, IV identifies…
- 3. Monotonicity rules out…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Effect of wheel speed on slip, with hidden soil cohesion
Soil cohesion (unobserved) makes wheels spin faster and slip less, so OLS gets the effect of speed on slip badly wrong. Engineers randomized a torque-gain parameter across traverses. It changes wheel speed and affects slip only through speed. IV with that gain as the instrument recovers the true effect. With a weak gain (small Z → X effect), the IV estimates become extremely variable.
These tools in AI, robotics and aerospace
- Off-policy evaluation: importance-weighted and doubly robust estimators of a new policy’s value from logs (Dudík, Langford and Li, 2011; Jiang and Li, 2016).
- Double ML for treatment effects with high-dimensional confounders, such as sensor histories (Chernozhukov et al., 2018).
- IV in learning and control: IV methods for system identification under correlated noise (Söderström and Stoica, 1983), and deep IV for counterfactual prediction (Hartford et al., 2017).
- Covariate-shift correction: importance weighting by density ratios between training and deployment data (Shimodaira, 2000), the same mathematics as IPW.
References
- P. Rosenbaum, D. Rubin (1983). “The central role of the propensity score in observational studies for causal effects.” Biometrika, 70(1).
- J. Robins, A. Rotnitzky, L. P. Zhao (1994). “Estimation of regression coefficients when some regressors are not always observed.” JASA, 89(427).
- V. Chernozhukov et al. (2018). “Double/debiased machine learning for treatment and structural parameters.” Econometrics Journal, 21(1).
- G. Imbens, J. Angrist (1994). “Identification and estimation of local average treatment effects.” Econometrica, 62(2).
- J. Angrist, G. Imbens, D. Rubin (1996). “Identification of causal effects using instrumental variables.” JASA, 91(434).
- D. Staiger, J. Stock (1997). “Instrumental variables regression with weak instruments.” Econometrica, 65(3).
- P. Austin (2011). “An introduction to propensity score methods for reducing the effects of confounding in observational studies.” Multivariate Behavioral Research, 46(3).
- N. Jiang, L. Li (2016). “Doubly robust off-policy value evaluation for reinforcement learning.” ICML.
- J. Hartford, G. Lewis, K. Leyton-Brown, M. Taddy (2017). “Deep IV: a flexible approach for counterfactual prediction.” ICML.
- T. Söderström, P. Stoica (1983). Instrumental Variable Methods for System Identification. Springer.