University

Instrumental variables and LATE · Companion to the seven parts · Advanced undergraduate and postgraduate

Probability toolkit for IV and LATE

The IV and LATE notes use a small set of probability rules again and again: the mean of a 0-1 variable is a probability, averages can be taken group by group, a constant comes outside a covariance and a varying one does not. This page states each rule, shows it with a number, and proves it in a dropdown. The parts link here wherever a step uses one, so you can check the step without leaving the argument for long.

Throughout, \(Z_i\) is a training offer, \(W_i\) actual training and \(Y_i\) earnings, as in the rest of the series. Expectations are over the population; the rules hold for any variables with finite means and variances.

Which rule each part uses

RuleIn wordsUsed in
1The mean of a 0-1 variable is the share of onesPart 1 §7, part 2 §3, part 3 §1, part 4 §4
2Averaging \(X\) over a group, with zeros for everyone outside it, gives the group's share times its meanPart 1 §7, part 4 §3
3The overall mean is the share-weighted average of the group meansPart 1 §7, part 4 §3, part 5 §5
4Average within groups, then average the group averages; anything fixed within a group comes outsidePart 2 §7, part 5 §5
5Independence is stronger than mean independence, which is stronger than zero covariancePart 1 §4, part 2 §7 and §8, part 3 §8, part 4 §2
6Constants come outside a covariance; sums splitPart 1 §3, §5, §6, part 2 §4 and §5
7A covariance with a binary variable is \(p(1 - p)\) times a difference in group meansPart 1 §7, part 2 §3, part 4 §6, part 5 §1 and §5
8A varying gain is its mean plus a deviation; only the deviation can make IV differ from the ATEPart 2 §5, part 4 §6
9A covariance is the average within-group covariance plus the covariance of the group meansPart 5 §5, part 7 §5

What students say

“Nicky is an excellent econometrics tutor. He explains complex concepts clearly and makes them much easier to understand.”
Charles GardnerGoogle review
“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!”
Claire ChouGoogle review
“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!”
ChrisEconometrics · 22/08
“Really great tutor! Encouraging, knowledgeable, friendly”
JedEconometrics · 09/02
“Very good lesson, Nicky is very helpful.”
ChrisEconometrics · 19/08
“Very helpful and clear.”
ClaireEconometrics · 22/01
“I gather it was very useful, thank you!”
ClaireEconometrics · 12/01
“Fantastic!”
JedEconometrics · 11/02

1. The mean of a 0-1 variable is a probability

Rule 1. If \(W_i\) takes only the values 0 and 1, with \(q = P(W_i = 1)\), $$ \begin{aligned} \operatorname{E}[W_i] &= q, \\ \operatorname{Var}(W_i) &= q(1 - q), \\ \operatorname{E}[W_i \mid Z_i = z] &= P(W_i = 1 \mid Z_i = z) . \end{aligned} $$

A number. Ten people, six of whom train: \(W_i\) is 1, 1, 1, 1, 1, 1, 0, 0, 0, 0. The mean is 6 / 10 = 0.6, the share who train. The variance is \(0.6 \times 0.4 = 0.24\). It is largest, 0.25, when the split is even, and zero when everyone or no one trains. The conditional version says the same within a group: if 60% of the offered group train, \(\operatorname{E}[W_i \mid Z_i = 1] = 0.6\). This is why a first stage, a difference in mean treatment, is read as a difference in percentage points.

Show the proof
  1. The mean. A variable with two values has mean equal to each value times its probability: \(\operatorname{E}[W_i] = 0 \times (1 - q) + 1 \times q = q\).
  2. The square. \(0^2 = 0\) and \(1^2 = 1\), so \(W_i^2 = W_i\) and \(\operatorname{E}[W_i^2] = q\).
  3. The variance. $$ \begin{aligned} \operatorname{Var}(W_i) &= \operatorname{E}[W_i^2] - (\operatorname{E}[W_i])^2 \\ &= q - q^2 = q(1 - q) . \end{aligned} $$
  4. Within a group. Steps 1 to 3 use only the distribution of \(W_i\). Using its distribution among people with \(Z_i = z\) instead gives \(\operatorname{E}[W_i \mid Z_i = z] = P(W_i = 1 \mid Z_i = z)\).

