← Tutti i manuali di Economics

Economics · Econometric Analysis of Microdata

Econometric Analysis of Microdata

Causal inference from foundations to empirical research: regression, uncertainty, panel data and difference-in-differences, with worked applications on political representation and voting.

10capitoli
105sezioni
Come studiareCerca un argomento oppure apri un capitolo dall’indice. I titoli ti portano direttamente alla spiegazione corretta.

3. Omitted Variable Bias and Measurement Error

A regression coefficient is useful only when its interpretation matches the process that produced the data. A large sample can make an estimate very precise while leaving it systematically wrong about the relationship of interest. Two particularly important threats are omitted variables, which place relevant determinants of the outcome inside the regression error, and measurement error, which separates the variables recorded in a dataset from the economic quantities they are supposed to represent. Understanding these problems requires distinguishing uncertainty around an estimate from bias in its target.

Consistency, exogeneity, and the target of estimation

Consider the population relationship Yi=β0+β1Xi+ui. The parameter β1 describes the relationship we seek to estimate; the error ui collects determinants of the outcome that are outside the model. In a simple regression with an intercept, the OLS slope can be expressed as a sample covariance divided by a sample variance. Under a law of large numbers and a positive, finite variance of X, its probability limit is

plimβ̂1=Cov(X,Y)Var(X)=β1+Cov(X,u)Var(X).

The equation identifies the central consistency requirement: the regressor must be uncorrelated with the error for OLS to converge to this structural slope. The stronger condition E[u∣X]=0 also supports the usual conditional interpretation and, with suitable sampling assumptions, finite-sample unbiasedness. Consistency means that the estimator approaches the target as the sample grows; unbiasedness concerns the estimator's expectation at a particular sample size. Neither property is established simply by obtaining a small standard error.

The statement that OLS is the best linear unbiased estimator additionally requires the assumptions of the Gauss–Markov theorem, including the appropriate homoskedastic and uncorrelated error structure. Those efficiency assumptions should not be confused with the exogeneity conditions needed to recover the target coefficient. A regression can have heteroskedastic errors and still estimate the slope consistently, whereas an omitted confounder can make the coefficient inconsistent even with perfectly homoskedastic errors. If the goal is only a best linear prediction, OLS can estimate that predictive projection without identifying a causal effect.

Deriving omitted variable bias

Suppose that the relevant population model contains an additional variable Q:

Yi=β0+β1Xi+αQi+μi,

where μi is uncorrelated with Xi and Qi. If Qi is omitted, the error in the shorter regression becomes vi=αQi+μi. The omission matters for the coefficient on X when two conditions hold together: Q helps determine Y, so that α≠0, and Q is correlated with X. Correlation with X alone is insufficient if the omitted variable has no effect on the outcome in the relevant population relationship.

Write the population linear projection of the omitted variable on the included regressor as

Qi=δ0+δ1Xi+ri,δ1=Cov(X,Q)Var(X),E[ri]=E[Xiri]=0.

This projection is an algebraic description of association; it does not require X to cause Q. Substitution gives

Yi=(β0+αδ0)+(β1+αδ1)Xi+(αri+μi).

The short-regression slope therefore converges to a combination of the direct slope and the association operating through the omitted variable:

plimβ̂1,short=β1+αδ1,omitted variable bias=αδ1.

This is a statement about the probability limit, not an exact decomposition of every realized estimate: an individual sample also contains sampling variation. In multiple regression, the corresponding omitted-variable relationship is conditional on the controls already included. What matters is whether the omitted variable remains related to the regressor after those controls have been taken into account.

Determining the direction of the bias

The sign of the bias is the product of two signs. First ask whether an increase in the omitted variable raises or lowers the outcome, holding the included regressor fixed. Then ask whether observations with larger values of the included regressor tend to have larger or smaller values of the omitted variable. Keeping these two questions separate prevents an intuitive story from being substituted for an actual sign calculation.

