← 8. Causal effects
Instrumental variables (IV)
Try this analysis →

Instrumental Variables (IV) Analysis

A causal inference method that uses a suitable instrumental variable to deal with the endogeneity of an explanatory variable in observational data.

EndogeneityInstrumental variableRelevance · exclusion restrictionCausal effect

Historical rail linesInstrument ZTransit accessExplanatory XCar useOutcome YRelevanceEffect of interestNo path bypassing X ✕

Do residents who live near a subway station use their cars less? Or is it that people who drive a lot chose to live in areas with poor public transit in the first place? What should we do if unobserved factors such as income or job location affect both variables at once?

When there is an endogeneity problem between an explanatory variable and an outcome, instrumental variables (IV) analysis is the approach that tries to identify the causal effect by using a third variable that meets certain conditions.

Ordinary regression estimates the statistical relationship holding other conditions constant, but because of omitted variables or reverse causality it can’t be read directly as a causal effect. Instrumental variables analysis uses a variable that affects the explanatory variable but has no effect on the outcome other than through the explanatory variable. The hardest part, though, is judging whether these conditions actually hold.

The instrumental variables approach is used for education and wages, health care use, policy effects, transportation research and more. In this lesson we’ll use an example that analyzes public transit access and car use, with the layout of historical rail lines as a candidate instrument, to look at the principle, key assumptions, analysis steps, interpretation of results and cautions.

SECTION 1

What is instrumental variables (IV) analysis?

A method that separates out and uses the exogenous variation in an endogenous explanatory variable.

Instrumental variables analysis is an identification strategy that, when an explanatory variable X may be related to the error term, uses an instrument Z to exploit only a particular part of the variation in X. What we care about is the causal effect of X on Y; Z helps us estimate that effect.

In the example we set X = public transit access, Y = frequency of car use, Z = distance to historical rail lines. Historical rail lines are only a candidate in this example; we shouldn’t assume in advance that they are a valid instrument.

SECTION 2

Why do we need instrumental variables?

A correlation between transit access and car use is not the same as a causal effect.

People who use their cars less may prefer neighborhoods with convenient transit. Also, local density, income, parking costs, job locations, urban planning and so on can affect both access and use at the same time. In this case the ordinary regression coefficient can mix in influences other than the effect of transit.

If it’s hard to observe every possible confounder perfectly, you can examine whether there is a suitable instrument that creates exogenous differences in access. But if the instrument is inappropriate, you can end up with results that are even more wrong than ordinary regression.

SECTION 3

How do instrumental variables work?

We look at differences in Y through the path by which Z affects X.

Does transit access change car use?A diagram of examining the historical rail layout as a candidate instrumentHistorical rail layoutCandidate instrument ZTransit accessExplanatory variable XCar useOutcome YRelevanceEffect of interestThere must be no path that bypasses X · an assumption that’s hard to test
A diagram of examining the historical rail layout as a candidate instrument. The arrows alone don’t prove the exclusion restriction.

In the simple case of a single instrument and a single explanatory variable, the Wald estimator can be understood as the difference in mean Y by Z ÷ the difference in mean X by Z. It rescales the change in Y by how much Z changes X.

With continuous variables and several control variables, the effect is usually estimated with two-stage least squares (2SLS) or similar methods. The instrumental variable refers to the conditions and logic for identifying the causal effect, and 2SLS is one of the estimation methods that compute the effect under those conditions.

SECTION 4

Worked example: transit access and car use

We examine the effect of the transportation environment in urban areas on car trips.

Suppose a hypothetical study observed 240 residential areas in several cities. Current transit access is measured with a 0–10 index, and car use is recorded as weekly car trips per household. The data below are a hypothetical setup for learning.

VariableExampleRole in analysis
Transit access0–10 score combining travel time to a station, etc.Possibly endogenous explanatory variable X
Weekly car use8.1 trips per household per weekOutcome Y
Distance to historical rail linesDistance to a former line (km)Candidate instrument Z
Household income · population densityIncome level · people/km²Observed control variables
Area identifierR001~R240Unit of analysis

‘Distance to historical rail lines’ may be related to current transit access, but it could also affect car use directly through the path of urban development or land use. So being a historical variable doesn’t by itself guarantee exogeneity.

