Day 62. The Wald Estimator
With a binary instrument, IV is a ratio of two differences in means. The Wald estimator, its grouped-data generalisation, its delta-method standard error, and the special case of one-sided non-compliance where it recovers the effect on the treated.
- ●Compute the Wald estimator from group means and relate it to the covariance formula.
- ●Read IV graphically as the slope through group means.
- ●Derive a delta-method standard error for a ratio of differences.
- ●Prove that with one-sided non-compliance the Wald estimator equals the effect of treatment on the treated.
Theory
Binary instrument
Let (won a lottery, born in an eligible year, offered a voucher). The Wald estimator is
where are means among units with . The numerator is the reduced form (intention-to-treat effect on ), the denominator the first stage (effect of on ; for binary , the difference in take-up rates).
Same as IV
For binary , with , and similarly for . The factor cancels, so the Wald estimator is the IV estimator.
The picture
Plot the two group means and : the Wald estimate is the slope of the line through them. With several groups (quarters of birth, lottery cohorts), fitting a line through the group means, weighted by group size, is 2SLS with group dummies as instruments (Angrist's grouping estimator).
Standard error
By the delta method, with reduced form , first stage and ,
A small first stage inflates the variance quadratically (Day 65).
One-sided non-compliance
If nobody with can get treated (a programme only lottery winners can join), then under exclusion the Wald estimator equals the effect of treatment on the treated (Bloom's result). Phase 3, Day 41, called the same ratio the CACE; Day 63 develops the general case.
Part 1 · Warm-up
Exercise 1 · A first Wald estimate
Mean outcomes are 52 () and 50 (); treatment rates 0.6 and 0.2. Compute the Wald estimate.
Show solution
Step 1. Reduced form: .
Step 2. First stage: .
Step 3. .
Exercise 2 · Slope through two points
Show that the line through and has slope 5.
Show solution
Step 1. Slope , the Wald estimate.
Exercise 3 · Grouped data
Three cohorts have mean schooling and mean wage (10, 20), (12, 23), (14, 26), with equal sizes. What is the grouping estimator?
Show solution
Step 1. The points lie on a line: each 2 extra years add 3 to the wage.
Step 2. Slope .
Answer: 1.5 per year of schooling.
Exercise 4 · A standard error
Reduced form 2 (SE 0.5), first stage 0.4 (SE 0.02), estimates uncorrelated. Compute the delta-method SE of .
Show solution
Step 1. Numerator: .
Step 2. .
Answer: about 1.27; most of the uncertainty comes from the reduced form.
Exercise 5 · Signs
The reduced form is +3 and the first stage −0.5. What is the Wald estimate, and what does the negative first stage mean?
Show solution
Step 1. .
Step 2. The instrument lowers take-up, and the outcome rises: so the treatment lowers the outcome.
Answer: −6. Recoding as flips both signs and leaves the estimate unchanged.
Part 2 · Proofs
Exercise 6 · Wald equals IV
For binary with , prove , and conclude that the Wald estimand equals .
Show solution
Step 1. .
Step 2. .
Step 3. The same holds for ; the factor cancels in the ratio.
Exercise 7 · Delta method for a ratio
Let . Derive the delta-method variance in the theory.
Show solution
Step 1. Gradient: , .
Step 2. .
Step 3. Factor out . (Day 12.)
Exercise 8 · One-sided non-compliance gives the ATT
Let be random, with whenever , and exclusion: does not depend on otherwise. Prove the Wald estimand equals .
Show solution
Step 1. Reduced form: .
Step 2. Randomisation: , so the reduced form is .
Step 3. .
Step 4. First stage: . Ratio: .
Step 5. Everyone with has , so this is the ATT.
Exercise 9 · Grouping estimator with two groups
Prove that the IV estimator with a binary instrument equals the slope of the line through the two sample group means.
Show solution
Step 1. Exercise 6 holds in the sample too: (with the same divisor for both covariances).
Step 2. The ratio is , which is the slope through the two points.
Exercise 10 · A direct effect of the instrument
If also affects directly by (exclusion fails), show the Wald estimand is in the constant-effect model , .
Show solution
Step 1. .
Step 2. Divide by : .
Part 3 · Applied
Exercise 11 · Draft lottery and earnings
In a stylised version of Angrist (1990), men with draft-eligible lottery numbers earn $15,600 a year later in life versus $16,050 for ineligible men. Their veteran rates are 0.35 and 0.19. Estimate the earnings effect of military service.
Show solution
Step 1. Reduced form: .
Step 2. First stage: .
Step 3. .
Answer: serving lowers annual earnings by about $2,800 for men whose service depended on the lottery.
Exercise 12 · Health insurance lottery
In a stylised Oregon-style lottery, winners average 1.10 emergency-room visits a year and losers 1.00; insurance coverage is 43% versus 18%. Estimate the effect of insurance on ER visits.
Show solution
Step 1. Reduced form: visits.
Step 2. First stage: .
Step 3. .
Answer: insurance raises ER use by 0.4 visits a year among people who took it up because they won, contradicting the hope that coverage would reduce ER use.
Exercise 13 · Quarter of birth
Mean schooling and log weekly wages by quarter of birth (equal cohort sizes): Q1 (12.70, 5.892), Q2 (12.80, 5.900), Q3 (12.85, 5.904), Q4 (12.90, 5.908). Estimate the return to schooling by the grouping estimator.
Show solution
Step 1. Means: , .
Step 2. Deviations of : −0.1125, −0.0125, 0.0375, 0.0875; of : −0.009, −0.001, 0.003, 0.007.
Step 3. ; .
Step 4. Slope .
Answer: 8% per year. Tiny differences in group means identify the effect, which is why such designs need very large samples (Day 65).
Exercise 14 · A training voucher only winners could use
Only lottery winners could use a training voucher; 60% of winners used it. Winners earn $300 a year more than losers. Estimate the effect on those trained.
Show solution
Step 1. One-sided non-compliance: first stage .
Step 2. .
Answer: $500 a year, the ATT (Exercise 8).
Exercise 15 · A confidence interval for the draft effect
In Exercise 11, the reduced form has SE $200 and the first stage SE 0.01, uncorrelated. Compute a 95% confidence interval for the effect of service.
Show solution
Step 1. Numerator: .
Step 2. SE .
Step 3. CI: .
Answer: negative but imprecise. With a weak first stage the delta method can be unreliable; Day 65 gives better intervals.
Verify in Python
import numpy as np
rng = np.random.default_rng(62)
# A simulated lottery: Z random, compliers/always/never takers, effect -2800 for those who serve
n = 400_000
Z = rng.random(n) < .3
kind = rng.choice(["c", "a", "n"], size=n, p=[.16, .19, .65])
D = (kind == "a") | ((kind == "c") & Z)
Y0 = rng.normal(16_000 + 600 * (kind == "a"), 5_000, n)
Y = Y0 - 2_800 * D
rf = Y[Z].mean() - Y[~Z].mean(); fs = D[Z].mean() - D[~Z].mean()
iv = np.cov(Z, Y)[0, 1] / np.cov(Z, D)[0, 1]
print(f"reduced form {rf:.0f}, first stage {fs:.3f}, Wald {rf / fs:.0f}, covariance IV {iv:.0f}")
# Delta-method SE versus the bootstrap
var_rf = Y[Z].var() / Z.sum() + Y[~Z].var() / (~Z).sum()
var_fs = D[Z].var() / Z.sum() + D[~Z].var() / (~Z).sum()
b = rf / fs
cov = np.cov(Y[Z], D[Z])[0, 1] / Z.sum() + np.cov(Y[~Z], D[~Z])[0, 1] / (~Z).sum()
print(f"delta-method SE {np.sqrt(var_rf + b**2 * var_fs - 2 * b * cov) / abs(fs):.0f}")
boot = []
for _ in range(200):
i = rng.integers(0, n, n); z, d, y = Z[i], D[i], Y[i]
boot.append((y[z].mean() - y[~z].mean()) / (d[z].mean() - d[~z].mean()))
print(f"bootstrap SE {np.std(boot):.0f}")
# Exercises 11, 13, 15
b = -450 / .16
print("draft:", b, " SE", round(np.sqrt(200**2 + b**2 * .01**2) / .16), " CI", np.round([b - 1.96 * 1262.3, b + 1.96 * 1262.3]))
x = np.array([12.7, 12.8, 12.85, 12.9]); y = np.array([5.892, 5.900, 5.904, 5.908])
print("quarter-of-birth slope:", round(np.polyfit(x, y, 1)[0], 4))
Key takeaways
- With a binary instrument, IV is the Wald ratio: difference in outcomes over difference in treatment between instrument groups.
- Graphically, it is the slope through group means; with many groups, a size-weighted line through the means is 2SLS.
- Its delta-method variance is inflated by ; with one-sided non-compliance it estimates the effect on the treated.
Simulation Lab: The Wald & Grouping Estimator
Open full screen →Draft-lottery groups: the slope through group means estimates the effect of service; veterans-versus-others does not.
Lottery groups differ only in their draft risk. Each dot is a group: its veteran share (x) and mean earnings (y). The slope through the group means is the Wald estimate (2 groups) or the grouping (2SLS) estimate (more groups). Comparing veterans with non-veterans instead mixes in volunteers, who would earn more anyway.