2. The mean of a variable times an indicator

An indicator \(\mathbf{1}_A\) is 1 for people in group \(A\) and 0 for everyone else. The offer \(Z_i\), the complier marker \(C_i\) and \(Z_i W_i\) are all indicators.

Rule 2. For any group \(A\) with \(P(A) > 0\) and any variable \(X_i\), $$ \operatorname{E}[\mathbf{1}_A X_i] = P(A)\,\operatorname{E}[X_i \mid A] . $$

A number. 40% of people are compliers and their mean gain from training is £5,000. Give every non-complier a zero and every complier their gain, then average over everyone: the result is \(\operatorname{E}[C_i \tau_i] = 0.4 \times \text{£}5{,}000 = \text{£}2{,}000\). The zeros dilute the compliers' mean by their share. Part 4 uses exactly this to show that the earnings ITT is the complier share times the LATE.

Three cases the notes use:

$$ \begin{aligned} \operatorname{E}[Z_i Y_i] &= p\,\operatorname{E}[Y_i \mid Z_i = 1], \\ \operatorname{E}[Z_i W_i] &= P(Z_i = 1, W_i = 1), \\ \operatorname{E}[C_i \tau_i] &= p_C\, \tau_C . \end{aligned} $$
Show the proof

Split the population into \(A\) and everyone else, and apply rule 3:

$$ \begin{aligned} &\operatorname{E}[\mathbf{1}_A X_i] \\ &\quad = P(A)\,\operatorname{E}[\mathbf{1}_A X_i \mid A] \\ &\qquad + P(\text{not } A)\,\operatorname{E}[\mathbf{1}_A X_i \mid \text{not } A] \\ &\quad = P(A)\,\operatorname{E}[X_i \mid A] \\ &\qquad + P(\text{not } A) \times 0 . \end{aligned} $$

Inside \(A\) the indicator is 1, so \(\mathbf{1}_A X_i = X_i\); outside it is 0. For the second case, \(Z_i W_i\) is itself an indicator, of the group with \(Z_i = 1\) and \(W_i = 1\), so by rule 1 its mean is the probability of that group.

3. The law of total expectation

Rule 3. If \(U_i\) splits the population into groups \(u_1, \dots, u_K\), $$ \small \operatorname{E}[Y_i] = \sum_{k=1}^{K} P(U_i = u_k)\,\operatorname{E}[Y_i \mid U_i = u_k] . $$ With two groups defined by the offer, $$ \begin{aligned} \operatorname{E}[Y_i] &= p\,\operatorname{E}[Y_i \mid Z_i = 1] \\ &\quad + (1 - p)\,\operatorname{E}[Y_i \mid Z_i = 0] . \end{aligned} $$

A number. 30% of people are offered training; the offered earn £52,000 on average and the others £50,000. The population mean is \(0.3 \times \text{£}52{,}000 + 0.7 \times \text{£}50{,}000 = \text{£}50{,}600\), not the midpoint £51,000: each group counts in proportion to its size. When \(Y_i\) is itself an indicator the rule is the law of total probability:

$$ \begin{aligned} P(W_i = 1) &= p\,P(W_i = 1 \mid Z_i = 1) \\ &\quad + (1 - p)\,P(W_i = 1 \mid Z_i = 0) . \end{aligned} $$
Show the proof

For \(Y_i\) with a discrete distribution (with a continuous one, sums over \(y\) become integrals and nothing else changes):

$$ \begin{aligned} &\operatorname{E}[Y_i] = \sum_y y\, P(Y_i = y) \\ &\quad = \sum_y y \sum_k P(Y_i = y, U_i = u_k) \\ &\quad = \sum_k P(U_i = u_k) \\ &\qquad \times \sum_y y\, P(Y_i = y \mid U_i = u_k) \\ &\quad = \sum_k P(U_i = u_k)\,\operatorname{E}[Y_i \mid U_i = u_k] . \end{aligned} $$

