Sub topic 10
Multicollinearity: symptoms, VIF and remedies
This chapter assumes you can read a multiple regression output, run a t-test on a coefficient, and interpret a partial slope. It covers what multicollinearity is, how to spot it, what it does to inference, and what to do about it.
What multicollinearity is
Multicollinearity occurs when two or more independent variables are highly correlated with each other, or when one independent variable is close to a linear combination of the others. A partial slope measures the effect of one variable while holding the others constant. When two variables move together almost perfectly, the data contain very few observations where one changes and the other does not. The regression then has little information with which to separate their effects.
There are two forms:
- Perfect multicollinearity. One regressor is an exact linear function of others. Examples are including a variable and also its value in different units, or including a dummy for every category plus an intercept. OLS cannot compute unique estimates, and software drops a variable or reports an error.
- High (imperfect) multicollinearity. The regressors are strongly but not exactly related. OLS still runs, but the estimates behave badly. This is the case the CFA exam focuses on.
What it does and does not do
This distinction is tested often, so be precise.
What it does not do. With imperfect multicollinearity, the OLS estimators remain unbiased and consistent. The model's predictions of the dependent variable, and its R-squared, are largely unaffected. The assumptions of the multiple regression model are not violated in a way that biases the slopes.
What it does. It inflates the standard errors of the affected coefficients. Larger standard errors produce:
- Smaller t-statistics, so true effects fail to reach significance (more Type II errors).
- Wide confidence intervals for the affected coefficients.
- Estimates that are unstable. Small changes in the sample, or adding or dropping a variable, can swing a coefficient a lot, or even flip its sign.
The standard errors are still correctly computed. They are large because the data really do carry little information about each variable's separate effect.
Classic symptoms
The textbook symptom pattern is a high R-squared and a significant F-test, together with individually insignificant t-statistics. The F-test asks whether the coefficients are jointly different from zero. Because the variables jointly explain a lot, the F-test rejects. Because each variable's separate contribution is hard to isolate, each t-test fails to reject.
Other warning signs:
- Coefficients with unexpected signs or implausible magnitudes.
- Large coefficient changes when you add or remove one regressor or a few observations.
- High pairwise correlations between regressors.
| Symptom | Is it evidence of multicollinearity? |
|---|---|
| High R-squared, significant F, insignificant individual t-statistics | Strong sign |
| Coefficient signs that contradict theory | Possible sign |
| Pairwise correlation above about 0.7 between two regressors | Suggestive, not conclusive |
| Low R-squared with insignificant t-statistics | No, this is just a weak model |
Detecting it: correlations and VIF
Pairwise correlations
Checking the correlation matrix of the regressors is a quick first screen. It has a limit: it only sees relationships between two variables. A regressor can be nearly a linear combination of three others while no single pairwise correlation looks alarming. Low pairwise correlations therefore do not rule out multicollinearity when there are more than two regressors.
The variance inflation factor
The variance inflation factor (VIF) measures how much the variance of a coefficient estimate is inflated by correlation with the other regressors. For regressor j, run an auxiliary regression of that regressor on all the other independent variables. Take the R-squared of that auxiliary regression, written R²_j. Then:
VIFj = 1 / (1 − R²j)
If a regressor is unrelated to the others, R²j is 0 and VIF is 1. As R²j approaches 1, VIF grows without bound. The standard error of the coefficient is multiplied by the square root of VIF compared with the case of no correlation.
Common rules of thumb:
| VIF | Reading |
|---|---|
| 1 | No collinearity |
| Above 5 | Warrants investigation |
| Above 10 | Serious multicollinearity |
A VIF of 10 corresponds to R²_j = 0.90. It means the standard error is about 3.2 times what it would be with uncorrelated regressors, since the square root of 10 is about 3.16.
Computing VIF in Python
The code below builds two nearly identical regressors (x1 and x2) and one independent regressor (x3). It then prints each VIF. The constant is included in the design matrix, and we skip it when reporting.
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))Here x2 is x1 plus noise with a standard deviation of 0.1, so the two are almost the same variable. Expect VIFs for x1 and x2 far above 10 (around 100), and a VIF for x3 close to 1. The index starts at 1 because column 0 is the constant.
A matching diagram shows how the auxiliary regression produces the VIF.
A worked reading of the problem
Suppose you model a stock's excess return using two predictors that both measure company size: market capitalization and total assets. Their correlation is 0.96. The regression gives an R-squared of 0.62 and an F-statistic with a p-value below 0.001. Yet the t-statistics are 1.1 on market capitalization and 0.9 on total assets, both below the 5% critical value of about 1.97 for a large sample.
Read this as follows. The F-test says size matters jointly. The t-tests cannot say which size variable carries the effect. A joint F-test on the two size coefficients would reject, so dropping both would be a mistake. The sensible step is to keep one size measure, or combine them.
Compare this with a different case: R-squared of 0.05, F-test not significant, all t-statistics insignificant. That is a weak model, not multicollinearity. Checking the F-test against the t-tests is what separates the two.
Remedies
Multicollinearity is a data problem, not a violation that needs a formal correction. Remedies are therefore judgment calls, and each has a cost.
- Drop one of the correlated variables. If two variables measure the same thing, removing one often fixes the standard errors. The risk is omitted variable bias. If the dropped variable truly belongs in the model, the remaining coefficient absorbs its effect and becomes biased. Drop only when theory says the variable is redundant.
- Combine the variables. Replace correlated variables with an index, an average, or a ratio that has economic meaning. This keeps the information while removing the duplication.
- Use a different technique. Principal components regression, which regresses on a few uncorrelated components built from the original variables, and ridge regression, which shrinks coefficients toward zero, both trade a little bias for lower variance. These are beyond the core exam but worth recognizing.
- Get more data. More observations, especially ones where the correlated variables diverge, reduce standard errors.
- Do nothing. If the goal is prediction, or if the coefficients of interest are not the collinear ones, the problem may be harmless. Collinearity among control variables does not harm the estimate of a variable of interest that is uncorrelated with them.
Edge cases and common errors
- Dummy variable trap. Including one dummy for every category along with an intercept creates perfect multicollinearity. With n categories, use n − 1 dummies. This was covered in the chapter on dummy variables.
- Squared terms and interactions. A variable and its square, or a variable and its interaction with another, are often highly correlated. The VIFs can be large even though the model is correct. Centering the variable (subtracting its mean) before squaring usually lowers the correlation. The fit and the predictions do not change.
- Lagged variables. Time series regressors that are persistent, such as a price level and its previous value, often show high VIFs.
- Confusing it with heteroskedasticity or serial correlation. Those two problems bias the standard errors, so tests become unreliable in either direction. Multicollinearity leaves the standard errors correctly computed. They are simply large.
- Treating high VIF as a rejection of the model. VIF diagnoses the precision of individual coefficients. It says nothing about whether the model's forecasts are good.
- Relying on pairwise correlation alone. As noted, it can miss collinearity involving three or more variables. VIF catches it.
- Treating cutoffs as laws. The values of 5 and 10 are conventions. A VIF of 8 on a variable that is clearly significant is no problem. A VIF of 4 on a variable you need to estimate precisely might still matter.
How this connects to the other problems
Multicollinearity differs from the two violations in the previous chapters in what it breaks.
| Problem | Effect on coefficients | Effect on standard errors | Typical detection |
|---|---|---|---|
| Heteroskedasticity | Unbiased, consistent | Biased, so tests are unreliable | Breusch-Pagan |
| Serial correlation | Unbiased, consistent (no lagged dependent variable) | Biased, so tests are unreliable | Durbin-Watson, Breusch-Godfrey |
| Multicollinearity | Unbiased, consistent | Correct but inflated | VIF, correlation matrix |
Misspecification, the next topic, is more damaging than any of these, because omitted variables and wrong functional forms can bias the coefficients themselves.
Exercises
Exercise
A regression with four independent variables has an R-squared of 0.85 and a significant F-statistic. All four slope t-statistics are below 1.5 in absolute value. The VIFs are 14, 12, 1.3 and 1.1. What is the likely problem, and what is the first step you would take?
Show answer
This is the classic pattern of multicollinearity: high R-squared and significant F, with insignificant t-statistics. The two variables with VIFs of 14 and 12 are the likely cause. The first step is to examine those two variables and decide, on economic grounds, whether they measure the same thing. If they do, drop one or combine them into a single measure, then refit. Check a joint F-test on the pair before deleting both, so that you do not remove relevant information.
Exercise
An auxiliary regression of x2 on the other independent variables has an R-squared of 0.80. Compute the VIF for x2, and state by what factor the standard error of its coefficient is inflated relative to the case of no collinearity.
Show answer
VIF = 1 / (1 − 0.80) = 1 / 0.20 = 5. The standard error is inflated by the square root of 5, which is about 2.24. A VIF of 5 is at the lower edge of the range that warrants investigation.
Exercise
True or false: because multicollinearity inflates standard errors, the OLS coefficient estimates are biased. Explain.
Show answer
False. With imperfect multicollinearity the OLS estimators remain unbiased and consistent. Only their precision suffers: standard errors are larger, t-statistics smaller, and estimates less stable across samples. Bias arises from problems such as omitted variables, which is why dropping a relevant variable to cure multicollinearity can make things worse.