Search

Search papers and lessons

Omitted Variable Bias

Level 3 · 10 min read

Omitted variable bias is the error that appears when a regression leaves out a variable that affects the outcome and is correlated with a variable that stays in the model.

On this page

  • Colour = topic mix
  • Probability
  • Linear algebra
  • Methods
  • Classical models
  • Losses & regularization
  • Discrete math
  • Sign in to see your progress

TL;DR

When a regression leaves out a variable that affects the outcome and is correlated with a variable that stays in, the included variable's coefficient absorbs part of the omitted variable's effect. The error equals the omitted variable's effect on the outcome multiplied by how strongly it moves with the included variable. Collecting more data does not remove it. Measuring the omitted variable, or using a design that breaks the link, does.

Where you'll see it: in regression studies of voting, turnout, policy effects and development, wherever some relevant factor is never measured, and in any observational comparison that claims one variable moves another.

Intuition

A schooling story

Suppose you want to know whether more years of schooling make people vote more. You survey people, record years of education and whether they voted, and find a clear positive slope. But education is tangled with income. Families with more money tend to stay in school longer, and income on its own predicts turnout. If the survey has no income question, the education slope is doing two jobs at once. It captures the direct effect of schooling and also the effect of income that travels with schooling. The regression cannot separate them, so it assigns the whole package to education.

That is omitted variable bias, the regression version of Confounding Bias. The omitted variable is income. It is "omitted" because the model does not include it, and "biased" because the estimate for the included variable is systematically off, not just noisy.

flowchart LR
  Z["income (omitted)"] --> X["years of schooling (included)"]
  Z --> Y["turnout (outcome)"]
  X -.-> Y

The dashed arrow is the effect we want. The path from schooling to turnout through income is a backdoor path. A regression of turnout on schooling alone cannot close it, so the slope mixes the dashed effect with the backdoor one.

Why it is a different problem from noise

Political science often works with observational data: elections, legislatures, survey panels. The researcher controls only what is in the dataset. Every regression carries a bet that nothing important is left out and correlated with the included variables. Sampling error shrinks as the sample grows. Omitted variable bias does not. Ten million survey responses give a very precise estimate of the wrong number. Naming the bias lets you ask which direction the error runs and how large it might be before you collect more data.

The math

Suppose the true relationship for unit ii is

yi=β0+β1xi+β2zi+εi,y_i = \beta_0 + \beta_1 x_i + \beta_2 z_i + \varepsilon_i,

where yiy_i is the outcome (turnout), xix_i is the variable we measure (schooling), ziz_i is the omitted variable (income), and εi\varepsilon_i is noise unrelated to xix_i and ziz_i. The coefficient β1\beta_1 is the effect of xx holding zz fixed. That is the quantity we want. The coefficient β2\beta_2 is the effect of zz holding xx fixed.

We do not observe zz, so we fit the short regression

yi=α0+α1xi+ui.y_i = \alpha_0 + \alpha_1 x_i + u_i.

Ordinary least squares, the method in Linear Regression, gives the slope α^1=∑i(xi−xˉ)(yi−yˉ)/∑i(xi−xˉ)2\hat{\alpha}_1 = \sum_i (x_i - \bar{x})(y_i - \bar{y}) / \sum_i (x_i - \bar{x})^2. The question is what this slope settles on as the sample grows.

Step 1: regress the omitted variable on the included one

Fit zz on xx in the same sample:

zi=δ0+δ1xi+vi.z_i = \delta_0 + \delta_1 x_i + v_i.

Here δ1=Cov(x,z)/Var(x)\delta_1 = \mathrm{Cov}(x, z) / \mathrm{Var}(x) measures how much zz moves with xx. The residual viv_i is the part of zz that xx does not explain, and by construction it is uncorrelated with xix_i.

Step 2: substitute into the true model

Replace ziz_i in the true equation:

yi=(β0+β2δ0)+(β1+β2δ1) xi+(β2vi+εi).y_i = (\beta_0 + \beta_2 \delta_0) + (\beta_1 + \beta_2 \delta_1)\, x_i + (\beta_2 v_i + \varepsilon_i).

The error in this rewritten equation is β2vi+εi\beta_2 v_i + \varepsilon_i. Both pieces are uncorrelated with xix_i, so OLS on the short regression recovers the coefficient on xx in this rewritten equation, not β1\beta_1. In large samples,

