Every regression is a bet that the model is right. This lesson is about what happens when it is not: a variable that matters is left out, one that does not matter is put in, a regressor is recorded with error, or a straight line is fitted to a curve. Each mistake damages the estimates in its own way, and the exam tests whether you know which way. The lab at the centre lets you break each assumption on purpose, with a truth you know, and see what it does.
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.
Suppose the true model is y = β₀ + β₁x₁ + β₂x₂ + u, but we do not have x₂, or forget it, and regress y on x₁ alone. Two things must hold for the damage to be real: x₂ affects y (β₂ ≠ 0), and x₂ is related to x₁. Then x₁ picks up the effect of x₂ that it travels with.
| δ > 0 (x₁ and x₂ move together) | δ < 0 (x₁ and x₂ move oppositely) | |
|---|---|---|
| β₂ > 0 (x₂ raises y) | Upward bias | Downward bias |
| β₂ < 0 (x₂ lowers y) | Downward bias | Upward bias |
In the survey, schooling raises a head’s earnings (we wrote 1.3 per year) and so does ability (3 per unit), and abler heads study longer. Leave ability out and the schooling coefficient is 1.699; put it in and it is 1.298. The excess, 0.401, is the bias formula at work: 2.685 (the effect of ability) times 0.149 (how much ability rises with each year of schooling). The derivation shows that this is an exact identity in any sample, not an approximation.
Leaving x₂ out, least squares gives the simple-regression slope:
y − ȳ = β₁(x₁ − x̄₁) + β₂(x₂ − x̄₂) + (u − ū). Put it in the numerator and split it into three terms:
The fraction in the middle is the slope of the regression of x₂ on x₁, which we call δ. The last term has expected value zero when u is unrelated to x₁ (the first assumption of lesson 2). Taking expectations:
So the bias is β₂δ: the effect of the missing variable on y, times the relation between the missing variable and the included one.
No expectation is needed for the sample version: the short slope always equals the long slope plus the long coefficient on x₂ times δ̂. In the survey, regress the head’s earnings on schooling and town (short), and then also on ability (long); then regress ability on schooling and town (δ̂ is its schooling coefficient):
short slope 1.6988 = long slope 1.2979 + 2.6853 × 0.1493 = 1.6988.
Ability helps earnings (β₂ is positive) and is higher among the better schooled (δ is positive), so the bias is positive: the short regression gives schooling credit for ability’s work. The true schooling coefficient is 1.3.
Four consequences worth knowing:
We know the truth here, because we write it: the coefficient on x₁ is 1. Each press of the button draws 1,500 new samples, fits least squares to each, and shows where the estimates land. Start with “Leave out a variable”: raise the effect of x₂ and its correlation with x₁ and watch the cloud of estimates slide away from 1 while the reported standard error stays calm. Then include x₂ and watch it come back. The other three tabs are the next three sections.
x2 affects y and is correlated with x1. Include it, or leave it out, and compare. True model: y = 1 × x1 + β₂ × x2 + noise (sd 2). The coefficient we want is the 1.
Horizontal: the estimated coefficient on x1 in each of the 1,500 samples. Vertical: how many samples gave that value.
With x2 left out the estimates centre on 1.594, not on 1. The formula β₁ + β₂ × ρ = 1 + 1 × 0.6 = 1.6 predicts it. The bias is the effect of the missing variable times its relation to x1. The reported standard error (0.217) matches the spread of the estimates (0.226), so it gives no warning: the interval is simply centred on the wrong number, and it contains the truth only 24% of the time.
Include a variable that has no effect on y (its true coefficient is zero) and nothing is biased. The estimates are still centred on the truth, because the model that includes it is still correct (its coefficient is just zero). The price is precision. If the irrelevant variable is correlated with x₁, it uses up some of the variation in x₁ that the regression could have used, and the variance of b₁ is multiplied by the variance inflation factor, 1 ÷ (1 − ρ²) in the two-variable case:
Try it in the lab’s second tab. In the survey, household income is strongly related to schooling (correlation 0.77) and does not enter the earnings equation we wrote. Adding it to the earnings regression moves the schooling coefficient only from 1.298 to 1.253, and its own coefficient has t = 1.63, no evidence of an effect. But the standard error of the schooling coefficient rises from 0.035 to 0.0443.
So the trade is not symmetric. Leaving out a relevant variable gives bias that does not go away; including an irrelevant one gives variance that does go away with more data. That is why textbooks lean towards including a variable when in doubt, provided the sample is large. The price of too many regressors is felt in small samples, where it also costs degrees of freedom.
Where does a regressor come from? In practice from survey answers, rounded accounts, proxies. Suppose the recorded x is the true x* plus noise v, and v has nothing to do with x* or with u. Then the noise is in the regressor, and the result is attenuation: the slope shrinks towards zero by the reliability ratio λ = Var(x*) ÷ (Var(x*) + Var(v)), the share of the recorded variable’s variance that is true signal.
Since x* = x − v:
The error term of the regression we can run is w = u − βv.
The observed x contains v, and so does w. Using that v is unrelated to x* and u:
The first assumption of lesson 2 fails, so least squares is no longer unbiased or consistent.
With a large sample, the slope of y on x settles at β + Cov(x, w) ÷ Var(x), and Var(x) = σ²x* + σ²v:
If the true x has variance 1 and the error has standard deviation 0.5, λ = 1 ÷ (1 + 0.25) = 0.8, so a true slope of 1 is estimated as 0.8. With an error of standard deviation 1, λ = 1 ÷ 2 = 0.5, and half the effect disappears. Many simulated samples in the lab settle near those values, and the reported standard errors give no warning.
Two limits to remember. Error in y alone only adds noise to u: the slope is still unbiased, just less precise. And with several regressors the damage spreads: the other coefficients are also biased, in directions that depend on how the mismeasured variable relates to them.
Here it is on the survey. Add random noise with standard deviation 2 to every head’s years of schooling (schooling’s own variance is 13.3, so λ = 13.3 ÷ (13.3 + 4) = 0.768). Regress earnings on schooling alone: the slope is 1.807 with the true schooling and 1.368 with the noisy version, a ratio of 0.757, close to λ. (Both are simple-regression slopes, so both carry the omitted-variable bias of chapter 1, and the ratio roughly isolates the attenuation.) With town and ability also in the regression, the damage is worse: the noisy slope is 0.876 against a truth of 1.3, because once the other variables are taken out, less of the variation in recorded schooling is true signal.
Where the error is matters:
The remedy is better data, or an instrument for the mismeasured variable (lesson 11).
Suppose the true relation bends and we fit a straight line. This is an omitted-variable problem too: the missing term x² is related to x, so the line absorbs what it can. The line’s slope settles on a kind of average of the true effects over the data, and is wrong as a description of the effect at most particular values of x. The residuals are positive at both ends and negative in the middle (for a convex curve), so they are systematically patterned: if the data are ordered by x, the residuals look serially correlated (lesson 10). The fourth tab of the lab shows it: the average slope is right for the middle of the data and wrong at both ends, and predictions at the ends are off.
Ramsey’s RESET tests for this kind of error without having to guess its form. Fit the model, take the fitted values ŷ, then add ŷ² and ŷ³ to the regression and test their coefficients both equal to zero with an F test with 2 restrictions:
On the World Bank data, the straight-line regression of life expectancy on GDP per head fails: F(2, 182) = 48.2, far above the 5% critical value of 3.05. Replace GDP by its log and the failure disappears: F = 0.3, p = 0.74. In the survey, spending is truly linear in income and RESET finds nothing: F = 0.38, p = 0.68.
Three things to say in an exam. Rejecting H₀ means misspecification: an omitted variable or a wrong functional form, not which. It is a general test and so has less power than a test aimed at a particular alternative. And a failure to reject does not prove the model is right: the lab’s fourth tab shows that with small samples and mild curvature RESET often misses it.
| Mistake | Bias in the estimates | Variance and standard errors |
|---|---|---|
| Omit a relevant variable correlated with x₁ | Biased, and inconsistent | Computed as if nothing were wrong, so intervals are centred on the wrong number |
| Omit a relevant variable uncorrelated with x₁ | None for β₁ (the intercept may be biased) | The error variance is larger, so precision is lower |
| Include an irrelevant variable | None | Larger if it is correlated with the other regressors |
| Classical measurement error in x | Towards zero (attenuation), inconsistent | Look normal, so the estimate is confidently too small |
| Classical measurement error in y | None | Larger |
| Wrong functional form | Slopes biased as estimates of the effect at particular x, and predictions are off | RESET and residual plots often reveal it |
A relevant omitted variable costs bias that more data cannot fix, and the standard errors will not warn you. An irrelevant included variable costs only variance. Measurement error in a regressor pulls its coefficient towards zero. A misspecified form is detected by RESET, which rejects without saying what is missing.
Definitions and one-step calculations: a t statistic, an R², which assumption is which. Most CUET and JNU questions sit here.
Restricted against unrestricted regressions, reading output, and statement questions, up to GATE and IIT JAM level.
This topic’s hardest questions, from the DSE entrance, are worked through in Lesson 18: Omitted, irrelevant and mismeasured variables.
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.
The Delhi School’s harder questions on this material (the sign of a bias for complements, a linear cost function fitted to a quadratic, the variance of a short and a long regression) are in the hard-problems lesson at the end of the module. What to do about the bias from an endogenous regressor is in lesson 11, on instrumental variables.