The second line splits the probability of each value of \(Y_i\) across the groups, which do not overlap and cover everyone. The third writes each joint probability as \(P(U_i = u_k)\,P(Y_i = y \mid U_i = u_k)\) and swaps the order of the sums. The inner sum is the group mean.

4. The law of iterated expectations

The conditional mean \(\operatorname{E}[Y_i \mid X_i]\) is a random variable: write \(m(x) = \operatorname{E}[Y_i \mid X_i = x]\), and \(\operatorname{E}[Y_i \mid X_i] = m(X_i)\) gives each person the mean of their own group. Rule 3 says that averaging these group means over everyone returns the overall mean.

Rule 4 (law of iterated expectations). $$ \begin{aligned} \operatorname{E}[Y_i] &= \operatorname{E}\big[\operatorname{E}[Y_i \mid X_i]\big], \\ \operatorname{E}[g(X_i)\,Y_i] &= \operatorname{E}\big[g(X_i)\,\operatorname{E}[Y_i \mid X_i]\big] . \end{aligned} $$ The second line is taking out what is known: given \(X_i\), \(g(X_i)\) is fixed, so it comes outside the inner expectation. Both lines also hold given a further variable: \(\operatorname{E}\big[\operatorname{E}[Y_i \mid X_i, V_i] \mid X_i\big] = \operatorname{E}[Y_i \mid X_i]\).

A number. Part 2, section 7, needs \(\operatorname{E}[Z_i W_i \tau_i]\). Suppose the mean gain is £6,000 in each of the four cells defined by offer and training, so \(\operatorname{E}[\tau_i \mid Z_i, W_i] = \text{£}6{,}000\) whatever the cell, and 30% of people are offered and train. Take \(X_i = (Z_i, W_i)\) and \(g(X_i) = Z_i W_i\): within each cell \(Z_i W_i\) is fixed, so

$$ \begin{aligned} \operatorname{E}[Z_i W_i \tau_i] &= \operatorname{E}\big[Z_i W_i \times \text{£}6{,}000\big] \\ &= \text{£}6{,}000 \times 0.30 = \text{£}1{,}800 . \end{aligned} $$

Without the rule we would need the joint distribution of all three variables. With it, we need only the mean gain in each cell and the cell shares.

Show the proof
  1. The first line. For discrete \(X_i\), $$ \begin{aligned} \operatorname{E}[m(X_i)] &= \sum_x P(X_i = x)\,m(x) \\ &= \sum_x P(X_i = x)\,\operatorname{E}[Y_i \mid X_i = x], \end{aligned} $$ which is \(\operatorname{E}[Y_i]\) by rule 3 with the groups defined by \(X_i\).
  2. Taking out what is known. Among people with \(X_i = x\), \(g(X_i) = g(x)\) is a constant, and a constant comes outside an expectation: \(\operatorname{E}[g(X_i) Y_i \mid X_i = x] = g(x)\,m(x)\). So \(\operatorname{E}[g(X_i) Y_i \mid X_i] = g(X_i)\,m(X_i)\).
  3. Combine. Apply step 1 to the variable \(g(X_i) Y_i\): $$ \begin{aligned} \operatorname{E}[g(X_i) Y_i] &= \operatorname{E}\big[\operatorname{E}[g(X_i) Y_i \mid X_i]\big] \\ &= \operatorname{E}[g(X_i)\,m(X_i)] . \end{aligned} $$
  4. Given a further variable. Repeat steps 1 to 3 within each group defined by \(X_i\), with \((X_i, V_i)\) playing the role of the finer grouping.

5. Independence, mean independence and zero covariance

The IV notes use three conditions of different strength. From strongest to weakest:

ConditionSaysWhere the notes use it
Independence, \(V_i \perp\!\!\!\perp Z_i\)The whole distribution of \(V_i\) is the same in every \(Z_i\) groupJoint independence for the LATE theorem (part 3 §7, part 4)
Mean independence, \(\operatorname{E}[V_i \mid Z_i] = \operatorname{E}[V_i]\)The mean of \(V_i\) is the same in every \(Z_i\) group\(\operatorname{E}[\tau_i \mid Z_i, W_i] = ATE\) in part 2 §7
Zero covariance, \(\operatorname{Cov}(Z_i, V_i) = 0\)No linear association\(\operatorname{Cov}(Z_i, Y_i(0)) = 0\) for constant-effect IV (part 1 §4)

Rule 5. Independence implies mean independence, which implies zero covariance; neither converse holds. If \(V_i \perp\!\!\!\perp Z_i\), then \(h(V_i) \perp\!\!\!\perp Z_i\) and \(\operatorname{E}[h(V_i) \mid Z_i] = \operatorname{E}[h(V_i)]\) for every function \(h\). If \(\operatorname{E}[V_i \mid Z_i] = \operatorname{E}[V_i]\), then \(\operatorname{Cov}(g(Z_i), V_i) = 0\) for every function \(g\).

Why the function matters. The LATE proof applies independence to \(V_i = (Y_i(0), Y_i(1), W_i(0), W_i(1))\) and then uses functions of it, such as \(\Delta_i \tau_i\) or \(Y_i(W_i(1))\). That step needs the four potential quantities to be independent of \(Z_i\) jointly. Each being independent of \(Z_i\) on its own is not enough: part 2, section 8 gives an example where it fails.

A number showing zero covariance is weaker. Let \(X_i\) be \(-1\), 0 or 1, each with probability one third, and \(Y_i = X_i^2\). Then \(\operatorname{E}[X_i] = 0\) and \(\operatorname{E}[X_i Y_i] = \operatorname{E}[X_i^3] = 0\), so \(\operatorname{Cov}(X_i, Y_i) = 0\). Yet \(Y_i\) is fixed by \(X_i\): its mean is 0 when \(X_i = 0\) and 1 otherwise. Zero covariance rules out only a straight-line relation.

Show the proof
  1. Independence gives mean independence. If the distribution of \(V_i\) is the same in every \(Z_i\) group, so is the distribution of \(h(V_i)\), and hence so is its mean: \(\operatorname{E}[h(V_i) \mid Z_i = z] = \operatorname{E}[h(V_i)]\) for every \(z\).
  2. Mean independence gives zero covariance. By rule 4, taking out \(g(Z_i)\): $$ \begin{aligned} \operatorname{E}[g(Z_i) V_i] &= \operatorname{E}\big[g(Z_i)\,\operatorname{E}[V_i \mid Z_i]\big] \\ &= \operatorname{E}[g(Z_i)]\,\operatorname{E}[V_i], \end{aligned} $$ because the inner mean is the constant \(\operatorname{E}[V_i]\). So \(\operatorname{Cov}(g(Z_i), V_i) = 0\) by the second form of the covariance in rule 6.
  3. The converses fail. The example above has zero covariance without mean independence. For mean independence without independence, let \(V_i\) have mean 0 in both groups but a larger spread when \(Z_i = 1\).

Stuck on a step in a derivation?

Problem sets and exams on treatment effects turn on these rules. Send me the step you cannot follow, or the question you are working on, and we will go through it in a free 30-minute consultation.

Send your question Econometrics tutor: how it works

6. Covariance rules

Rule 6. The covariance has two equivalent forms, $$ \begin{aligned} &\operatorname{Cov}(X_i, Y_i) \\ &\quad = \operatorname{E}\big[(X_i - \operatorname{E}[X_i])(Y_i - \operatorname{E}[Y_i])\big] \\ &\quad = \operatorname{E}[X_i Y_i] - \operatorname{E}[X_i]\operatorname{E}[Y_i] . \end{aligned} $$ For constants \(a\), \(b\) and \(c\): $$ \begin{aligned} &\operatorname{Cov}(X_i, c) = 0, \\ &\operatorname{Cov}(X_i, X_i) = \operatorname{Var}(X_i), \\ &\operatorname{Cov}(X_i, Y_i) = \operatorname{Cov}(Y_i, X_i), \\ &\operatorname{Cov}(X_i, aY_i + bV_i + c) \\ &\quad = a\operatorname{Cov}(X_i, Y_i) + b\operatorname{Cov}(X_i, V_i) . \end{aligned} $$