SECTION 5

What makes an instrument valid?

Relevance alone isn’t enough; the exclusion restriction and independence matter.

ConditionQuestionReview in this example
RelevanceDoes Z affect X strongly enough?Check the association between historical rail distance and current transit access
IndependenceIs Z independent of confounders?Review old centers of urban growth, industrial siting, policy choices, etc.
Exclusion restrictionDoes Z affect Y only through X?Review effects of historical lines on land use, road networks and housing density
MonotonicityAre there no units that move against the instrument?Additional review needed for a LATE interpretation
Key point: being significant in the first-stage regression doesn’t mean the exclusion restriction holds. The exclusion restriction and independence require arguments based on the research design, the institutional background and alternative paths.
SECTION 6

In what order does the analysis proceed?

It runs from reviewing the research design through estimation and sensitivity analysis.

① Draw the causal paths first

Lay out the relationships among transit access, car use, income, population density and the historical rail layout. Look for any other path from Z to Y.

② Check first-stage relevance

With access as the dependent variable, estimate its relationship with the instrument and the control variables. Check for a weak-instrument problem at the same time.

③ Compare IV estimates with ordinary regression results

Estimate the IV effect with an appropriate method such as 2SLS, and show the estimates and confidence intervals side by side with the ordinary regression results. A difference between them doesn’t automatically make either one true.

④ Discuss possible violations of the assumptions

Carry out sensitivity analyses with different control variables, sample definitions and choices of instrument.

SECTION 7

What do you check in the first-stage regression?

Assess how strongly the instrument is related to transit access.

ItemHypothetical value for learningInterpretation
Instrument coefficient−0.74The farther from a former line, the lower the access score
First-stage partial F statistic18.6One of the measures used to assess instrument strength
Number of observations240Confirm the same sample and control variable definitions

The F = 18.6 above is an illustrative number. People often check whether F exceeds 10, but that isn’t a universal safety threshold. If there is heteroscedasticity or a clustered structure, you should use appropriate weak-instrument diagnostics and critical values.

SECTION 8

How do you interpret instrumental variables results?

Be clear about the units of the explanatory variable of interest and the population the estimate targets.

The following are separate illustrative hypothetical estimates to explain how to read a results table. They were not produced by fitting actual data and do not represent statistical test results.

Estimation methodChange in weekly car use per 1-point increase in access95% confidence interval (hypothetical)
Ordinary OLS−0.18 trips[−0.29, −0.07]
Instrumental variables 2SLS−0.42 trips[−0.76, −0.08]

The 2SLS estimate of −0.42 is interpreted as car use falling by an average of 0.42 trips per week when access rises by 1 point. But to read this figure as a causal effect, the instrumental variable assumptions must be valid, and whether the effect generalizes to the whole population has to be judged separately.

Scope of interpretation: with heterogeneous effects and under certain assumptions, IV can identify the local average treatment effect (LATE) for the group whose X changes in response to the instrument. Don’t simply say it is “the same effect for everyone.”
SECTION 9

What graph do you use to compare the estimates?

Look at the uncertainty as well as the size of the OLS and IV estimates.

Change in car use per 1-point increase in access · hypothetical resultsOrdinary OLSInstrumental IV−0.8−0.6−0.4−0.20−0.18−0.42
A mock-up showing illustrative hypothetical coefficients and 95% confidence intervals on the same axis. Read the direction of change relative to 0.

The IV confidence interval can be wider than the OLS one. The price of addressing confounding can be lower precision in the estimate. Don’t choose a model just by looking for a small p-value or a large coefficient.

SECTION 10

What should you watch out for in the analysis?

Weak instruments and violations of the exclusion restriction can badly distort the results.

Are historical rail lines really exogenous?

Historical railways may have influenced commercial centers, road development, population concentration and long-term urban expansion. If these paths still affect car use today, the exclusion restriction can be violated.

Is the instrument strong enough?

A weak instrument can make estimates unstable and undermine the validity of the usual confidence intervals. Consider appropriate inference methods that are robust to weak instruments.

Did you account for spatial correlation and group structure?

