
From the Wald ratio to 2SLS — and what an instrument must never do
2026-07-23
read a first stage and a reduced form, and recover the causal effect as the Wald ratio — on a new study;
explain two-stage least squares: how it isolates the predicted part of the treatment, why that is the mirror image of controlling, and why it generalises Wald;
interrogate an instrument’s exclusion restriction — and say what happens to your estimate when it fails.
One part per goal. Our running question: does education actually pay off?
2SLS does not replace Wald. With a single instrument and no controls the two give exactly the same number — we will see that on screen. 2SLS is what you need the moment you want anything more.
Part 1 of 3
An old question with an obvious-looking answer — and a confounder problem that has defeated sociologists for decades.
People with more education earn more. Every data set in the world agrees.
Research question of the day: does an extra year of schooling actually cause higher earnings — or do the people who get more schooling simply differ?

The policy stakes are large: nearly every government funds education partly on the belief that this arrow is real and big.
The people who stay in school longer differ systematically:
Beware: this is textbook ability bias. Both confounders push the same way, so the naïve OLS estimate should be too large.

Last week’s answer would be: measure the confounders and control for them.
Discuss: what goes wrong if we try that here?
“Ability” is not in the data — and no test score fully captures it. Ambition, family connections, health are worse still. Multiple OLS can only close the backdoors you measured, and here the important ones are invisible.
\(\rightarrow\) We need variation in schooling that has nothing to do with who the person is.
In the US at the time:
\(\rightarrow\) Children born late in the year start school younger, so they have completed more schooling by the time they may legally drop out.
| Carl — born 1 January | starts aged 6½, drops out at 16 with 9 years |
| Luis — born 31 December | starts aged 5½, drops out at 16 with 10 years |

Discuss: is quarter of birth a valid instrument? Check all three requirements from Lecture 7.
pacman::p_load(
tidyverse, # Data manipulation and visualization
estimatr, # OLS with robust standard errors
modelr, # Predictions and residuals from a model
ivreg, # IV / two-stage least squares
modelsummary, # Nicely formatted regression tables
masteringmetrics # The data behind Mastering 'Metrics
)lnw = log weekly wage · s = years of schooling · yob = year of birth · qob = quarter of birth.
The outcome is the log of the wage, so a coefficient reads as an approximate percentage change: a coefficient of \(0.07\) means an extra year of schooling goes with about 7% higher earnings.
This is the standard convention in the returns-to-education literature — you will meet it in every paper on the topic.
Discuss: we predicted ability bias makes this too large. Hold that thought.
| log wage | |
|---|---|
| (Intercept) | 4.995*** |
| (0.005) | |
| Years of schooling | 0.071*** |
| (0.000) | |
| Num.Obs. | 329509 |
| R2 | 0.117 |
| + p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001 |
An extra year of schooling goes with about 7.1% higher weekly wages. Descriptively solid — causally, contaminated by every confounder we just listed.

Discuss: the line saw-tooths. What is systematically different about the red points — and is that a pattern a confounder could produce?
First stage — does the instrument move the treatment? \[\phi = \text{Avg}[D \mid Z = 1] - \text{Avg}[D \mid Z = 0]\]
Reduced form — does the instrument move the outcome? \[\rho = \text{Avg}[Y \mid Z = 1] - \text{Avg}[Y \mid Z = 0]\]
Wald IV estimator — the effect of the treatment itself: \[\lambda = \frac{\rho}{\phi}\]
Exactly the logic from Lecture 7’s Moving to Opportunity study — only the application is new.
| Years of schooling | |
|---|---|
| (Intercept) | 12.641*** |
| (0.014) | |
| Quarter of birth | 0.052*** |
| (0.005) | |
| Num.Obs. | 329509 |
| + p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001 |
| log wage | |
|---|---|
| (Intercept) | 5.887*** |
| (0.003) | |
| Quarter of birth | 0.005*** |
| (0.001) | |
| Num.Obs. | 329509 |
| + p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001 |
\[\lambda = \frac{\rho}{\phi} = \frac{0.00512}{0.0516} = \mathbf{0.0992}\]
So the causal return to a year of schooling is about 9.9%.
Discuss: we predicted ability bias would make OLS too large. OLS gave 7.1%, IV gives 9.9%. That is the wrong way round. What could explain it?
Three honest possibilities:
LATE, not ATE (L7) — IV identifies the effect among compliers: men who left school the moment they legally could. Returns may genuinely be higher for them.
Measurement error in self-reported schooling biases OLS toward zero; IV is immune to it.
The instrument is weak — which we come back to in Part 3.
Part 2 of 3
The Wald ratio is a dead end the moment you want to add a control. 2SLS is the same idea, rebuilt to scale — and it is Frisch–Waugh in mirror image.
The Wald ratio is two group means divided by two group means. That is all it can ever be.
It breaks down as soon as you want to:
2SLS gets all three — and, with a single instrument and no controls, returns precisely the Wald number. Nothing is lost by switching.
This is why every IV paper you will ever read reports 2SLS, and why ivreg() is the function to learn.
Regress the treatment on the instrument — then keep the predictions, not the residuals:
Discuss: last week we kept the residuals. Today we keep the predictions. Which of the two is unconfounded here — and why is it the opposite of last week?
pred_s — the part of schooling driven by quarter of birth, and therefore by nothing else. e_s is everything else about a person’s schooling, ability and family included.
Last week the confounder was the nuisance, so we threw its part away. Today the instrument is the only trustworthy part, so we throw everything else away.
Now regress the outcome on those predictions:
\[\text{Stage 1:}\quad D_i = \alpha_1 + \phi Z_i + e_i\] \[\text{Stage 2:}\quad Y_i = \alpha_2 + \lambda_{\text{2SLS}} \widehat{D}_i + e_i\]
Beware: never do this by hand in real work — the standard errors from a manual second stage are wrong, because they ignore that \(\widehat{D}\) was itself estimated. We do it here only to see the machinery.
# The same thing, done properly, in one line
iv <- ivreg(lnw ~ s | qob, data = ak91) #<<
modelsummary(
list("OLS" = ols, "2nd stage by hand" = second_stage, "ivreg (2SLS)" = iv),
coef_map = c("s" = "Years of schooling",
"pred_s" = "Years of schooling (predicted)"),
stars = TRUE, gof_map = c("nobs"), output = "kableExtra"
)| OLS | 2nd stage by hand | ivreg (2SLS) | |
|---|---|---|---|
| Years of schooling | 0.071*** | 0.099*** | |
| (0.000) | (0.020) | ||
| Years of schooling (predicted) | 0.099*** | ||
| (0.021) | |||
| Num.Obs. | 329509 | 329509 | 329509 |
| + p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001 |
\[\underbrace{0.0992}_{\text{Wald: } \rho/\phi} \;=\; \underbrace{0.0992}_{\texttt{ivreg()}}\]
To four decimal places. 2SLS does not replace the Wald estimator — it contains it, and generalises it to controls and multiple instruments.