The last line, linearity, is what lets a common effect \(\tau\) come outside the covariance in part 1. A gain \(\tau_i\) that differs between people is not a constant, so \(\operatorname{Cov}(Z_i, W_i \tau_i)\) does not split as \(\tau_i \operatorname{Cov}(Z_i, W_i)\). That is the whole reason IV changes meaning when effects differ.

A number. Part 1, section 3: half the population trains, so \(\operatorname{Var}(W_i) = 0.25\) by rule 1; trainees would have earned £5,000 more without training, so \(\operatorname{Cov}(W_i, Y_i(0)) = 0.25 \times \text{£}5{,}000 = \text{£}1{,}250\) by rule 7; and \(\tau = \text{£}5{,}000\). Linearity gives

$$ \begin{aligned} &\operatorname{Cov}(W_i, Y_i(0) + \tau W_i) \\ &\quad = 1{,}250 + 5{,}000 \times 0.25 = 2{,}500, \end{aligned} $$

and dividing by \(\operatorname{Var}(W_i) = 0.25\) gives the OLS slope of £10,000, twice the effect.

Show the proof
  1. The two forms agree. Expand the product and use linearity of expectation, with \(\mu_X = \operatorname{E}[X_i]\) and \(\mu_Y = \operatorname{E}[Y_i]\): $$ \begin{aligned} &\operatorname{E}[X_i Y_i - \mu_X Y_i - \mu_Y X_i + \mu_X \mu_Y] \\ &\quad = \operatorname{E}[X_i Y_i] - \mu_X \mu_Y - \mu_Y \mu_X + \mu_X \mu_Y \\ &\quad = \operatorname{E}[X_i Y_i] - \mu_X \mu_Y . \end{aligned} $$
  2. Constants. \(\operatorname{Cov}(X_i, c) = c\operatorname{E}[X_i] - c\operatorname{E}[X_i]\), which is 0. Setting \(Y_i = X_i\) in the definition gives the variance. Symmetry is immediate from the definition.
  3. Linearity. By linearity of expectation, $$ \small \begin{aligned} &\operatorname{E}[X_i(aY_i + bV_i + c)] \\ &\quad - \operatorname{E}[X_i]\operatorname{E}[aY_i + bV_i + c] \\ &= a\big(\operatorname{E}[X_i Y_i] - \operatorname{E}[X_i]\operatorname{E}[Y_i]\big) \\ &\quad + b\big(\operatorname{E}[X_i V_i] - \operatorname{E}[X_i]\operatorname{E}[V_i]\big) \\ &\quad + c\big(\operatorname{E}[X_i] - \operatorname{E}[X_i]\big) . \end{aligned} $$ The last bracket is zero.

7. The covariance with a binary variable

Rule 7. If \(Z_i\) is 0 or 1 with \(p = P(Z_i = 1)\), \(0 < p < 1\), then for any \(Y_i\) $$ \begin{aligned} &\operatorname{Cov}(Z_i, Y_i) \\ &\quad = p(1 - p)\big\{\operatorname{E}[Y_i \mid Z_i = 1] \\ &\qquad - \operatorname{E}[Y_i \mid Z_i = 0]\big\} . \end{aligned} $$ With \(\operatorname{Var}(Z_i) = p(1 - p)\) from rule 1, the regression slope of \(Y_i\) on \(Z_i\) is the difference in group means, and the IV ratio with a binary instrument is the Wald ratio.

