Two-Stage Least Squares (2SLS / IV) Regression

Econometrics
Introduced by
Angrist & Pischke (textbook treatment); classical instrumental-variables estimation
Year
2009
Type
Instrumental-variables linear regression

What does it do?

Two-Stage Least Squares is an instrumental-variables estimator for the case where a regressor is endogenous, meaning it is correlated with the error term.

In the first stage the endogenous regressor is predicted from instrumental variables, and in the second stage the structural equation is estimated using those predictions. It is a standard estimator in applied econometrics and is presented in textbook treatments such as Angrist and Pischke's Mostly Harmless Econometrics.

The intuition behind the method

When a predictor moves together with the unobserved error, ordinary regression confuses cause and consequence, so its coefficient is biased. 2SLS sidesteps this by leaning on an instrument: a variable that pushes the troublesome predictor around but has no direct path to the outcome. The first stage isolates only the part of the predictor that the instrument explains, the clean part untouched by the error, and the second stage uses that clean variation to estimate the effect honestly.

History

Instrumental-variables and two-stage least squares estimation is used in applied econometrics to recover causal effects when regressors are endogenous. Angrist and Pischke's Mostly Harmless Econometrics, the reference cited on this page, presents instrumental-variables estimation within an applied empirical framework.

When to use it

Choose 2SLS when a regressor is endogenous, meaning it is correlated with the error term, and you have at least one instrument that is correlated with that regressor but has no direct path to the outcome. It is suited to cross-sectional data, and to panel data when the model also includes the fixed effects or other controls the design requires. Its justification is asymptotic, so results from very small samples (roughly under 100 observations) should be treated cautiously, since finite-sample bias and unreliable inference are possible. Avoid it when the instrument is weak: a first-stage F-statistic below 10 is a commonly used rule of thumb for weakness, and in that case OLS or a stronger design may be preferable. With a binary outcome, the linear 2SLS model is a linear probability approximation and does not respect the 0 to 1 bounds. The estimate can be read as a local average treatment effect only under specific conditions, such as a binary instrument with monotonicity; this is not a general property of 2SLS.

Limitations and considerations

  • With weak instruments (first-stage F below 10) the 2SLS estimator can be as biased as, or more biased than, OLS, and its standard errors become unreliable.
  • In small samples (roughly under 100 observations) the asymptotic justification is weak, and finite-sample bias and unreliable inference are possible.
  • Validity rests on the instrument being both relevant and exogenous. Relevance can be tested in the first stage, but exogeneity cannot be fully tested and must be argued from theory.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Yields consistent coefficients for an endogenous regressor when the instrument is valid, where OLS would be biased by the correlation between the regressor and the error.
  • The two steps are explicit, so the first-stage fit and its F-statistic can be inspected before the structural coefficients are interpreted.
  • With a binary instrument and monotonicity assumptions, the estimate has a local average treatment effect interpretation; this reading does not extend to instruments in general.

Applications

  • Estimating the causal return to schooling on earnings using an instrument such as quarter of birth or proximity to college.
  • Recovering demand or supply elasticities when price and quantity are jointly determined.
  • Measuring the effect of an endogenous policy or treatment using an exogenous source of variation as the instrument.

How it works

How it works

1

The outcome y is a linear function of predictors X, but at least one regressor in X is endogenous, meaning it is correlated with the error term ε. This correlation breaks ordinary least squares and biases its coefficients.

Formula
y = X\beta + \varepsilon,\quad \operatorname{Cov}(X,\varepsilon)\neq 0
2

Each endogenous regressor is regressed on the full set of instruments Z (the valid instruments plus the exogenous controls). The fitted values X̂ capture only the variation in the regressor that is driven by the instruments and is therefore uncorrelated with the error.

Formula
\hat{X} = Z(Z^{\top}Z)^{-1}Z^{\top}X
3

The structural equation is estimated by replacing the endogenous regressors with their first-stage predictions, giving the 2SLS estimator β̂ = (X̂ᵀX)⁻¹X̂ᵀy. Because X̂ is purged of the endogenous component, the resulting coefficients are consistent even though OLS would be biased.

Formula
\hat{\beta}_{2SLS} = (\hat{X}^{\top}X)^{-1}\hat{X}^{\top}y

Common pitfalls

  • Relying on a weak instrument: if the first-stage F-statistic is below 10 the estimator may be unreliable, so fall back to OLS or find a stronger instrument.
  • Applying 2SLS to small samples (roughly under 100 observations) and treating the asymptotic results as reliable, when finite-sample bias and inference problems may be substantial.
  • Skipping the Sargan/Hansen overidentification test when instruments outnumber endogenous regressors.
  • Justifying the exclusion restriction by assertion alone; an instrument correlated with the error invalidates the whole estimate.

Frequently asked questions

What makes an instrument valid?

A valid instrument must satisfy two conditions: relevance, meaning it is correlated with the endogenous regressor (a first-stage F above 10 is a common rule of thumb), and exogeneity, meaning it is uncorrelated with the structural error and affects the outcome only through the regressor. Relevance can be checked in the data; exogeneity must be argued from theory.

What is a weak instrument and why is it dangerous?

A weak instrument explains very little of the endogenous regressor, signalled by a first-stage F-statistic below 10 under the common rule of thumb. This rule refers to a single endogenous regressor; with several endogenous regressors the single first-stage F is not sufficient, and weak-instrument diagnostics require specialised critical values. With weak instruments the 2SLS estimator can be badly biased, sometimes more so than the OLS estimate it was meant to correct, and its standard errors become unreliable.

When should I prefer OLS over 2SLS?

If there is no genuine endogeneity, or if your instrument is weak (first-stage F below 10) or the sample is small (roughly under 100 observations), OLS is often the safer choice. 2SLS trades efficiency for consistency, so it pays off only when endogeneity is real and a strong, valid instrument exists.

What is the Sargan/Hansen overidentification test for?

When you have more instruments than endogenous regressors (an overidentified model), the Sargan or Hansen J test checks whether the extra instruments are jointly consistent with the exogeneity assumption. A rejection signals that at least one instrument may be invalid.

How do I read a 2SLS regression table?

Software output lists the endogenous regressor on an 'Instrumented' line and the instruments on an 'Instruments' line, which include the excluded instruments and any exogenous regressors. Coefficients, standard errors, t-statistics and confidence intervals are read as in OLS. A 2SLS standard error that is much larger than the OLS standard error is expected when the instruments are only moderately correlated with the regressor, and a difference between the 2SLS and OLS coefficients may partly reflect sampling variation rather than bias. Heteroskedasticity-robust standard errors are commonly reported with 2SLS.

How do I check whether 2SLS is needed at all?

The Wu-Hausman endogeneity test compares the OLS and 2SLS estimates of the suspect regressor. If the test cannot reject exogeneity, OLS is consistent and more efficient, and 2SLS is not required. Rejection supports using 2SLS, provided the instruments are both relevant and valid.

Related methods

Sources

  1. Angrist, J. D., & Pischke, J.-S. (2009). Mostly Harmless Econometrics: An Empiricist's Companion. Princeton University Press.

    ISBN: 978-0691120355
  2. Introduction to Econometrics, 3rd edition, p. 237