Table 4. Direction of omitted variable bias in the simple regression model
Effect of omitted variable on the outcomeAssociation with the included regressorBias in the short-regression slope
Positive: α>0Positive: δ1>0Positive: slope is shifted upward
Positive: α>0Negative: δ1<0Negative: slope is shifted downward
Negative: α<0Positive: δ1>0Negative: slope is shifted downward
Negative: α<0Negative: δ1<0Positive: slope is shifted upward

“Upward” means numerically larger, and “downward” means numerically smaller. Neither expression is synonymous with “closer to zero.” A negative bias makes a positive coefficient smaller, but makes a negative coefficient more negative; sufficiently strong confounding can even reverse its sign. When several relevant variables are omitted, their contributions can reinforce or offset one another, so identifying one plausible confounder need not identify the sign of the total bias.

Test scores, class size, and family income

A school-district example relates average test scores to the student-to-teacher ratio. A higher ratio means more students per teacher, so the coefficient is measured in test-score points per additional student per teacher. The unadjusted regression gives an intercept of approximately 698.93 and a slope of approximately −2.28. It predicts that districts differing by one student per teacher differ by about 2.28 test-score points on average. This is initially an association between districts, not an identified effect of hiring teachers.

Family income offers a plausible explanation for part of that association. Suppose that higher family income raises achievement through resources and opportunities, so α>0, and that richer districts tend to have lower student-to-teacher ratios, so δ1<0. Their product is negative. The short regression then attributes some of the achievement advantage associated with income to the lower ratio, making the estimated ratio coefficient more negative than the coefficient obtained with a suitable income control.

In the illustrated comparison, the displayed ratio slope changes from approximately −2.27 without income to −0.648 with income. A five-unit increase in the ratio is consequently associated with about −11.35 points using the first displayed slope and −3.24 points using the adjusted slope. These are calculations from the reported regression slopes, not experimental policy effects. The upward movement of the coefficient is consistent with the predicted direction of omitted income bias, but does not establish that all confounding has disappeared.

Two horizontal bars show student–teacher ratio coefficients of minus 2.27 in the simple regression and minus 0.648 in the controlled regression. No confidence intervals are supplied.
Figure 4. Reported student–teacher ratio slopes in the school example: −2.27 without the language-composition control and −0.648 with it. The change is consistent with omitted-variable bias; adding a control does not by itself establish causality.
Open figure at full size ↗

The adjustment should be understood as comparing districts after accounting for the modeled income relationship. Other determinants, including family background, school composition, and the way resources are allocated, may remain relevant. A fitted intercept near 699 is also an extrapolation to a ratio of zero, outside the useful comparison range; it should not be interpreted as the score a real district would obtain with no students per teacher.

Addressing omitted variables without adding bad controls

The most direct response is to collect and include a well-measured confounder. This works only if the expanded model provides an adequate representation of the relevant conditional relationship and sufficient variation remains to estimate the effect. Controlling for a variable does not automatically remove every dimension of selection associated with it. For example, one income measure may leave substantial differences in family resources unexplained, and a purely linear adjustment may be inadequate for a strongly nonlinear relationship.

A proxy can help when the confounder itself is unavailable, but an imperfect proxy generally leaves residual confounding. Instrumental variables can address certain endogeneity problems when an instrument is relevant for the endogenous regressor and satisfies a credible exclusion restriction and exogeneity condition. Panel methods can remove unobserved characteristics that remain constant within a unit over time. Each approach replaces one identification challenge with explicit assumptions that must be defended; none is a mechanical guarantee of a causal coefficient.

Control selection should follow the causal question. A variable caused by the treatment can be a mediator rather than a pre-existing confounder. Adjusting for it may remove part of the total effect that the researcher wants to estimate. Conditioning on a common consequence of treatment and unobserved outcome determinants can also create bias. A thoughtful specification therefore begins with a description of the economic process and the timing of variables, rather than with a search for the largest possible collection of controls.

Measurement error in an explanatory variable

Economic variables are frequently measured imperfectly. National output relies on incomplete records and estimation; time-use surveys depend on recall; undocumented migration is difficult to count; self-reported income and happiness may be recorded inaccurately. Measurement error can reflect random noise, systematic reporting behavior, or a mismatch between a recorded indicator and the underlying concept.