Areas within the same city may not be independent of one another. Depending on the data structure, consider clustered standard errors or spatial correlation.

Are the target of estimation and the units clear?

Check the units of the access index, how use per household is defined and which group changes because of the instrument, and limit the scope over which the findings are generalized.

Caution: the fact that the lines are historical doesn’t prove the instrument is valid. If an unobserved direct path exists, IV estimation doesn’t guarantee a causal effect either.
SECTION 11

How does it differ from other methods?

Choose the identification strategy and the estimation method as separate decisions.

MethodMain question it answersDifference
Ordinary regression (OLS)How are access and car use related?Causal interpretation is hard if the exogeneity assumption fails
Instrumental variables (IV)Can we identify the causal effect of X while accounting for endogeneity?The valid-instrument assumptions are key
Two-stage least squares (2SLS)How do we estimate the effect under the IV assumptions?A standard estimation method for implementing IV
Propensity score matching (PSM)Can we adjust for group differences using observed variables?Doesn’t automatically remove unobserved confounding
Difference-in-differences (DID)How much did the group difference change before and after a policy?Requires separate identifying assumptions such as parallel trends

IV and 2SLS aren’t completely separate, competing analyses. IV is a bundle of design and assumptions for identifying a causal effect, and 2SLS is the standard estimation technique for linear IV models.

SECTION 12

How do you report instrumental variables results?

Explain why the instrument was chosen and how its assumptions were reviewed before presenting the results table.

The report should include how the data were collected and the sample, definitions of the outcome and the endogenous variable, the institutional and historical grounds for choosing the instrument, the first-stage coefficient and weak-instrument diagnostics, the IV estimate and confidence interval, how standard errors were computed, and sensitivity analyses.

Example text for a paper

To account for possible endogeneity in the relationship between public transit access and car use, distance to historical rail lines was examined as a candidate instrument. In an illustrative hypothetical analysis, the instrument was associated with access (first-stage F = 18.6), and the 2SLS coefficient for access was −0.42 (95% CI [−0.76, −0.08]). However, these figures are hypothetical values for demonstrating the analysis procedure; an actual causal interpretation would require research evidence that can separately establish the exogeneity of historical rail lines and the exclusion restriction.

Don’t report that “a causal effect was demonstrated” just because the relevance of the IV was confirmed. Describe the weaknesses of the exclusion restriction, possible alternative paths and the scope of interpretation as well.

SECTION 13

Where can instrumental variables analysis be used?

Consider it when an endogeneity problem is expected and there is a convincing source of exogenous variation.

FieldRelationship of interestExample of a candidate instrument
Transportation · urbanTransit access → car useLayout of historical transport infrastructure
Economics of educationYears of schooling → wagesCollege proximity or institutional changes
Health economicsHealth care use → health outcomesExogenous differences in access to health care facilities
Environmental economicsPollution exposure → healthWeather and terrain variation, etc.

The instruments in these examples are candidates a study might examine. This is not a list guaranteeing that the exclusion restriction holds in each study.

✓ Wrap-up

The heart of instrumental variables analysis is setting up a valid causal path, more than the computation.

You can read the results causally only after reviewing relevance and the exclusion restriction.


Even if a negative correlation is observed between transit access and car use, it can’t be read directly as the causal effect of public transit. Instrumental variables analysis is a way of finding an exogenous path through which access varies, to reduce problems caused by omitted variables or reverse causality. In the process you can look at candidates that may be related to the explanatory variable, such as the historical rail layout, but being related isn’t enough to make the analysis work.

What matters most is how convincingly you can support the exclusion restriction, that there is no other path by which the instrument affects car use, and the independence assumption. You also need to check for weak-instrument problems, the spatial structure of the data, the population the estimate targets and the uncertainty. If you can’t find a suitable instrument, it’s more sound to state the limits of identifying the causal effect clearly than to present IV estimates.

KEY TAKEAWAY

An instrumental variable is a third variable used to identify the causal effect of an endogenous explanatory variable. A causal interpretation is possible only if independence and the exclusion restriction hold, not just relevance. Weak-instrument diagnostics, a review of alternative paths and a description of the estimation target are also needed.