One instrument, no controls \(\rightarrow\) the two routes coincide exactly.
A control \(C\) is a confounder — contamination.

Controlling keeps the residuals of \(D\) — the part that does not correlate with \(C\).
An instrument \(Z\) is a source of random variation — the good stuff.

Instrumenting keeps the predicted values of \(D\) — the part that does correlate with \(Z\).
You replicate Acemoglu & Angrist: US child-labour laws as an instrument for schooling — first stage, reduced form, Wald, then 2SLS with controls.
Open exercise 1 in a new tab ↗
Part 3 of 3
The requirement you cannot test — and the one that has been used to demolish this very study.
The exclusion restriction says quarter of birth may affect earnings only through schooling.
Buckles and Hungerman (2013) checked who actually gives birth when — and found that season of birth is not random at all.
Beware: mothers giving birth in winter are, on average, younger, less educated and less likely to be married. Birth timing is partly a choice, and the kind of family that makes it differs.

If family background causes both birth timing and earnings, the red path bypasses education entirely.
An instrument that violates the exclusion restriction is not a weak instrument — it is a confounder.
And IV makes it worse, because the Wald ratio divides by \(\phi\):
\[\text{bias} \;\propto\; \frac{1}{\phi}\]
Here \(\phi = 0.0516\) — quarter of birth shifts schooling by about 19 days. So \(1/\phi \approx 19\): any direct effect of birth timing on earnings is magnified roughly 19-fold in the IV estimate.
Discuss: with such a tiny first stage, would you rather have this instrument — or no instrument at all?
This is the weak instrument problem. A small \(\phi\) means a large \(1/\phi\), and a large \(1/\phi\) means even a trivial violation of the exclusion restriction can swamp your estimate. Weak instruments are not merely imprecise — they are fragile.
You put a number on the fragility: measure the first stage, compute the amplification, and see what a hypothetical small exclusion violation would do to the estimate.
Open exercise 2 in a new tab ↗
2SLS runs IV in two steps: regress the treatment on the instrument, keep the predicted values, then use those to predict the outcome. ivreg(y ~ d | z) does both properly.
With one instrument and no controls, 2SLS equals the Wald ratio exactly. 2SLS earns its place by handling controls and several instruments.
Instrument vs. control — the mirror image: a control is contamination, so you keep the residuals; an instrument is the trustworthy variation, so you keep the predictions.
The exclusion restriction cannot be tested, only argued. If it fails, the instrument becomes a confounder.
A weak instrument (small \(\phi\)) is dangerous, not just imprecise: dividing by \(\phi\) magnifies any violation by \(1/\phi\).
ivreg(y ~ d | z) does in two stages, and why we keep the predicted treatment rather than the residuals.Shaky on any of these? That is what this week’s Absalon quiz and the Friday exercise class are for.
ivreg::ivreg(y ~ d | z): two-stage least squares — treatment before the |, instrument after it.ivreg(y ~ d + c | z + c): 2SLS with controls — note the controls appear on both sides.modelr::add_predictions(model, var = ...): keep the fitted values (the first stage of 2SLS by hand).modelr::add_residuals(model, var = ...): keep the residuals (what controlling keeps instead).lm_robust(d ~ z) / lm_robust(y ~ z): the first stage and the reduced form.Angrist, J. D. and A. B. Krueger (1991). “Does Compulsory School Attendance Affect Schooling and Earnings?*“. In: The Quarterly Journal of Economics, pp. 979-1014.
Buckles, K. S. and D. M. Hungerman (2013). “Season of Birth and Later Outcomes: Old Questions, New Answers”. In: The Review of Economics and Statistics, pp. 711-724.

Lecture 10 · IV & 2SLS