α^1⟶β1+β2δ1⏟omitted variable bias.\hat{\alpha}_1 \longrightarrow \beta_1 + \underbrace{\beta_2 \delta_1}_{\text{omitted variable bias}}.

Step 3: read the bias

The bias is β2δ1\beta_2 \delta_1. It is zero when either factor is zero:

  • β2=0\beta_2 = 0: the omitted variable does not affect the outcome, so leaving it out costs nothing.
  • δ1=0\delta_1 = 0: the omitted variable is unrelated to the included one, so the included slope is not contaminated.

The sign of the bias is the sign of β2δ1\beta_2 \delta_1. If the omitted variable raises the outcome and rises with the included variable, the naive slope is too large. If the signs are opposite, the naive slope is too small and can flip sign. The mathematics does not tell you what zz is or what sign β2\beta_2 has. That comes from theory and domain knowledge, which is why the sign rule is useful: it turns a vague worry into a direction you can argue about.

With several included regressors, the same logic holds, with δ1\delta_1 becoming the coefficient from regressing zz on all the included variables.

Worked examples

Example
A tiny exact example

Take a noiseless true model y=1+2x+3zy = 1 + 2x + 3z with z=0.5xz = 0.5x. Then β1=2\beta_1 = 2, β2=3\beta_2 = 3, δ1=0.5\delta_1 = 0.5, and the predicted bias is 3×0.5=1.53 \times 0.5 = 1.5. The short slope should be 3.53.5.

Four units with x=0,1,2,3x = 0, 1, 2, 3 give z=0,0.5,1,1.5z = 0, 0.5, 1, 1.5 and y=1,4.5,8,11.5y = 1, 4.5, 8, 11.5.

  1. Means: xˉ=1.5\bar{x} = 1.5 and yˉ=25/4=6.25\bar{y} = 25/4 = 6.25.
  2. Deviations of xx: −1.5,−0.5,0.5,1.5-1.5, -0.5, 0.5, 1.5. Deviations of yy: −5.25,−1.75,1.75,5.25-5.25, -1.75, 1.75, 5.25.
  3. Sum of products: (−1.5)(−5.25)+(−0.5)(−1.75)+(0.5)(1.75)+(1.5)(5.25)=7.875+0.875+0.875+7.875=17.5(-1.5)(-5.25) + (-0.5)(-1.75) + (0.5)(1.75) + (1.5)(5.25) = 7.875 + 0.875 + 0.875 + 7.875 = 17.5.
  4. Sum of squared xx deviations: 2.25+0.25+0.25+2.25=52.25 + 0.25 + 0.25 + 2.25 = 5.
  5. Short slope: 17.5/5=3.517.5 / 5 = 3.5. Bias =3.5−2=1.5= 3.5 - 2 = 1.5, matching β2δ1\beta_2 \delta_1.
  6. Intercept: 6.25−3.5×1.5=1.06.25 - 3.5 \times 1.5 = 1.0, matching β0+β2δ0=1+0\beta_0 + \beta_2 \delta_0 = 1 + 0.

Interpretation: a unit increase in xx looks like a 3.5 increase in yy, but only 2 of that is the direct effect. The other 1.5 is the zz that travels with xx. There is no noise here, so this is not a sampling problem. More data would return 3.5 again.

Example
Schooling and turnout (illustrative numbers)

These numbers are invented for illustration, not taken from a dataset. Let yy be turnout in percentage points, xx years of schooling, and zz household income in units of 10,000 dollars. Assume the direct effect is β1=1.0\beta_1 = 1.0 point per year of schooling, that income raises turnout by β2=2.0\beta_2 = 2.0 points per 10,000 dollars, and that each extra year of schooling goes with δ1=1.5\delta_1 = 1.5 units of income.

  1. Bias =β2δ1=2.0×1.5=3.0= \beta_2 \delta_1 = 2.0 \times 1.5 = 3.0 points per year.
  2. Naive slope =β1+3.0=4.0= \beta_1 + 3.0 = 4.0 points per year.
  3. Sign check: income raises turnout and rises with schooling, so the naive slope should be too large. It is, by +3.0+3.0.
  4. If the survey also asks income, a regression of turnout on schooling and income together recovers approximately β1=1.0\beta_1 = 1.0 and β2=2.0\beta_2 = 2.0, provided the model contains no other omitted factors.