A number. Half the people are offered training, so \(p(1 - p) = 0.25\). 60% of the offered train against 20% of the others, and the offered earn £52,000 on average against £50,000. Then \(\operatorname{Cov}(Z_i, W_i) = 0.25 \times 0.40 = 0.10\) and \(\operatorname{Cov}(Z_i, Y_i) = 0.25 \times \text{£}2{,}000 = \text{£}500\). The IV ratio is £500 / 0.10 = £5,000, the same as £2,000 / 0.40: the factor 0.25 cancels.

Show the proof

Write \(m_1 = \operatorname{E}[Y_i \mid Z_i = 1]\) and \(m_0 = \operatorname{E}[Y_i \mid Z_i = 0]\).

  1. The product term. \(Z_i\) is an indicator, so by rule 2, \(\operatorname{E}[Z_i Y_i] = p\,m_1\).
  2. The two means. \(\operatorname{E}[Z_i] = p\) by rule 1, and \(\operatorname{E}[Y_i] = p\,m_1 + (1 - p)\,m_0\) by rule 3.
  3. Substitute into rule 6. $$ \begin{aligned} &\operatorname{Cov}(Z_i, Y_i) \\ &\quad = p\,m_1 - p\,[\,p\,m_1 + (1 - p)\,m_0\,] \\ &\quad = p(1 - p)\,m_1 - p(1 - p)\,m_0 \\ &\quad = p(1 - p)(m_1 - m_0) . \end{aligned} $$

Only \(Z_i\) has to be binary. With \(Y_i = W_i\), the bracket is the first stage; with earnings, it is the outcome ITT.

8. Splitting a gain into its mean and a deviation

Rule 8. For any constant \(\mu\), $$ \begin{aligned} &\operatorname{Cov}(Z_i, W_i \tau_i) \\ &\quad = \mu\,\operatorname{Cov}(Z_i, W_i) \\ &\qquad + \operatorname{Cov}\big(Z_i, W_i(\tau_i - \mu)\big) . \end{aligned} $$ With \(\mu = \operatorname{E}[\tau_i]\), the expectation version is $$ \begin{aligned} \operatorname{E}[\Delta_i(\tau_i - \mu)] &= \operatorname{E}[\Delta_i \tau_i] - \operatorname{E}[\Delta_i]\operatorname{E}[\tau_i] \\ &= \operatorname{Cov}(\Delta_i, \tau_i) . \end{aligned} $$

Taking \(\mu = ATE\), dividing by \(\operatorname{Cov}(Z_i, W_i)\) gives the ATE plus a term that depends only on how deviations of gains from the average line up with the instrument. If everyone gained the same, every deviation would be zero and IV would equal the common gain.

A number. 40% of people are compliers, \(\Delta_i = 1\), and gain £10,000; the rest have \(\Delta_i = 0\) and gain £2,000. Then

$$ \begin{aligned} \operatorname{E}[\tau_i] &= 0.4 \times 10{,}000 + 0.6 \times 2{,}000 \\ &= \text{£}5{,}200, \\ \operatorname{E}[\Delta_i \tau_i] &= 0.4 \times 10{,}000 = \text{£}4{,}000, \\ \operatorname{Cov}(\Delta_i, \tau_i) &= 4{,}000 - 0.4 \times 5{,}200 \\ &= 1{,}920, \end{aligned} $$

the second line by rule 2. So

$$ \begin{aligned} &ATE + \frac{\operatorname{Cov}(\Delta_i, \tau_i)}{\operatorname{E}[\Delta_i]} \\ &\quad = 5{,}200 + \frac{1{,}920}{0.4} = \text{£}10{,}000 . \end{aligned} $$

That is the compliers' gain, the LATE, as part 4, section 6, proves in general.

Show the proof
  1. Add and subtract. \(W_i \tau_i = \mu W_i + W_i(\tau_i - \mu)\) for every person.
  2. Linearity. \(\mu\) is a constant, so rule 6 splits the covariance of the sum into the two terms of the rule, with \(\mu\) outside the first.
  3. The expectation version. By linearity of expectation, \(\operatorname{E}[\Delta_i(\tau_i - \mu)] = \operatorname{E}[\Delta_i \tau_i] - \mu\,\operatorname{E}[\Delta_i]\). With \(\mu = \operatorname{E}[\tau_i]\) this is the second form of the covariance in rule 6.

