ML Systems Lab Open interactive version →
Advanced 30 min read sensitivity analysisE-valueRosenbaum boundsplacebo testrobustness

Sensitivity Analysis for Causal Claims

E-values, Rosenbaum bounds, placebo tests, falsification design

You have estimated that a job training program increases earnings by $3,000/year using a matching estimator. Your result assumes no unmeasured confounders — the unconfoundedness assumption. But what if motivation is unobserved and it causes both training program enrollment and higher earnings? How strong would this unmeasured confounder need to be to reduce your estimated effect to zero? If the answer is "only a moderate confounder," your result is fragile. If the answer is "a confounder stronger than any observed covariate," your result is robust. Sensitivity analysis quantifies this threshold.

Rosenbaum sensitivity analysis is designed for matching studies. It reports the Γ (Gamma) parameter: the maximum ratio by which the odds of treatment can differ between two matched units due to unobserved variables, while still rejecting the null hypothesis. Γ = 1.5 means: even if an unobserved confounder could cause 50% more treatment odds, you would still find a significant effect. Γ = 1.0 means any unobserved confounding overturns the result. Sensitive at Γ = 1.2 is fragile; robust to Γ = 3.0 is credible.

The E-value (VanderWeele and Ding) is more general. It is the minimum strength of association that an unmeasured confounder would need with both treatment and outcome to fully explain away the observed effect. E = RR + √(RR(RR − 1)) where RR is the observed risk ratio. Compare the E-value to the associations of observed covariates — if the E-value is smaller than your strongest observed confounder's association, an unmeasured confounder of that strength could explain your result away.

Placebo tests provide indirect evidence from a different angle. A placebo outcome is one the treatment logically cannot affect — if the analysis shows a significant "effect" on the placebo, something correlated with treatment is also correlated with the outcome, signaling confounding in the main estimate. An event study pre-period check in DiD is a placebo treatment test: pre-treatment coefficients should cluster near zero.

What sensitivity analysis does not do: prove the causal estimate is correct. It tells you how fragile or robust the estimate is to violations of the identifying assumption. A high Γ says the conclusion survives substantial hidden bias — this is reassuring but not proof of causal validity. It is a communication tool that makes the credibility of the claim explicit, not a proof.

Key points

Takeaway

Sensitivity analysis does not prove a causal estimate — it reports how much hidden confounding it would take to overturn it, making the fragility or robustness of the claim explicit rather than hidden.

Recap

Check your understanding

Q1. Your matching analysis shows treatment increases survival rates by 30% (RR=1.3). You compute an E-value of 1.9. What does this mean and how do you use it?

Q2. Your DiD estimate shows minimum wage increase reduced employment by 3%. A critic says treated and control counties had different pre-trends. How do you test and respond?

Q3. You want to test whether IV analysis for effect of college education on earnings (using proximity as instrument) is confounded. Select the two genuine falsification tests.

Q4. After reporting a positive causal effect of a product feature on revenue using DiD, a sceptical executive asks: 'How fragile is this result?' How do you answer rigorously?

Try it interactively

ML Systems Lab is a free interview-prep platform for ML engineers — work through the full interactive module, quizzes, and drills.

Open ML Systems Lab →