- Introduced by
- Angrist & Pischke (textbook treatment); Stock & Yogo (weak-instrument theory)
- Year
- 2009
- Type
- Instrumental-variables regression
What does it do?
IV/2SLS is a two-stage estimation method that recovers the causal effect of an endogenous regressor by isolating the part of its variation driven by an external instrument.
It is a central identification strategy in applied econometrics and receives a textbook treatment in Angrist and Pischke's Mostly Harmless Econometrics (2009).
The intuition behind the method
When a predictor is correlated with the error term — because of omitted variables, reverse causality, or measurement error — plain regression gives a biased answer. IV/2SLS sidesteps this by finding an instrument: an external variable that nudges the troublesome predictor but has no other path to the outcome. It first uses the instrument to predict the predictor, keeping only the clean, exogenous part of its variation, then regresses the outcome on that cleaned-up version to read off the causal effect.
History
Instrumental-variables estimation is a central identification tool in applied econometrics and receives a canonical modern textbook treatment in Angrist and Pischke's Mostly Harmless Econometrics (2009); that date marks this textbook treatment, not the origin of the estimator, which is considerably older. Stock and Yogo (2005) studied how weak instruments distort IV estimators and tests, and proposed tabulated critical values for detecting weak instruments through the first-stage F-statistic (or, with multiple endogenous regressors, the Cragg–Donald statistic).
When to use it
Use IV/2SLS when a key regressor is endogenous, meaning it is correlated with the error term through omitted variables, simultaneity, or measurement error, so that ordinary least squares would be biased, and when you can defend an instrument that is both relevant and excluded from the outcome equation. The method applies to continuous or binary outcomes in cross-sectional or panel data. Required conditions: (1) the order condition, at least as many excluded instruments as endogenous regressors; (2) the included controls W must be exogenous; (3) the instruments must be relevant and satisfy the exclusion restriction. When instruments outnumber endogenous regressors, the over-identifying restrictions can be tested (Sargan/Hansen J), though this test has low power when instruments are weak and cannot validate the exclusion restriction when the model is exactly identified. Do not use IV when no credible instrument is available, since a poor instrument can give an estimate that is worse than the biased OLS estimate. Check instrument strength with the first-stage F-statistic before interpreting the second stage. No fixed minimum sample size applies: what matters is the strength of the first stage and the effective information in the data, as weak instruments in small samples give unstable estimates. The exclusion restriction cannot be tested directly and must rest on substantive argument.
Limitations and considerations
- With a weak instrument (a low first-stage F, judged against Stock–Yogo critical values or the rule of thumb of 10), the 2SLS estimate is biased in finite samples, with the bias pulling it toward the OLS estimate, and its standard errors and test statistics can be unreliable.
- The exclusion restriction, that the instrument affects the outcome only through the endogenous regressor, cannot be tested directly and must be justified on theoretical grounds.
- Estimates can be unstable in small samples or with weak instruments, where first-order asymptotic approximations are a poor guide to the actual sampling distribution.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Recovers a consistent causal effect for an endogenous regressor in cases where ordinary least squares is biased.
- Addresses omitted-variable bias, reverse causality, and measurement error with a single identification strategy whose assumptions are stated explicitly.
- Provides the first-stage F-statistic as a direct diagnostic of instrument strength, so the reliability of the estimate can be checked before it is interpreted.
Applications
- Estimating the returns to schooling on earnings using instruments such as compulsory-schooling laws or quarter of birth.
- Measuring the effect of a treatment or policy when take-up is self-selected, by instrumenting with an external assignment or eligibility rule.
- Correcting for measurement error or reverse causality in economic, health, and social-science regressions.
How it works
How it works
In the first stage the endogenous regressor X is regressed on the instrument(s) Z together with any exogenous controls W: X = Zπ + Wγ + v. The fitted values X̂ = Zπ̂ + Wγ̂ capture only the variation in X that the instruments and controls explain; the instrument-driven part is presumed free of correlation with the outcome error.
Formula
X = Z\pi + W\gamma + v, \quad \hat{X} = Z\hat{\pi} + W\hat{\gamma}In the second stage the outcome y is regressed on the fitted values X̂ together with the same controls W. Because X̂ is built from the instrument-driven variation, its coefficient β is intended to estimate the causal effect of X rather than a confounded association.
Formula
y = \hat{X}\beta + W\delta + \varepsilonCombining both stages gives the closed-form 2SLS estimator β̂ = (X̂ᵀX̂)⁻¹X̂ᵀy (with W included among the regressors). The estimator is consistent, meaning it converges to the true effect as the sample grows, provided the instrument is relevant (correlated with X after conditioning on W) and valid (it affects y only through X). A first-stage F above 10 is a common rule of thumb for relevance, but Stock and Yogo tabulate critical values that depend on the bias or size distortion you are willing to tolerate, so compare the F-statistic with those values and report it together with the number of excluded instruments.
Formula
\hat{\beta}_{2SLS} = (\hat{X}^{\top}\hat{X})^{-1}\hat{X}^{\top}yCommon pitfalls
- Reporting a 2SLS estimate without checking the first-stage F-statistic, so that a weak instrument goes unnoticed.
- Asserting the exclusion restriction without a substantive argument about how the instrument could reach the outcome by any other route.
- Running 2SLS with a weak instrument and over-interpreting an unstable estimate whose confidence interval is wide.
- Computing standard errors from a manual second-stage regression on the fitted values X̂. The 2SLS residuals must be y − Xβ̂ using the observed X, not y − X̂β̂; use software that implements the 2SLS variance formula.
Frequently asked questions
What makes a good instrument?
A good instrument satisfies two conditions: relevance, meaning it is strongly correlated with the endogenous regressor (checked with a first-stage F-statistic; above 10 is a common rule of thumb, and Stock–Yogo critical values give a more careful benchmark), and the exclusion restriction, meaning it affects the outcome only through that regressor. Relevance can be tested; exclusion must be defended with subject-matter theory.
What is a weak instrument and why is it dangerous?
A weak instrument is only loosely correlated with the endogenous variable, signalled by a low first-stage F-statistic. With a weak instrument, 2SLS estimates are biased in finite samples, pulled toward the OLS estimate, and the standard errors and tests can be unreliable. Stock and Yogo's tabulated critical values are one standard way to assess whether an instrument is weak.
How is 2SLS different from ordinary least squares?
Ordinary least squares regresses the outcome directly on the predictors and is biased when a predictor is endogenous. 2SLS first replaces the endogenous predictor with the part of its variation explained by an instrument, then regresses the outcome on that cleaned version, removing the confounding to recover a causal effect.
What does the estimated effect represent?
With heterogeneous effects, and under a monotonicity assumption (the instrument moves treatment in the same direction for all units, so there are no defiers), 2SLS identifies a local average treatment effect: the average effect among the units whose behaviour the instrument shifts (the compliers). It is not necessarily the effect for the whole population. Without these conditions, 2SLS estimates a weighted average of unit-level effects that may lack a clear population interpretation.
Related methods
Sources
Angrist, J. D. & Pischke, J. S. (2009). Mostly Harmless Econometrics: An Empiricist's Companion. Princeton University Press.
ISBN: 978-0691120355Stock, J. H. & Yogo, M. (2005). Testing for Weak Instruments in Linear IV Regression. In Identification and Inference for Econometric Models. Cambridge University Press.
Open DOI reference