ML0108 Multicollinearity & VIF

In a credit-risk scorecard of the kind built at banks such as Capital One, income, total debt, debt-to-income ratio, and revolving balance tend to move together. What is multicollinearity, how do you detect it (VIF, condition number), and when does it actually hurt: prediction or coefficient interpretation?

Line-art scene: a box of applicant features (income, total debt, debt-to-income ratio, revolving balance, credit utilization) feeds a logistic regression scorecard retrained monthly; the January fit shows a total-debt coefficient of +0.82 with holdout AUC 0.781, the February fit shows a total-debt coefficient of -0.31 with holdout AUC 0.779, and both feed a box where risk and compliance ask why more debt started lowering the risk score and which reasons go on the adverse-action notice

The Problem: A credit-risk scorecard is retrained on the next month of data (illustrative numbers). Holdout AUC barely moves, but the coefficient on total debt flips from positive to negative, and the risk team now has to explain which features actually drive the score.

Answer

Multicollinearity means one predictor is nearly a linear combination of the others, so X^\top X is close to singular and the data cannot separate those features’ individual effects. Each coefficient’s sampling variance is multiplied by its variance inflation factor \mathrm{VIF}_j = 1/(1-R_j^2), so standard errors balloon and signs can flip between retrains. Detect it per feature with VIF (the usual flags of 5 and 10 are conventions, not tests) and globally with the condition number of the scaled design, where values above about 30 signal trouble. Prediction usually survives, because fitted values depend on the column space and test data share the training correlation structure. Coefficient interpretation does not survive, and predictions degrade too once deployment data break the correlation. Under perfect collinearity X^\top X is not invertible, so the normal equation has no unique solution at all.

(1) A Property Of The Design: Multicollinearity lives in X, not in the model. Pairwise correlation is one symptom, but a three-way dependency such as x_3 \approx x_1 + x_2 can hide behind modest pairwise correlations.
(2) VIF Is Per-Feature Inflation: Regress x_j on every other predictor and take 1/(1-R_j^2). The standard error of \hat\beta_j grows by \sqrt{\mathrm{VIF}_j}, so VIF 10 means confidence intervals about 3.2 times wider.
(3) Condition Number Is Global Fragility: \kappa = \sqrt{\lambda_{\max}/\lambda_{\min}} of the column-scaled design flags near-dependencies, and the eigenvector of each small eigenvalue (Belsley’s variance-decomposition proportions) names the features involved.
(4) Prediction Survives In Distribution: Coefficients trade off along the near-null direction while X\hat\beta barely moves, so i.i.d. test error is almost unchanged.
(5) Inference And Shift Break: Signs, magnitudes, p-values, and per-feature importances become unstable, and predictions degrade when deployment data decorrelate the features.
(6) Remedy Follows The Goal: For prediction, keep the features and add ridge. For interpretation, drop or combine features, or test the group jointly; PCA fixes conditioning but erases per-feature meaning.

Mathematical Formulation:
\mathrm{VIF}_j = \frac{1}{1 - R_j^2}
\mathrm{Var}(\hat\beta_j) = \frac{\sigma^2}{(n-1)\,s_j^2}\,\mathrm{VIF}_j
\kappa(\tilde X) = \sqrt{\lambda_{\max} / \lambda_{\min}}
\hat\beta_{\mathrm{OLS}} = (X^\top X)^{-1} X^\top y
\hat\beta_{\mathrm{ridge}} = (X^\top X + \alpha I)^{-1} X^\top y

Where:

  • \mathrm{VIF}_j is the variance inflation factor of feature j, and R_j^2 is the coefficient of determination from regressing x_j on all other predictors (with an intercept).
  • \sigma^2 is the noise variance, n the sample size, and s_j^2 the sample variance of x_j. The first factor is the variance you would get with orthogonal predictors, so VIF isolates the collinearity penalty.
  • \tilde X is the design with columns scaled to unit length, and \lambda_{\max}, \lambda_{\min} are the largest and smallest eigenvalues of \tilde X^\top \tilde X. Note that \kappa(X^\top X) = \kappa(X)^2, so check which one a library reports.
  • \hat\beta_{\mathrm{OLS}} is the normal-equation solution. Under perfect collinearity \lambda_{\min} = 0, the inverse does not exist, and infinitely many \beta fit equally well; the pseudoinverse returns the minimum-norm one.
  • \alpha > 0 is the ridge penalty and I the identity. Ridge adds \alpha to every eigenvalue of X^\top X, so the system is always invertible and the flat direction gets a unique, shrunk answer.

Worked Example:
Take two standardized predictors with correlation r. Regressing one on the other gives R_j^2 = r^2, so \mathrm{VIF} = 1/(1-r^2), and the correlation matrix has eigenvalues 1+r and 1-r, so \kappa = \sqrt{(1+r)/(1-r)}. At r = 0.95 the VIF is 1/0.0975 \approx 10.3 and each standard error is about 3.2 times wider than with orthogonal features, yet \kappa is only 6.2. The two diagnostics live on different scales. In a two-feature model \kappa crosses 30 only above r \approx 0.998, because the condition number was designed to expose multi-feature dependencies (often involving the intercept) that pairwise checks miss.

Correlation rVIF = 1 / (1 – r^2)R_j^2Standard error multiplierCondition number (2 features)
0.501.330.251.151.73
0.802.780.641.673.00
0.905.26 (crosses the “5” flag)0.812.294.36
0.9510.26 (crosses the “10” flag)0.90253.206.24
0.9950.250.98017.0914.11

Login to view more content
Log in to track your progress

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *