ML Systems Lab Open interactive version →
Advanced 30 min read IVinstrumental variables2SLSLATEexclusion restriction

Instrumental Variables

Exclusion restriction, weak instruments, 2SLS, LATE

Does education increase earnings? The confound is ability. Smart people get more education and earn more regardless of education level — so any observed correlation between education and earnings contains both the causal effect of education and a spurious component from ability. You need variation in education that is unrelated to ability. A valid instrument: distance from college. Students born close to a college are more likely to attend (the instrument predicts treatment). But distance from college affects earnings only through education — it does not directly affect a person's earnings potential except by influencing whether they went to college (exclusion restriction). This isolates variation in education driven only by geography, not ability.

An instrumental variable Z requires three conditions. Relevance: Z is correlated with the treatment T. Distance predicts college attendance — testable with the first-stage F-statistic. Exclusion restriction: Z affects the outcome Y only through T, not through any other path. Distance does not directly affect earnings except by influencing education — this is argued on subject-matter grounds, not verified statistically. Independence: Z is uncorrelated with T-Y confounders. Where you were born was not chosen based on your cognitive ability.

Two-Stage Least Squares (2SLS) operationalizes this. Stage 1: regress T on Z and controls, get fitted values T̂. Because controls are included in that first-stage regression too, T̂ captures variation in T explained by both Z and the controls — what makes T̂ usable for identifying the causal effect is not that controls are absent, but that Z's coefficient isolates the variation in T driven by the instrument rather than by confounders. Stage 2: regress Y on T̂ and the same controls used in stage 1. The first stage extracts the Z-driven variation in T net of those controls; the second stage estimates the causal effect of that variation on Y.

IV estimates the Local Average Treatment Effect (LATE): the causal effect for compliers — units whose treatment status changes in response to the instrument. Non-compliers are excluded: always-takers are units that take the treatment regardless of what the instrument assigns, and never-takers are units that never take the treatment regardless of what the instrument assigns — since neither group's behavior responds to Z, the instrument carries no information about the effect on them. The LATE is not the ATE — it is the treatment effect for a specific subpopulation defined by the instrument.

What this is not: any variable correlated with treatment is a valid instrument. The exclusion restriction is almost never testable. A weak instrument (first-stage F < 10) produces estimates with enormous variance and finite-sample bias toward OLS that defeats the purpose of the IV approach entirely. A good instrument is extremely hard to find — this is why natural experiments are so valuable in applied causal inference.

Key points

Takeaway

IV trades the ignorability assumption for the exclusion restriction — both untestable — and estimates LATE for compliers only; a weak instrument adds enormous variance and biases the estimate toward OLS, defeating the purpose of the approach.

Recap

Check your understanding

Q1. You want to estimate the causal effect of price increases on demand. Propose a valid instrument and explain how you would test its validity.

Q2. Your IV estimate of effect of education on earnings is 15% per year of schooling, but OLS estimate is 8%. Hausman test rejects exogeneity. Why might IV be higher than OLS?

Q3. An economist uses distance to nearest abortion clinic as instrument for abortion rates, studying effect on child outcomes. What are the threats to the exclusion restriction?

Q4. What is the difference between LATE and ATE, and why does it matter for policy? Select the two true statements.

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 →