Never comeSome expect to fail. Others are excellent and do not need to come.
Always comeSome struggle and need the help. Others are excellent.
Fair-weather attendersEveryone else: they come when it is easy and skip when it is not.
Attendance depends on ability and motivation, which are in $\varepsilon_i$. So $\operatorname{cov}(X_i, \varepsilon_i) \neq 0$ and OLS is biased. $\implies$ We need a reason to miss lecture that has nothing to do with the student.
EOIR case data, first bond hearings 2010 to 2026, within the same location and week. Released: released within 30 days of the hearing. 95% intervals are narrower than the dots.
The groups are different $\implies$ a naive comparison mixes release with who gets released.
The ideal comparisonTwo people alike in every way except chance: one released, one held.
Instruments in practice · Instrument 1: the naive regression
The Naive Regression: Release Has Two Parts
$Y_i = \beta_0 + \beta_1 X_i + \varepsilon_i$
$Y_i = 1$ if person $i$ is deported. $X_i = 1$ if person $i$ is released.
The problemUnseen things, like a strong case or family ties, make release more likely and also change deportation. They sit in $\varepsilon_i$, so $\operatorname{cov}(X_i, \varepsilon_i) \neq 0$ and OLS is biased.
THE IDEAKeep only $X_{i,\text{exog}}$. $\implies$ We need something that moves release by chance.
Instruments in practice · Instrument 1: the “ideal” experiment
The “Ideal” Experiment: Release by Coin Flip
Flip a coin for each person, whatever their case. Heads: released. Tails: detained.
AssignmentChance alone sorts people into two groups: a randomized controlled trial (RCT).
Same mixBoth groups have the same share with a criminal record (gold): 16%.
This is a perfect instrument. It is mechanically random.
Thought experiment: the dots illustrate the design and are not data.
Question: Any problems with running this experiment?
Instruments in practice · Instrument 1: the “ideal” experiment
Release by Coin Flip: Not Feasible
It is not ethical
Detention takes away a person’s freedom. We cannot detain people for no reason just to run an experiment.
Releasing at random is dangerous
Some people could harm others if released. Detaining them prevents that harm while they are held (incapacitation). A coin would release some of them.
Detaining at random is harmful
Many people should not be detained at all. A coin would detain about half of them.
The alternativeSomething the court already does that works like the coin: it changes who is released, and it has nothing to do with the person.
Instruments in practice · Instrument 1: from a coin to a judge
Put a Judge over Each Door
A judge over each doorReplace the coin with a judge. Cases go to judges by the court’s schedule, not by choice, so the judge works like the coin.
Extreme judgesIf the lenient judge released everyone and the strict judge detained everyone, this would be the coin experiment.
Real judgesNo judge is that lenient or that strict. In one court, they release 75% and 21%.
Which judge you get changes your chance of release: here by 54 percentage points instead of 100.
Release rates: Port Isabel, TX, 2011.
Instruments in practice · Instrument 1: judge assignment
Random Assignment: Who Hears Your Case?
AssignmentEach person is assigned to one of five judges by docket, not by choice.
Judges get similar casesEvery room has the same mix: the same share with a criminal record (gold).
Some judges release moreJudges differ: the strict judge releases 21%, the lenient judge 75% (blue ring: released).
Two alike peoplePerson A gets the strict judge and stays in custody. Person B gets the lenient judge and is released. Chance made the difference.
Release rates are real (Port Isabel, TX, 2011). The dots are illustrative.
Instruments in practice · Instrument 1: judge assignment
The Judge as an Instrument: Two Conditions
Release is not random, but the judge is. The judge's release rate is the instrument $z$.
✓
Relevance
Some judges release more than others.
✓
Exogeneity
Judges get similar cases. The judge affects deportation only through release.
PASSES EXOGENEITYThe balance checks pass.
Instruments in practice · Instrument 1: first stage
ANSWERRelease lowers the chance of being deported by 19 points after 8 years (95% interval: $-22$ to $-16$). Held people in this group are deported 56% of the time.
Instruments in practice · Instrument 1: judge assignment
Released vs. held, no instrument: $-0.23$ (std. error 0.002).
IV
Judge as instrument: $-0.19$, 95% interval $[-0.22, -0.16]$.
IV VS. OLS$\implies$ The raw gap overstates the effect of release: it also reflects who gets released. The IV compares people the judge assignment treats alike.
Instruments in practice · Instrument 1: judge assignment
$\beta_1$: effect of attending the charter on test scores.
Instrument
$Z_i$ = won the admission lottery.
Relevance
Winners attend the charter far more often than losers.
Exogeneity
Passes: names are drawn at random, so $Z_i$ is unrelated to family motivation.
Naive (OLS): attendees are motivated families, so OLS mixes motivation with the school effect. IV: about 0.4 standard deviations in math and 0.2 in reading per year of attendance.
Instruments in practice · Instrument 3: draft lottery
Vietnam Draft Lottery: Does Service Change Earnings?
$\beta_1$: effect of military service on later earnings.
Instrument
$Z_i$ = low draft number (called up).
Relevance
Low numbers served more often, but the gap is far from 100%.
Exogeneity
Partly: numbers were random, but men may stay in school to avoid the draft.
Naive (OLS): veterans differ from non-veterans in health, ability, and family. IV: in the early 1980s, white veterans earned about 15% less than comparable non-veterans.
Instruments in practice · Instrument 4: quarter of birth
How much does one more year of school raise wages?
OLS: $b_2 = 0.1075$ (s.e. $0.0141$, $N = 428$)
$\implies$ one more year of school, wages about 10.8% higher
Wage data: 428 married women in the labor force in 1975 (from the textbook).
Concern: ability, motivation, and family background are in $e_i$. They raise schooling and wages, so part of the 10.8% may not come from schooling.
$\implies$ We need an instrument for education.
2SLS · Two instruments
IV with Two Instruments: 2SLS Uses Both
OLS0.108, interval 0.08 to 0.14. Narrow, but biased upward by ability.
One instrument at a timemothereduc alone: 0.049. fathereduc alone: 0.070. Each throws away the other instrument ⇒ wide intervals.
2SLS: use both at onceStage 1 combines both instruments into one prediction of educ. Result: 0.061, the narrowest IV interval (std. error 0.031 vs. 0.037 and 0.034).
$\implies$ 2SLS gives one estimate that is more precise than either instrument alone. It is still less precise than OLS: the price of removing the bias.
2SLS · Stage 1
Two-Stage Least Squares: Stage 1
Regress
the endogenous variable on all exogenous variables
the fitted values $\widehat{\text{educ}}_i$: the education we predict from the parents’ education and experience. It contains no ability, if the instruments are valid.
Stage 2
regress the outcome on $\widehat{\text{educ}}_i$ in place of $\text{educ}_i$, with the same exogenous variables
$\hat\beta_2 = 0.0614$ $\implies$ one more year of education raises wages by about 6.1%, compared with 10.8% from OLS.
2SLS · Standard errors
Standard Errors: Use an IV Command
Estimate of $\beta_2$
Coefficient
Std. error
Stage 2 run by hand with lm()
0.0614
0.0330
IV command, ivreg()
0.0614
0.0313
Different residualsRun by hand, stage 2 computes the residuals with $\widehat{\text{educ}}_i$. The correct residuals use the actual $\text{educ}_i$: $\hat e_i = \ln(\text{wage}_i) - \hat\beta_1 - \hat\beta_2\,\text{educ}_i - \dots$
Exogenous regressors. They serve as their own instruments. Wage data: intercept, exper, exper$^2$ $\implies G = 3$.
$B$: Bad
Endogenous regressors. Each needs an instrument. Wage data: educ $\implies B = 1$.
$L$: Lucky
Instruments: outside the model, correlated with the Bad variables. Wage data: mothereduc, fathereduc $\implies L = 2$. Lucky because good instruments are hard to find.
Identification
Identification: Under, Exactly, and Over Identified
Under
$L < B$
Too few instruments to estimate $\beta_{G+1}, \dots, \beta_K$. You need more instruments.
Exactly
$L = B$
Just enough instruments. Wage data with mothereduc only: $L = 1 = B$.
Over
$L > B$
More instruments than needed. Wage data with both parents: $L = 2 > B = 1$.
$\implies$ Necessary condition: $L \geq B$, at least one instrument per endogenous regressor. The instruments must also be relevant: a count alone is not enough.
Specification tests
Specification Tests: Two Questions
HausmanIs $x$ endogenous?
$H_0: \operatorname{cov}(x_i, e_i) = 0$ $\implies$ OLS is fine, and more precise than IV.
SarganAre the extra instruments valid?
Needs more instruments than endogenous variables, $L > B$.
Wage data: is education endogenous, and are mothereduc and fathereduc valid?
Specification tests · Hausman
Hausman Test: The Education Example
Data: 428 married women in the labor force in 1975 (from the textbook).
Re-estimate by OLS. The coefficient we look at is $\delta$.
$\hat v$ is the part of education unrelated to the instruments. If it still predicts wages, it carries the correlation with $e_i$.
If $\delta$ is significant $\implies$ educ is endogenous: use IV (2SLS). If $\delta$ is not significant $\implies$ no evidence that educ is endogenous: use OLS, which is more precise.
Specification tests · Hausman
Hausman Test, Step 3: A t-Test on $\hat v$
Hypotheses
$H_0: \delta = 0 \iff \text{educ is exogenous}$
$H_1: \delta \neq 0 \iff \text{educ is endogenous}$
REJECT $H_0$Education is endogenous $\implies$ use IV.
FAIL TO REJECTNo evidence of endogeneity $\implies$ use OLS, which is more precise.
If several variables are tested, use an F-test on all the residual coefficients.
Specification tests · Hausman
Hausman Test: Is Education Endogenous?
Step 2 regression
Estimate
Std. error
t
p
educ
0.0614
0.0310
1.98
0.048
$\hat v$
0.0582
0.0348
1.67
0.095
also exper, exper$^2$, intercept; $N = 428$
REJECT AT 10%$p = 0.095 < 0.10$: some evidence that education is endogenous, though not at 5%.
DecisionWeak evidence, but enough concern to use IV. The first-stage F of 55.4 says the instruments are strong.
Specification tests · Sargan
Sargan Test: Requires Extra Instruments
Endogenous variables: $B = 1$educ
Instruments: $L = 2$mothereduc and fathereduc
Each instrument alonegives its own estimate of the return to education
If both are validthe two estimates should agree
$\implies$ With $L = B$ there is one estimate and nothing to compare. The test needs $L > B$.
Specification tests · Sargan
Sargan Test: The Idea
mothereduc alone0.049
fathereduc alone0.070
Gap: 0.021Is that more than sampling error?
$\implies$ The Sargan test answers this.
Specification tests · Sargan
Sargan Test: The Hypotheses
Null
$H_0$: all instruments are valid $\iff$ $\operatorname{cov}(z_j, e) = 0$ for every instrument
Alternative
$H_1$: at least one instrument is invalid
$\implies$ Reject $H_0$: at least one instrument is invalid.
Specification tests · Sargan
Sargan Test: The Three Steps
Step 1Estimate the 2SLS model
save the residuals $\hat e$
Step 2Regress $\hat e$ on all exogenous variables and all instruments
save the $R^2$
Step 3Compute $N R^2$ and compare with $\chi^2_{(L-B)}$
A shock to $e_{i,h}$ changes hours, hours change the wage, so $\text{Wage}_i$ is correlated with $e_{i,h}$. The same argument applies to $\text{Hours}_i$ and $e_{i,w}$.
$\implies$ OLS on either equation is biased.
Simultaneous equations · Example 2: Industrial organization
Simultaneity in a Market: Price and Quantity
Outcomes
Two outcomes in each market: the price and the quantity sold.
Demand
$Q_i = \alpha_1\,P_i + e_{i,d}$
Buyers respond to price.
Supply
$Q_i = \beta_1\,P_i + e_{i,s}$
Firms respond to price.
Mechanism
A demand shock $e_{i,d}$ or a supply shock $e_{i,s}$ moves the price at which the market clears. The price is determined together with $Q_i$, so $P_i$ is correlated with each error.
$\implies$ OLS is biased.
Simultaneous equations · The model
Supply and Demand: A Look Back on ECON 2
Demand
$Q_i = \alpha_1 P_i + \alpha_2 X_i + e_{i,d}$
Supply
$Q_i = \beta_1 P_i + e_{i,s}$
Income
$X_i$ is income. Question: From ECON 2, which signs should $\alpha_1$ and $\beta_1$ have?
An endogenous variable on the left, exogenous variables on the right: the same form as the first-stage equations of Chapter 10.
OLS WORKS HERE$E(v_{i,1} \mid X_i) = 0$ and $E(v_{i,2} \mid X_i) = 0$, so OLS estimates of $\pi_1$ and $\pi_2$ are consistent.
Simultaneous equations · Interpretation
Reduced Form: Interpretation
Equilibrium
The reduced-form equations give the equilibrium values of $P$ and $Q$ for a given value of the exogenous variable. Suppose income $X$ rises by one unit.
$\pi_1$
The expected change in the equilibrium price, after the market adjusts to the new equilibrium of $P$ and $Q$.