When the effect of a treatment differs from person to person, instrumental variables estimation does not recover the average effect in the population. Under four assumptions it recovers the average effect for one group: the people whose treatment the instrument changes. These notes build that result, the local average treatment effect (LATE), from potential outcomes, prove it, show what happens when each assumption fails, and apply it to two real data sets, a medical trial and a training experiment, with code in Stata, R and Python.
The notes are for advanced undergraduates and postgraduates who have met regression and the idea of an instrument. They are written from my lecture notes on instrumental variables and treatment effects, and follow one example throughout: a training offer \(Z_i\), actual training \(W_i\) and earnings \(Y_i\).
The notation at a glance
| Symbol | Meaning in the training example |
|---|---|
| \(Z_i\) | 1 if person \(i\) is offered support for training (the instrument) |
| \(W_i\) | 1 if person \(i\) actually trains (the treatment) |
| \(Y_i\) | Earnings (the outcome) |
| \(Y_i(0),\ Y_i(1)\) | Earnings without and with training; only one is observed |
| \(\tau_i = Y_i(1) - Y_i(0)\) | The person's gain from training |
| \(W_i(0),\ W_i(1)\) | Whether the person would train if not offered, and if offered |
| Complier | Trains if offered, not otherwise: \(W_i(0) = 0,\ W_i(1) = 1\) |
| \(ITT_Y,\ ITT_W\) | Effect of the offer on mean earnings, and on the training rate |
| LATE | The compliers' average gain, \(\operatorname{E}[\tau_i \mid \text{complier}]\) |
The seven parts
What students say
“Nicky is an excellent econometrics tutor. He explains complex concepts clearly and makes them much easier to understand.”
“I was completely lost in my economics class, and then I started working Nicky and he totally saved me. He was excellent at explaining the material and extremely accommodating to meet with me many times despite us being in different time zones! Highly recommend working with Nicky!”
“Nicky is a very good and thorough teacher. He has excellent knowledge of econometrics and takes the time to work through your questions. Highly recommended!”
“Really great tutor! Encouraging, knowledgeable, friendly”
“Very good lesson, Nicky is very helpful.”
“Very helpful and clear.”
“I gather it was very useful, thank you!”
“Fantastic!”
The results in one table
| Question | Answer | Where |
|---|---|---|
| What does IV identify with a common effect? | The common effect \(\tau\), under relevance, exogeneity and exclusion. | Part 1 |
| What does OLS recover with heterogeneous effects? | The ATT plus the difference in mean untreated outcomes between treated and untreated. | Part 2 |
| Can heterogeneous-effect IV equal the ATE? | Yes, if and only if \(\operatorname{Cov}(Z_i, W_i(\tau_i - ATE)) = 0\) | Part 2 |
| What is the Wald ratio? | The difference in mean outcomes between the instrument groups divided by the difference in mean treatment. | Part 1 |
| What does the LATE theorem identify? | The mean treatment effect of compliers with respect to this instrument. | Part 4 |
| Why does monotonicity matter? | It rules out defiers, so the first stage is the complier share and the Wald ratio their average gain. | Part 4, Part 5 |
| Can never-takers gain from treatment? | Yes: the instrument does not move them, but treatment itself could help them, and their gain counts in the ATE. | Part 3 |
| Does randomisation guarantee a valid instrument? | No: exclusion and relevance must also hold. | Part 1 |
| Which assumptions can a causal diagram show? | Relevance (an arrow from instrument to treatment), exclusion (no arrow from instrument to outcome) and independence (no arrow into the instrument). Monotonicity cannot be drawn. | Part 1, Part 3 |
| What does IV with group dummies estimate? | A non-negatively weighted average of the group LATEs, with weights proportional to share times \(\kappa(1 - \kappa)\) times the first stage. | Part 5, Part 7 |
The data and code
Both applications use data that anyone can download free. The vitamin A trial is analysed from six cell counts published by Sommer and Zeger (1991), from which the code rebuilds all 23,682 records. The Job Corps data are the JC data set of the R package causalweight, released under the MIT licence; the variables used are at job-corps-jc.csv with a description. The scripts:
Before you start
Every probability rule the proofs use, from the mean of a 0-1 variable to the law of iterated expectations and the law of total covariance, is stated with a number and proved on the probability toolkit page. The notes also assume expectations, covariances and conditional expectations (lesson 3), simple and multiple regression (lesson 12) and omitted variable bias (lesson 13). For potential outcomes, ATE and ATT without instruments, see treatment effects and causal inference; for two-stage least squares with several variables and weak instruments, the IV and weak instruments explainer.
Working on instruments or treatment effects? Send me the question
I tutor econometrics one-to-one at undergraduate, master's and PhD level, including instrumental variables, LATE, two-stage least squares and programme evaluation. Bring the question, the output or the dissertation chapter you are stuck on to a free 30-minute consultation.
Book a free 30-minute consultation PhD and postgraduate econometrics WhatsApp
Written by Dr Nicky Grant from his lecture notes on instrumental variables and treatment effects; first published on drnickygrant.com on 23 November 2026. © 2026 Dr Nicky Grant. You are welcome to link to these notes and to quote short passages with a link to this page; please do not republish them.
