Variance inflation factor


In statistics, the variance inflation factor (VIF) is the ratio (quotient) of the variance of a parameter estimate when fitting a full model that includes other parameters to the variance of the parameter estimate if the model is fit with only the parameter on its own. The VIF provides an index that measures how much the variance (the square of the estimate's standard deviation) of an estimated regression coefficient is increased because of collinearity.

The VIF is often used to quantify the severity of multicollinearity in an ordinary least squares regression analysis, but it can be highly misleading in this regard (See "Use of the VIF in Empirical Practice" section below for details and references).

Cuthbert Daniel claims to have invented the concept behind the variance inflation factor, but did not come up with the name.

Definition

Consider the following linear model with k independent variables:

Y = β0 + β1 X1 + β2 X 2 + ... + βk Xk + ε.

The standard error of the estimate of βj is the square root of the j + 1 diagonal element of s2(XX)−1, where s is the root mean squared error (RMSE) (note that RMSE2 is a consistent estimator of the true variance of the error term, ); X is the regression design matrix — a matrix such that Xi, j+1 is the value of the jth independent variable for the ith case or observation, and such that Xi,1, the predictor vector associated with the intercept term, equals 1 for all i. It turns out that the square of this standard error, the estimated variance of the estimate of βj, can be equivalently expressed as:

where Rj2 is the multiple R2 for the regression of Xj on the other covariates (a regression that does not involve the response variable Y). This identity separates the influences of several distinct factors on the variance of the coefficient estimate:

  • s2: greater scatter in the data around the regression surface leads to proportionately more variance in the coefficient estimates
  • n: greater sample size results in proportionately less variance in the coefficient estimates
  • : greater variability in a particular covariate leads to proportionately less variance in the corresponding coefficient estimate

The remaining term, 1 / (1 − Rj2) is the VIF. It reflects all other factors that influence the uncertainty in the coefficient estimates. The VIF equals 1 when the vector Xj is orthogonal to each column of the design matrix for the regression of Xj on the other covariates. By contrast, the VIF is greater than 1 when the vector Xj is not orthogonal to all columns of the design matrix for the regression of Xj on the other covariates. Finally, note that the VIF is invariant to the scaling of the variables (that is, we could scale each variable Xj by a constant cj without changing the VIF).

Now let , and without losing generality, we reorder the columns of X to set the first column to be

.

By using Schur complement, the element in the first row and first column in is,

Then we have,

Here is the coefficient of regression of dependent variable over covariate . is the corresponding residual sum of squares.

Calculation and analysis

We can calculate k different VIFs (one for each Xi) in three steps:

Step one

First we run an ordinary least square regression that has Xi as a function of all the other explanatory variables in the first equation.
If i = 1, for example, equation would be

where is a constant and is the error term.

Step two

Then, calculate the VIF factor for with the following formula :

where R2i is the coefficient of determination of the regression equation in step one, with on the left hand side, and all other predictor variables (all the other X variables) on the right hand side.

Step three

Analyze the magnitude of multicollinearity by considering the size of the . A rule of thumb is that if then multicollinearity is high (a cutoff of 5 is also commonly used). However, there is no value of VIF greater than 1 in which the variance of the slopes of predictors isn't inflated. As a result, including two or more variables in a multiple regression that are not orthogonal (i.e. have correlation = 0), will alter each other's slope, SE of the slope, and P-value, because there is shared variance between the predictors that can't be uniquely attributed to any one of them.

Some software instead calculates the tolerance which is just the reciprocal of the VIF. The choice of which to use is a matter of personal preference.

Interpretation

The square root of the variance inflation factor indicates how much larger the standard error increases compared to if that variable had 0 correlation to other predictor variables in the model.

Example
If the variance inflation factor of a predictor variable were 5.27 (√5.27 = 2.3), this means that the standard error for the coefficient of that predictor variable is 2.3 times larger than if that predictor variable had 0 correlation with the other predictor variables.

Use of the VIF in Empirical Practice

Empirical researchers who report VIF scores in the context of ordinary least squares regression near-universally state that their VIF scores are below a numerical rule-of-thumb threshold, as per Step 3 of the "Calculation and Analysis" section above. The objective is to boost confidence in statistically significant results in the presence of multicollinearity.

Yet, on the one hand, if all Gauss-Markov assumptions, as stated in econometrics, are satisfied, then statistical significance is sufficiently credible and reporting VIF scores is superfluous.

On the other hand, a regression that falls afoul of the Gauss-Markov assumptions, either by omitting a relevant variable or common factor correlated with included variables, is susceptible to multicollinearity-induced inflation of omitted-variable bias and type 1 error, leading to the possibility of type 1 errors even when VIF scores are far below thresholds.

Implementation