10 Multicollinearity & Polynomial Regression & Interaction Models
Multicollinearity
Venn Diagram

- Blue: variation in uniquely attributable to .
- Green: variation in uniquely attributable to .
- Red: don't which one to attribute to, and can be negative (suppressor variables)
- Yellow: variation in that cannot be explained, estimate for .
Zero Collinearity
Here we discuss an extreme case where the explanatory variables have zero collinearity, i.e., they are uncorrelated. For simplicity, we assume the pairwise sample correlation to be zero:
where is without all-one column after correlation transformation.
We call this as Orthogonal Design.
So , where is the sample correlation between and . Therefore
thus
(Expand and take its variance to get it.)
We can observe some properties of this design:
- The coefficient estimation does not depend on the other explanatory variables
- The contribution of explanatory variable to is clear cut, and type I and III (or II) SS of will be the same.
- If the linear model is true, orthogonal design is optimal, i.e., variances are the smallest possible (high power)
- p-values for testing will change if we add or ignore other variables. Because , which depends on included variables, will change.

Perfect Collinearity
Here we talk about another extreme case where doesn't have full column rank. In this case doesn't exist, so can not be estimated.
This is called Degenerate Design.
The normal equation has infinite solutions. Geometrically speaking:

For each perfect linear relation, the involved explanatory variables are confounded, and at least one is redundant.
It is possible to mathematically remove the redundancy by deleting one of the explanatory variables, so that the reduced model can be fitted, and coefficients of the remaining variables can be estimated. But which one to remove cannot be decided. The model is not identifiable.
General Case
When design matrix is not very good nor very bad, i.e., is invertible but not orthogonal designed.
We have
and
where is the projection matrix of ( excluded the -th column). We can obtain this by Schur complement.
So if is close to singular, the variance of would inflate.
When the amount of correlation becomes large,
- Ambiguity between the involved variables increases, making it difficult to interpret the regression coefficients
- Type I SS and type II SS become different, leading to inconsistency between ANOVA F-test and t-tests.
- inflates.
上边都在说设计矩阵的事,更根本地,是不是应该考虑随机变量 的协方差矩阵?即使它们都不相关(也就是所谓的正交),也仍然有可能生成完美共线性的设计矩阵。这设计矩阵只是表面。应该区分总体与样本的视角,上面都是样本的视角。
Remedy
Reducing Multicollinearity
- Collect additional data under different experimental or observational conditions (add rows to ).
- Principal component analysis (PCA)
- Variable transformation
Comments on PCR (PCA + Regression)
- Bad interpretability
- The whole process of PCA doesn't consider . What if the last PC contains a variable which is perfect linear with ?
Omitting a Relevant Explanatory Variable
If the true model is
Let's see what will happen to our estimation if is omitted.
Original design matrix . The estimation is
Drop the column and becomes . The estimation is
So generally would be biased and its variance would change.
Famous example: Simpson's Paradox.

Maybe the true model contains many 0/1 variable and . If we conduct which omits all other variables. The slope of will be estimated with bias.
因果推断中很熟悉了。但是线性回归的视角不太一样,能否统一?两者应该有一个共同的本质的解释。
本质的解释就是忽略了重要变量。
Polynomial Regression
Sometimes we need to add terms like into the model. But this usually comes with issue of multicollinearity.
How to address the correlation between and ? Centralization. Below is an example.
| 1st order | 2nd order |
|---|---|
| 1 | 1 |
| 2 | 4 |
| 3 | 9 |
| high correlation. |
| 1st order (after centralization) | 2nd order |
|---|---|
| -1 | 1 |
| 0 | 0 |
| 1 | 1 |
| low coorelation. |
Check collinearity

Read from bottom to top. The first variable whose p-value is different between t-test and F-test has collinearity problem with previous variables. In this case, schrate2 has collinearity with stemp2 and sct.
Recall the meaning of t-test and type I SS.
t-test for schrate2 checks if it brings new information controlling all other variables while F-test controlling schrate and stemp without controlling stemp2 and sct.
The fact that p-values are different tells us stemp2 and sct can explained the information brought by schrate2 thus indicating collinearity.
Reduce collinearity
By centralization.
Change in ANOVA table:

If higher-order terms appear after corresponding lower-order terms, the ANOVA table won't change. The reason is the original nested models are
after centralization, the nested models are
The new information brought by the higher-order term only comes from . So type II SS doesn't change.
But if the order changes, the ANOVA table will change, because the nested models after centralization are like
The first model already have information that can be brought by , though we cannot independently control this 1st-order term.
以上只是直觉解释,有时间得更细致地查看 OLS 对这些模型的估计过程。(我估计永远都不会有时间)
We can add terms with higher orders such as ... But to them, centralization doesn't make much use. We do Gram–Schmidt orthogonalization to mitigate collinearity.
Interaction Models
Look at the slides.