Understanding Multicollinearity and Variance Inflation
Multicollinearity occurs when two or more predictor variables in a regression model are highly correlated. This correlation poses a problem because it makes it difficult to determine the individual effect of each predictor on the dependent variable.
High Variance: When multicollinearity exists, ordinary least squares (OLS) estimates can become unstable. This instability is characterized by:
- Sensitive Coefficients: Small changes in the data can lead to large changes in the coefficient estimates.
- High Variance in Coefficients: The estimates of the coefficients can have large standard errors, meaning they could vary significantly from one sample to another.
Numerical Example to Illustrate Multicollinearity and Ridge Regression
Consider a simple regression model where we have three predictor variables (X_1), (X_2), and (X_3), where (X_1) and (X_2) are highly correlated.
Data Example:
Let's say you have the following dataset:
| (Y) | (X_1) | (X_2) | (X_3) |
|---|
| 5 | 1 | 1.1 | 2 |
| 6 | 2 | 1.9 | 4 |
| 7 | 3 | 3.1 | 6 |
| 8 | 4 | 4 | 8 |
Here, (X_1) and (X_2) are correlated (almost linearly dependent), leading to multicollinearity.
How Ridge Regression Addresses Multicollinearity
Ridge regression adds a penalty term to the OLS loss function to shrink the coefficient estimates, reducing their variance:
[
\text{Ridge Loss Function} = \sum (Y_i - \hat{Y}_i)^2 + \lambda \sum \beta_j^2
]
-
(\lambda) is the regularization parameter, and (\beta_j) are the coefficients.
-
Larger (\lambda) values lead to more shrinkage of the coefficients.
Example Calculation:
Let's see what happens when you apply both OLS and ridge regression to the above dataset, assuming some estimated coefficients and (\lambda).
Ordinary Least Squares (OLS):
- Without regularization, OLS may find large coefficients for (X_1) and (X_2) due to their high correlation, resulting in high variance estimates.
Assume OLS gives us:
[
\beta_1 = 10, \quad \beta_2 = -9.8, \quad \beta_3 = 0.5
]