Sub topic 3
Multicollinearity: symptoms, VIF and remedies
This chapter assumes you can read multiple regression output, interpret t-tests and the F-test, and recall the OLS assumptions.
Multicollinearity: symptoms, VIF and remedies
Multicollinearity means two or more independent variables are strongly correlated with each other. The model cannot separate their individual effects, so their standard errors inflate. A coefficient can look insignificant even when the F-test is significant.
The variance inflation factor (VIF) measures this for each regressor: VIFj = 1 / (1 - Rj²), where Rj² comes from regressing xj on the other regressors. A VIF above 5 is a common warning, and above 10 is a common sign of severe collinearity.
import numpy as np
import statsmodels.api as sm
from statsmodels.stats.outliers_influence import variance_inflation_factor
rng = np.random.default_rng(1)
n = 200
x1 = rng.normal(size=n)
x2 = x1 + rng.normal(scale=0.1, size=n)
x3 = rng.normal(size=n)
X = sm.add_constant(np.column_stack([x1, x2, x3]))
for i, name in enumerate(["x1", "x2", "x3"], start=1):
print(name, variance_inflation_factor(X, i))Remedies include dropping or combining a redundant variable, collecting more data, or re-specifying the model. Do not drop variables only to lower VIFs. Dropping a relevant variable creates misspecification, described next.
Model misspecification: omitted variables, functional form, scaling and data pooling
Misspecification means the model's form or variables are wrong. The main errors are:
- Omitted variable: a relevant regressor is left out. Coefficients on correlated included variables become biased.
- Irrelevant variable: a useless regressor is added. Estimates stay unbiased, but standard errors grow.
- Wrong functional form: a linear model fits a curved relationship. Test log or squared terms.
- Inappropriate scaling or pooling: mixing units or combining groups with different slopes.
| Error | Effect on coefficients | Effect on standard errors |
|---|---|---|
| Omitted relevant variable | Biased and inconsistent | Unreliable |
| Irrelevant variable included | Unbiased | Inflated |
| Wrong functional form | Biased | Unreliable |
Outliers, leverage and Cook's distance
A leverage point has an unusual x value. An influential observation changes the fitted coefficients when removed. Cook's distance combines leverage and residual size. A common rule flags observations with Cook's distance above 4/n. Investigate flagged points before deciding anything. Do not delete them automatically.
When the dependent variable is categorical: logit and probit
When the dependent variable is 0 or 1, a linear model can predict probabilities below 0 or above 1. Logit and probit models pass a linear index through a curve, the logistic or normal distribution, so predictions stay between 0 and 1. These models are estimated by maximum likelihood, not OLS. Use them for yes/no outcomes, such as default or no default.
Exercise
Exercise
A regression has a VIF of 12 for x1. The F-test is significant, but the t-test for x1 is not. What is the likely cause, and what is a first remedy?
Show answer
Multicollinearity inflates the standard error of x1. Check which regressors correlate with x1, then consider dropping or combining the redundant variable, or collecting more data. Do not drop it blindly, since omitting a relevant variable causes misspecification.