Let Xi* denote the true regressor and let the observed value be Xi=Xi*+ei. Suppose the population model is Yi=β0+β1Xi*+ui. In the classical additive case, assume E[ei]=0, Cov(Xi*,ei)=0, Cov(ui,ei)=0, and Cov(Xi*,ui)=0. Substituting Xi*=Xi−ei into the model yields

Yi=β0+β1Xi+(ui−β1ei).

The minus sign is essential. The observed regressor contains the measurement error positively, while the new regression disturbance contains it multiplied by −β1. Consequently,

Cov(Xi,ui−β1ei)=−β1Var(ei).

Thus even error that is unrelated to the true regressor creates correlation between the observed regressor and the composite regression disturbance. Calling the measurement error “random” does not make the resulting regression exogenous.

Attenuation, reliability, and nonclassical error

The classical assumptions imply Cov(X,Y)=β1Var(X*) and Var(X)=Var(X*)+Var(e). The probability limit of the observed-regressor slope is therefore

plimβ̂1=β1σX*2σX*2+σe2=λβ1,λ=σX*2σX*2+σe2.

The reliability ratio λ lies between zero and one when true variation is positive and measurement-error variance is finite. It equals one when there is no measurement error. As noise becomes more important relative to true variation, the slope is pulled further toward zero. A positive true coefficient is attenuated downward; a negative true coefficient is attenuated upward. Attenuation is therefore a reduction in magnitude, not an invariably downward numerical bias.

The attenuation factor falls from 100 percent when measurement error has zero variance to 50 percent when error variance equals true-regressor variance, 25 percent when it is three times as large, and 10 percent when it is nine times as large.
Figure 5. For a simple regression with classical measurement error in the explanatory variable, the probability limit of the slope equals the true slope multiplied by 1 / (1 + variance ratio). The curve is the theoretical formula, not an estimated empirical relationship.
Open figure at full size ↗

For a hypothetical example, if true variation and measurement-error variation are equal, then λ=1/2: a true slope of 4 is estimated near 2 in a sufficiently large sample, while a true slope of −4 is estimated near −2. More observations concentrate the estimator around this attenuated target; they do not remove the distortion. Better measurement, validation information, or a suitably valid instrument can help identify the desired coefficient.

Nonclassical error violates one or more of the classical restrictions. High-income respondents might underreport income more strongly, or reporting quality might depend on the outcome. The bias can then have either sign. Even classical error in one variable of a multiple regression need not move every estimated coefficient toward zero: correlations among regressors can transmit the problem to other coefficients. The simple reliability formula should therefore be used only for the model and assumptions under which it was derived.

Measurement error in the outcome and practical interpretation

Now suppose the true outcome satisfies Yi*=β0+β1Xi+ui, but the observed outcome is Yi=Yi*+ai. The estimated relationship becomes

Yi=β0+β1Xi+(ui+ai).

If the original error is exogenous and the outcome measurement error has conditional mean zero given X, the composite error remains exogenous. The slope can therefore remain consistent. If ai is also uncorrelated with ui, its variance adds to the original disturbance variance, generally reducing precision. Under those restrictions, classical outcome noise increases uncertainty without producing the regressor attenuation described above.

This conclusion is conditional, not universal. If people with higher X systematically overreport the outcome, then E[a∣X] varies with X and the slope can be biased. Correlation between measurement error and the original disturbance also changes the simple variance-addition result. A careful empirical analysis identifies what is measured, how it is recorded, and why the proposed error assumptions are plausible. The central distinction is whether the problem changes the coefficient's target, its precision, or both.

Torna all’inizio ↑

Ripetizioni personalizzate · Da 15€/h

Un dubbio da chiarire?
Studiamolo insieme.

Offro lezioni personalizzate per studenti delle superiori e dell’università: spiegazioni chiare, esercizi guidati e un metodo costruito sulle tue esigenze. Scopri le materie e le tariffe, oppure prenota una lezione per lavorare sul tuo programma.