Sub topic 11
Model Misspecification: Omitted Variables, Functional Form, Scaling and Data Pooling
Prerequisites and the working model
Assume you know simple and multiple linear regression, slope and intercept interpretation, t-tests, p-values, and basic probability. The correctly specified multiple regression model is:
Yᵢ = β₀ + β₁X₁ᵢ + β₂X₂ᵢ + … + βₖXₖᵢ + εᵢ
Model misspecification occurs when this equation does not represent the data-generating process well. The problem may involve missing variables, the wrong functional form, inconsistent measurement scales, or combining observations that should not be analyzed together.
Omitted variables
An omitted variable is a relevant explanatory variable left out of the regression. Omission creates omitted variable bias when both conditions hold:
- The omitted variable affects the dependent variable.
- The omitted variable is correlated with an included explanatory variable.
For example, suppose salary is regressed on education but ability is omitted. If ability affects salary and is positively correlated with education, the education coefficient captures part of ability's effect. The estimated education coefficient is biased upward.
The direction of bias depends on the signs of the omitted variable's effect on Y and its correlation with the included variable. If either condition fails, omission may still reduce explanatory power, but it does not necessarily bias the included coefficient.
A common remedy is to include a suitable proxy for the omitted factor, use a research design that reduces correlation, or acknowledge that the coefficient measures an association rather than a causal effect.
Functional form errors
Functional form describes how X enters the regression. A linear model assumes that a one-unit change in X has the same effect at every level of X, holding other variables constant. This may be unrealistic.
Useful alternatives include:
- A quadratic term, X², for a curved relationship.
- A logarithm of X when percentage changes are more meaningful.
- An interaction term, X₁X₂, when the effect of one variable depends on another variable.
- A reciprocal term, 1/X, when the effect decreases rapidly.
Residual plots help detect functional form errors. A U-shaped or inverted U-shaped residual pattern often indicates that a quadratic term is needed. A fan-shaped pattern primarily indicates heteroskedasticity, although several problems can appear together.
Scaling and measurement
Scaling changes the units in which a variable is measured. For example, changing income from dollars to thousands of dollars changes the numerical slope but not the fitted values, t-statistic, R-squared, or economic relationship. The intercept and slope must always be interpreted in the variables' actual units.
Scaling becomes a misspecification concern when variables are transformed inconsistently or when the chosen transformation does not match the question. A level-level model estimates the change in Y from a one-unit change in X. A log-level, level-log, or log-log model has different interpretations.
| Model form | Interpretation of the slope |
|---|---|
| Level-level: Y = β₀ + β₁X | One unit of X changes Y by β₁ units |
| Log-level: ln(Y) = β₀ + β₁X | One unit of X changes Y by about 100β₁ percent |
| Log-log: ln(Y) = β₀ + β₁ln(X) | A 1% change in X changes Y by about β₁% |
Pooling incompatible data
Pooling combines observations across groups or periods. Pooling can be inappropriate when groups have different intercepts, slopes, or error variances. For example, combining recession and expansion observations may hide a changing relationship.
Use group dummy variables, interaction terms, separate regressions, or a structural-break test when theory suggests different regimes. Always check whether the variables use comparable definitions across the pooled observations.
import statsmodels.api as sm
import numpy as np
rng = np.random.default_rng(7)
x = np.arange(1, 11)
y = 2 + 3 * x + rng.normal(0, 1, len(x))
X = sm.add_constant(np.column_stack([x, x**2]))
model = sm.OLS(y, X).fit()
print(model.params)
print(model.resid)Exercise
Exercise
Education and ability both increase salary, and education and ability are positively correlated. If ability is omitted from a salary regression containing education, what is the likely effect on the estimated education coefficient?
Show answer
It is likely biased upward because the education coefficient partly captures the positive effect of omitted ability.