9. Within-group covariance and the law of total covariance

When assignment is random only within groups \(U_i\), such as regions with their own lotteries, the notes compare people within each group. Write \(\kappa(u) = \operatorname{E}[Z_i \mid U_i = u]\) for the share offered in group \(u\).

Rule 9. Within a group, $$ \begin{aligned} &\operatorname{Cov}(Z_i, Y_i \mid U_i = u) \\ &\quad = \operatorname{E}\big[(Z_i - \kappa(u))\,Y_i \mid U_i = u\big], \end{aligned} $$ so, averaging over groups, $$ \begin{aligned} &\operatorname{E}\big[(Z_i - \kappa(U_i))\,Y_i\big] \\ &\quad = \operatorname{E}\big[\operatorname{Cov}(Z_i, Y_i \mid U_i)\big] . \end{aligned} $$ Over the whole population (the law of total covariance), $$ \small \begin{aligned} &\operatorname{Cov}(Z_i, Y_i) \\ &\quad = \underbrace{\operatorname{E}\big[\operatorname{Cov}(Z_i, Y_i \mid U_i)\big]}_{\text{within groups}} \\ &\qquad + \underbrace{\operatorname{Cov}\big(\operatorname{E}[Z_i \mid U_i],\, \operatorname{E}[Y_i \mid U_i]\big)}_{\text{between groups}} . \end{aligned} $$

The first line is why two-stage least squares with a dummy for every group uses only within-group comparisons. The second shows what an unadjusted IV ratio adds: if the groups offered more often also earn more, the between-group term is positive even when the offer does nothing.

A number. The two regions of part 5, section 5, each half the population. Region A offers training to 50% and region B to 90%; mean earnings are £53,000 in A and £60,920 in B, and mean training rates 0.30 and 0.46. Using rule 7 within each region and the between-group covariance of the regional means:

Within regionsBetween regionsTotal
\(\operatorname{Cov}(Z_i, Y_i)\)5367921,328
\(\operatorname{Cov}(Z_i, W_i)\)0.0680.0160.084
Ratio£7,882£49,500£15,810

The within-region ratio, £7,882, is the weighted average of the regional LATEs that part 5 derives. The unadjusted ratio, £15,810, adds the between-region terms: region B is offered more often and earns £7,920 more for reasons unrelated to training. Adding a region dummy removes those terms.

