Multicollinearity

If the predictor variables are correlated then we need to detect multicollinearity and treat it. Recognition of multicollinearity is crucial because two or more variables are correlated, which shows a strong dependence structure between those variables, and we are using correlated variables as independent variables, which end up having a double effect of these variables on the prediction because of the relation between them. If we treat the multicollinearity and consider only variables which are not correlated then we can avoid the problem of double impact.

We can find multicollinearity by executing the following code:

> vif(MultipleR.lm) 

This gives the multicollinearity table for the predictor variables:

Figure 3.8: VIF table ...

Get Learning Quantitative Finance with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.