Everything so far assumed that the regressors are unrelated to the error. When they are not, OLS is biased and inconsistent, and no amount of data repairs it. This lesson shows the three ways it happens, introduces the instrument, a variable that moves the regressor without touching the error, and builds the estimator in two steps: the Wald ratio, and two-stage least squares. A lab with a known truth shows what an instrument repairs, and what a weak one does not.
The Ashanagar survey is invented. The statistics modules used one district of 60 households. Econometrics needs more households and more variables, so this is a new, larger survey of 600 households in the same imaginary district: income, spending, household size, whether the household is in the town or a village, the head’s schooling and earnings.
Because we wrote the data-generating process, we know the true answers, and every lab can show whether a regression recovers them. Household spending, in thousands of rupees a month, was generated as 1 + 0.45 × income + 0.9 × household size + 1.5 × town + an error with standard deviation 2.5. A real survey never tells you its true coefficients. This one does, so you can see how close an estimate comes.
It also holds a variable, the head’s ability, that a real survey could not observe. It is kept so that the lessons on omitted variables can show what happens when it is left out. Every figure here is illustrative, not official statistics.
A regressor is endogenous when it is correlated with the error term: Cov(x, u) ≠ 0. Then the zero conditional mean assumption of lesson 2 fails, and OLS converges, not to the true slope, but to
There are three common sources, all met earlier:
Adding more observations cannot help, because the bias is in what OLS converges to. And because OLS makes the residuals orthogonal to x by construction, the residuals cannot show you the problem. Only an outside source of variation can: an instrument.
Suppose x is a mixture: some of its variation is tangled up with the error (ability, a shock to both), and some is not. An instrument z is a variable that moves x but is itself unrelated to the error. If you let only z-driven movement in x speak, you have isolated the clean part. Two conditions make z valid:
Examples of the kind of variable economists use: the distance from a person’s home to the nearest college, as an instrument for years of schooling (it shifts schooling, and should not otherwise affect earnings); rainfall, as an instrument for income in a poor agricultural economy; a randomly assigned offer of a programme, as an instrument for taking it up. In each case the argument for exogeneity is a story about the world, and critics attack it.
Substitute y = a + βx + u into the OLS formula Cov(x, y) ÷ Var(x):
The second term is zero when x and u are uncorrelated, and is the bias when they are not. In the survey regression of earnings on schooling alone, the error contains ability and town. Taking 3 + 1.3 × schooling as the true line, the error u* = earnings − 3 − 1.3 × schooling has Cov(schooling, u*) ÷ Var(schooling) = 0.507, and the OLS slope is 1.3 + 0.507 = 1.807, which is what the regression gives (1.807).
The same substitution into the IV formula:
If z is uncorrelated with u (exogenous), the second term vanishes in large samples and the estimate converges to β. If z is only weakly correlated with x, Cov(z, x) in the denominator is small, and even a small correlation of z with u becomes a large error: that is the weak-instrument problem.
For a binary z, Cov(z, y) is proportional to the difference in the mean of y between the two groups, and likewise for x, so the factor cancels:
This is the Wald estimator: the effect of z on y (the reduced form) divided by the effect of z on x (the first stage).
With z = 0, 0, 0, 0, 1, 1, 1, 1, x = 2, 3, 3, 4, 4, 5, 6, 5 and y = 5, 6, 8, 7, 9, 12, 13, 11: the mean of y is 6.5 for z = 0 and 11.25 for z = 1, and the mean of x is 3 and 5. The Wald estimate is (11.25 − 6.5) ÷ (5 − 3) = 2.375. The covariance ratio gives 2.375, and two-stage least squares gives 2.375. The three routes are one estimator.
In the lab, y = 1 × x + u, and x is built from the instrument z (strength π) plus a first-stage error v that is correlated (ρ) with u. Each press draws 1,500 samples. Start with ρ = 0.6 and a strong instrument: the blue OLS estimates are centred well above 1 and the gold IV estimates are centred on 1, but wider. Then lower π towards zero and watch the IV distribution spread out and slide towards the OLS bias.
True model: y = 1 × x + u. x = π z + v, where z is the instrument and u and v have correlation ρ, so x is endogenous. The slope we want is 1. The histograms show the estimate from 1500 samples.
Horizontal: the estimated slope in each sample. Vertical: how many samples gave that value.
OLS is centred on 1.48, not 1: the endogeneity bias, which more data cannot remove (its 95% interval holds the truth only 0% of the time). The instrument is strong (average first-stage F 26), so the IV estimates centre on the truth (median 1) and its intervals are honest (95%). The price is precision: the IV cloud is wider than the OLS one.
With a single instrument the IV estimator is the ratio of two covariances (the reduced-form effect of z on y over the first-stage effect of z on x). When z is a 0/1 indicator this becomes the Wald estimator:
The general method is two-stage least squares (2SLS), which handles several instruments, several endogenous regressors and extra exogenous controls:
With one instrument and one regressor, 2SLS equals the IV ratio exactly. Two cautions. Doing the second stage by hand gives the right coefficients but the wrong standard errors, because the residuals must be computed with the original x, not x̂; software does this correctly. And the equation must be identified: at least as many instruments as endogenous regressors (the order condition of lesson 12). With more instruments than endogenous regressors the model is over-identified and 2SLS uses them all optimally, and the surplus lets you test the instruments (below).
Remember what an instrument cannot do: it cannot create information. Without a credible instrument the honest statement is the one from lesson 1: the coefficient is a partial association, and a causal reading needs an argument about why the error is unrelated to x.
If a regressor is correlated with the error, OLS is biased and inconsistent. An instrument must be relevant (correlated with the regressor) and exogenous (uncorrelated with the error). IV estimates the effect through the instrument; with a binary instrument it is the Wald ratio of the differences in y and in x. Two-stage least squares is the general version. A weak instrument makes IV unreliable.
Restricted against unrestricted regressions, reading output, and statement questions, up to GATE and IIT JAM level.
These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.
This lesson’s set is short because few papers ask about instruments; the exercises above cover the calculations. The simultaneous-equations version of the problem, and its identification conditions, is in lesson 12.