Show the proof and the arithmetic
  1. Within a group. Rule 6 applied to the distribution in group \(u\), writing \(\mid u\) for \(\mid U_i = u\): $$ \begin{aligned} &\operatorname{Cov}(Z_i, Y_i \mid u) \\ &\quad = \operatorname{E}[Z_i Y_i \mid u] - \kappa(u)\,\operatorname{E}[Y_i \mid u] \\ &\quad = \operatorname{E}[(Z_i - \kappa(u))\,Y_i \mid u] . \end{aligned} $$
  2. Average over groups. Apply rule 4 to \((Z_i - \kappa(U_i))\,Y_i\): the mean of the group means in step 1 is the overall mean, which gives the second line of the rule.
  3. Total covariance. Write \(m(U_i) = \operatorname{E}[Y_i \mid U_i]\). From step 1, $$ \begin{aligned} \operatorname{E}[Z_i Y_i \mid U_i] &= \operatorname{Cov}(Z_i, Y_i \mid U_i) \\ &\quad + \kappa(U_i)\,m(U_i) . \end{aligned} $$ Taking expectations with rule 4, and using \(\operatorname{E}[Z_i] = \operatorname{E}[\kappa(U_i)]\) and \(\operatorname{E}[Y_i] = \operatorname{E}[m(U_i)]\), $$ \small \begin{aligned} &\operatorname{Cov}(Z_i, Y_i) \\ &\quad = \operatorname{E}[Z_i Y_i] - \operatorname{E}[Z_i]\operatorname{E}[Y_i] \\ &\quad = \operatorname{E}\big[\operatorname{Cov}(Z_i, Y_i \mid U_i)\big] \\ &\qquad + \operatorname{E}[\kappa(U_i)\,m(U_i)] \\ &\qquad - \operatorname{E}[\kappa(U_i)]\,\operatorname{E}[m(U_i)] , \end{aligned} $$ and the last two terms are \(\operatorname{Cov}(\kappa(U_i), m(U_i))\).
  4. The numbers, within. In region A, \(0.5 \times 0.5 = 0.25\) times the earnings ITT of £4,000 is 1,000; in B, \(0.9 \times 0.1 = 0.09\) times £800 is 72. The average, with equal shares, is 536. For training, \(0.25 \times 0.40 = 0.100\) and \(0.09 \times 0.40 = 0.036\), averaging 0.068.
  5. The numbers, between. The offer shares are 0.5 and 0.9, mean 0.7; mean earnings 53,000 and 60,920, overall 56,960; mean training 0.30 and 0.46, overall 0.38. The covariances of the regional means are $$ \begin{aligned} &0.5(-0.2)(-3{,}960) \\ &\quad + 0.5(0.2)(3{,}960) = 792, \\ &0.5(-0.2)(-0.08) \\ &\quad + 0.5(0.2)(0.08) = 0.016 . \end{aligned} $$

10. Check your understanding

Try each question before opening the answer.

With no defiers, 25% of people are always-takers. What are \(\operatorname{E}[W_i \mid Z_i = 0]\) and \(\operatorname{Var}(W_i \mid Z_i = 0)\) under random assignment?

Without the offer only always-takers train, so \(P(W_i = 1 \mid Z_i = 0) = 0.25\). By rule 1 the mean is 0.25 and the variance \(0.25 \times 0.75 = 0.1875\).

When \(Z_i\) and \(W_i\) are both binary, show that their covariance is \(P(Z_i = 1, W_i = 1)\) minus \(P(Z_i = 1)\,P(W_i = 1)\).

By rule 6, \(\operatorname{Cov}(Z_i, W_i) = \operatorname{E}[Z_i W_i] - \operatorname{E}[Z_i]\operatorname{E}[W_i]\). \(Z_i W_i\) is the indicator of being offered and training, so by rules 1 and 2 its mean is \(P(Z_i = 1, W_i = 1)\); the two means are \(P(Z_i = 1)\) and \(P(W_i = 1)\).

In rule 9's example, why is the unadjusted ratio above both regional LATEs?

The between-region terms add 792 to the numerator and only 0.016 to the denominator, a ratio of £49,500. Region B is offered more often and earns more without training, so offered people earn more partly because more of them live in B. That gap has nothing to do with training but is divided by a small difference in training rates.

11. Three questions about these rules

It says the overall mean of a variable equals the average of its group means, each weighted by the group's share: E[Y] = E[E[Y | X]]. A companion rule, taking out what is known, says anything fixed within a group comes outside the inner mean, so E[g(X) Y] = E[g(X) E[Y | X]]. In IV proofs it turns an expectation involving an unobserved gain into one involving only the gain's mean in each group.

A variable that is 1 or 0 has mean 0 times the probability of 0 plus 1 times the probability of 1, which is the probability of 1. Its variance is p(1 - p). So the mean of a training indicator is the training rate, and a first stage, a difference in mean training, is a difference in percentage points.

Independence means the whole distribution of one variable is the same at every value of the other. Mean independence requires only the mean to be the same. Zero covariance rules out only a straight-line relation. Each implies the next and neither converse holds. Constant-effect IV needs only zero covariance between the instrument and untreated outcomes; the LATE theorem needs joint independence of the instrument from all potential outcomes and decisions.

12. Where next

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.

Free 30-min consultationNo obligation · reply within one business day
Book now