Endogeneity and Instrumental Variables
The deepest OLS failure, a regressor correlated with the error, which biases and un-fixes the estimator no matter the sample size, and the instrumental-variables / 2SLS machinery that recovers a causal effect.
Prerequisites: Ordinary Least Squares (OLS), The Gauss–Markov Theorem
Endogeneity is the failure that ends the Gauss–Markov story before it starts. Heteroskedasticity and autocorrelation only spoil OLS's efficiency and standard errors, the point estimate stays honest. Endogeneity spoils the point estimate itself: when a regressor is correlated with the error term, OLS is biased and inconsistent, and no amount of data rescues it. It is the difference between "correlation with wrong error bars" and "correlation that isn't the causal effect you think it is." Instrumental variables are the classic tool for clawing back a causal estimate.
What breaks: strict exogeneity fails
The load-bearing OLS assumption is strict exogeneity, , equivalently . Endogeneity is its violation: for some regressor. From , taking probability limits,
If , the second term does not vanish, converges to the wrong number. This is the crucial point: unlike the variance problems, the inconsistency does not shrink with . A billion observations reproduce the bias perfectly.
The three classic sources
- Omitted variables. A driver of is left out and correlated with an included regressor, so its effect loads onto the error and contaminates the regressor's coefficient. Regress returns on a signal that proxies for an unmeasured risk factor and you attribute the risk premium to the signal.
- Simultaneity / reverse causality. affects and affects . Price impact is the canonical finance example, order flow moves price, but informed traders' flow also responds to price, so regressing returns on flow conflates the two directions.
- Measurement error (errors-in-variables). If the true regressor is observed with noise , the noise enters the error term correlated with , producing attenuation bias that pulls the coefficient toward zero. Noisy signals, proxy variables, and revised macro data all suffer this.
Instrumental variables: the idea
An instrument is a variable that affects only through . It must satisfy two conditions:
- Relevance: , the instrument actually moves the endogenous regressor.
- Exogeneity (exclusion): , the instrument is uncorrelated with the error, i.e. it influences through no channel but .
Given a valid instrument, the IV estimator in the single-regressor case is the ratio of covariances
The logic: variation in driven by is exogenous by construction (since ), so regressing on that clean slice of -variation recovers the causal slope. In matrix form with instrument matrix . IV is exactly GMM with the moment condition .
Two-stage least squares
With more instruments than endogenous regressors (overidentification), or several instruments per regressor, the efficient combination is 2SLS:
- Stage 1: regress each endogenous regressor on all instruments (and exogenous controls), on , and keep the fitted values . These are the parts of explained by the (exogenous) instruments.
- Stage 2: regress on :
Because lives in the instrument space and is orthogonal to , the second stage is clean. (Compute standard errors from the 2SLS formula, not by naively running two OLS regressions, which would understate them.)
Worked example: does an index inclusion raise a stock's return?
You want the causal effect of index membership on returns, but firms added to an index differ systematically (size, momentum), so membership is endogenous, the naive regression conflates the effect with the selection. An instrument: a rule-based inclusion threshold (e.g. a float or rank cutoff) that shifts membership probability discontinuously but is unrelated to the firm's unobserved return drivers near the cutoff. Firms just above vs just below the threshold are comparable except for inclusion, so the threshold instruments for membership and IV isolates the inclusion effect. This is the flavor of natural-experiment identification desks and academics use when randomization is impossible.
Failure modes in financial data
- Weak instruments. If is small, the denominator of is near zero, so the estimator is high-variance and, worse, biased toward the OLS estimate it was meant to fix, and standard errors become unreliable. Check the first-stage -statistic; a common rule is . Weak instruments can be more dangerous than the endogeneity itself.
- Invalid instruments. Exogeneity is fundamentally untestable with a single instrument, you must argue it from economics. A plausible-looking instrument that secretly affects through another channel gives a confidently wrong causal claim.
- Overidentification tests give false comfort. The Hansen/Sargan J-test checks consistency across instruments, not that they are jointly valid; all your instruments can share the same flaw and pass.
- Local effect only. IV identifies a local average treatment effect, the effect for the subpopulation whose the instrument actually moves, which may not generalize to the whole universe.
In interviews
The essential contrast, stated without wobble: heteroskedasticity/autocorrelation leave OLS unbiased (only SEs wrong); endogeneity makes OLS biased and inconsistent, and more data does not help. Be able to write and name the three sources (omitted variables, simultaneity, measurement error, and that measurement error causes attenuation toward zero). State the two instrument conditions, relevance (, testable) and exogeneity (, untestable), and describe 2SLS as projecting onto the instrument space and regressing on the clean fitted values. The mature closer is the weak-instrument warning: a weak instrument reintroduces the very bias it was meant to remove, so always check the first-stage .
Related concepts
Practice in interviews
Further reading
- Angrist & Pischke, Mostly Harmless Econometrics (Ch. 4)
- Hayashi, Econometrics (Ch. 3)
- Wooldridge, Econometric Analysis of Cross Section and Panel Data (Ch. 5)