Interpretation: three-quarters of the naive effect comes from income that travels with schooling. The remaining one point is the direct estimate. Whether even that point is real depends on other unmeasured factors, such as parents' interest in politics, which may also rise with schooling.

Tradeoffs and failure modes

Adding controls is not automatically safer. The right choice depends on the causal structure, not on which variables are available.

SituationWhat goes wrongBetter choice
A relevant variable is measured and correlated with the included oneLeaving it out biases the slopeInclude it as a control
A relevant variable is not measuredThe bias cannot be estimated directlyUse a design that breaks the link, such as randomisation or Instrumental Variables, or run a sensitivity analysis
The control is a consequence of the treatment (a mediator)Controlling for it removes part of the effect you wantDo not control for it if you want the total effect
The control is a common effect of the treatment and the outcome (a collider)Adding it creates a bias that was not thereLeave it out
Many controls are added until the coefficient looks stableResults look rigorous but reflect selection of controlsChoose controls from a causal model written down in advance

The main failure mode is false confidence. A table with a dozen controls looks thorough, but the reader cannot see what is missing. A useful habit is to ask, for each coefficient, which factor would have to be both correlated with the regressor and important for the outcome to overturn the result. A sensitivity analysis puts a number on that question. It does not remove the bias, but it tells the reader how fragile the claim is.

Omitted variable bias also explains why instrumental variables work. An instrument moves the included variable without touching the outcome except through it, so it gives a slope that is not contaminated by zz, at the cost of a larger variance and a stronger assumption.

History

The regression ideas behind this bias go back to the late 1890s. Udny Yule used multiple regression to study changes in poor relief in England, asking how one factor moved while others were held constant. The algebra for holding other variables fixed was formalised by Ragnar Frisch and Frederick Waugh in 1933, and Michael Lovell (1963) made the result more widely known. The Frisch–Waugh–Lovell theorem shows that the coefficient on one regressor equals the coefficient from first removing the other regressors from both sides.

Econometrics textbooks of the mid-twentieth century made the bias formula a standard topic, and it became the central worry about causal claims from regression. Political scientists adopted the same framework as causal inference became a formal methods subject in the 1990s and 2000s. The concept caught on because it gives a precise answer to a question every observational study faces: what did we leave out, and which way does it push the answer?

Check yourself

QuestionRecall: under what two conditions does leaving a variable out cause no omitted variable bias?Show answer
If the omitted variable has no effect on the outcome, so β2=0\beta_2 = 0, or if it is uncorrelated with the included variable, so δ1=0\delta_1 = 0. Either one makes the product β2δ1\beta_2 \delta_1 zero, and the short slope then equals the true β1\beta_1.
QuestionComputation: the true model is y=5+1.5x+4zy = 5 + 1.5x + 4z and z=2xz = 2x exactly. What does the short regression of yy on xx converge to?Show answer
The bias is β2δ1=4×2=8\beta_2 \delta_1 = 4 \times 2 = 8. The short slope converges to 1.5+8=9.51.5 + 8 = 9.5. The intercept is not needed for the slope, but it would be 5+4×0=55 + 4 \times 0 = 5 here.
QuestionWhy: a colleague says a much bigger survey will fix omitted variable bias. Is that right?Show answer
No. A bigger sample reduces sampling variance, so the estimate becomes more precise, but the probability limit is still β1+β2δ1\beta_1 + \beta_2 \delta_1 at any sample size. A larger sample gives a tighter estimate of the wrong value.
QuestionApplied: a study asks whether campaign spending raises a party's vote share. It controls for last election's vote share, but local organizational strength is not measured. Strong organization raises both spending and votes. Which way is the bias, and what would you do?Show answer
Organization pushes both the regressor and the outcome up, so the coefficient on spending is biased upward. Options: measure organization directly, use a design with exogenous variation in spending such as a natural experiment or an instrument, or run a sensitivity analysis to find how strong an unmeasured factor would need to be to erase the estimate. Last election's vote share may absorb part of organization already, so the direction and size of the remaining bias are uncertain and should be stated as such.

Sources