Contents
- What does the VIF tell a researcher?
- How is the VIF calculated?
- A manual example
- Calculating VIF in SPSS
- Calculating VIF in Python
- How to fix high VIF values
- Why does multicollinearity appear so often in field data?
- Calculating VIF in R and Stata
- How to report VIF in a thesis or journal article
- Frequently asked questions
- What does VIF stand for?
- What is a good VIF value?
- What is the relationship between VIF and tolerance?
- Is a VIF test needed for simple linear regression?
- Are high VIF values on dummy or interaction variables always a problem?
- Does a high VIF make the regression coefficients biased?
- Should VIF be checked in logistic regression?
- Why do two variables with a correlation of 0.6 produce a low VIF?
- References
Versi bahasa Indonesia: Pengertian VIF dan Cara Menghitungnya
Short answer: the variance inflation factor (VIF) measures how much the variance of a regression coefficient is inflated by multicollinearity, namely correlation among the independent variables. It is calculated as VIFj = 1 / (1 − Rj²), where Rj² comes from regressing Xj on all other independent variables. A common rule treats VIF below 10 (tolerance above 0.10) as acceptable, while a stricter rule uses VIF below 5.
| Rj² | VIF = 1/(1 − Rj²) | Tolerance = 1 − Rj² | Interpretation |
|---|---|---|---|
| 0 | 1.00 | 1.00 | No correlation with other predictors |
| 0.50 | 2.00 | 0.50 | Safe |
| 0.75 | 4.00 | 0.25 | Safe |
| 0.80 | 5.00 | 0.20 | Strict threshold |
| 0.90 | 10.00 | 0.10 | Common threshold |
| 0.95 | 20.00 | 0.05 | Strong multicollinearity |
What does the VIF tell a researcher?
The VIF is an index of how strongly one independent variable is explained by the others in the same equation. It is the standard diagnostic for multicollinearity, one of the classical assumptions of ordinary least squares regression. When two or more predictors carry almost the same information, the model cannot separate their individual effects. The coefficients may still be unbiased, yet their standard errors grow, t-statistics shrink, and signs may even flip when a single observation is added or removed. Thus, a model with high VIF values can show a high R² while few coefficients appear significant.
The name explains the mechanism. A VIF of 6.67 means that the variance of the coefficient is 6.67 times larger than it would be if the variable were uncorrelated with the other predictors. Consequently, the standard error is √6.67 ≈ 2.58 times larger.
How is the VIF calculated?

The key point is that the dependent variable plays no role. Each independent variable takes a turn as the dependent variable of an auxiliary regression on the remaining predictors. For the model Y = a + bX1 + cX2 + dX3 + eX4, four auxiliary regressions are required: (1) X1 on X2, X3, and X4; (2) X2 on X1, X3, and X4; (3) X3 on X1, X2, and X4; and (4) X4 on X1, X2, and X3. The R² of each auxiliary regression is then inserted into the formula.
A manual example
Consider the model Y = a + b1X1 + b2X2 + b3X3. To find the VIF of X1, regress X1 on X2 and X3 without Y. Suppose the auxiliary R² equals 0.85. Then VIF X1 = 1 / (1 − 0.85) = 1 / 0.15 = 6.67, and tolerance X1 = 0.15. The variable passes the common threshold of 10 but fails the stricter threshold of 5.
Calculating VIF in SPSS
A fictitious dataset was constructed deliberately so that three predictors would be highly correlated. In SPSS, the procedure is as follows: (1) open Analyze, Regression, Linear; (2) enter the dependent and independent variables; (3) click Statistics and tick Collinearity diagnostics; and (4) click Continue and OK. The Tolerance and VIF columns appear at the far right of the Coefficients table.


As intended, X1, X2, and X3 show very high VIF values. Recomputing each auxiliary R² manually and applying the formula reproduces the SPSS values. The small differences arise only because SPSS displays R² with three decimals.

Calculating VIF in Python
import pandas as pd
import statsmodels.api as sm
from statsmodels.stats.outliers_influence import variance_inflation_factor
df = pd.read_csv("data.csv")
X = sm.add_constant(df[["X1", "X2", "X3", "X4"]])
vif = pd.DataFrame({
"variable": X.columns,
"VIF": [variance_inflation_factor(X.values, i) for i in range(X.shape[1])]
})
vif["tolerance"] = 1 / vif["VIF"]
print(vif[vif["variable"] != "const"])
The constant must be included in the design matrix, otherwise the VIF values are computed around zero instead of around the mean and become misleading. However, the VIF of the constant itself is not interpreted, which is why the code removes that row from the printed table.
How to fix high VIF values
Several remedies exist, and the choice depends on the research purpose. Firstly, remove one of the highly correlated variables, preferably the one with the weakest theoretical basis. Secondly, combine variables that measure the same construct into a single index or composite score. Thirdly, center variables (subtract the mean) before creating interaction or squared terms, which reduces the artificial correlation between a variable and its own products. Fourthly, increase the sample size when possible. Finally, apply methods designed for correlated predictors, such as ridge regression or principal component regression.
However, a high VIF is not always a problem. When the purpose is prediction rather than interpretation of individual coefficients, multicollinearity matters less. Likewise, high VIF values on control variables do not affect the coefficient of the main variable of interest, provided that variable itself has a low VIF.
Why does multicollinearity appear so often in field data?
Multicollinearity is rarely a software error; it usually comes from the way the data were generated. A farm survey offers a clear illustration. A surveyor visits a rice farmer early in the morning and records land area, seed quantity, fertilizer use, and labor days. By noon, the pattern is already visible: the farmer with two hectares uses roughly twice the seed, twice the fertilizer, and twice the labor of the farmer with one hectare. All four inputs move together because all of them scale with land. When these variables enter one production function, the VIF values climb, and the separate effect of fertilizer becomes difficult to estimate.
The remedy in such a case is conceptual rather than mechanical. Expressing inputs per hectare (seed per hectare, fertilizer per hectare) removes the common scale factor, and land area can remain as a single size variable. Thus, the VIF often falls below 5 without deleting any variable, and the coefficients regain a clear economic meaning.
Calculating VIF in R and Stata
In R, the car package provides the most common function:
library(car)
model <- lm(Y ~ X1 + X2 + X3 + X4, data = df)
vif(model)
In Stata, the VIF is requested after the regression command:
regress Y X1 X2 X3 X4
estat vif
Both commands return the same values as SPSS and Python, since all of them apply the auxiliary regression formula. However, when a model contains categorical variables with more than two levels, the vif() function in R reports the generalized VIF (GVIF). In this case, GVIF1/(2·df) is compared with √5 or √10 rather than with 5 or 10.
How to report VIF in a thesis or journal article
A concise reporting sentence is usually sufficient: “Multicollinearity was assessed using the variance inflation factor. All VIF values ranged from 1.24 to 3.87 (tolerance 0.26 to 0.81), below the threshold of 5; thus, multicollinearity was not considered a concern.” When one variable exceeds the threshold, the report should state the value, the remedy applied, and whether the main conclusion changed after the remedy. Consequently, reviewers can see that the diagnostic was performed and that its implications were considered, not merely listed.
Related guides on Catatan Budi: Heteroscedasticity: detection and fixes, R-squared vs adjusted vs predicted R-squared, Regression vs path analysis vs SEM.
Frequently asked questions
What does VIF stand for?
VIF stands for variance inflation factor, namely the factor by which the variance of a coefficient is inflated because of correlation with other predictors.
What is a good VIF value?
A VIF below 10 is acceptable under the common rule, and below 5 under the stricter rule. The minimum possible VIF is 1, meaning no correlation with the other predictors.
What is the relationship between VIF and tolerance?
Tolerance is the reciprocal of VIF: tolerance = 1/VIF = 1 − Rj². A VIF of 10 corresponds to a tolerance of 0.10.
Is a VIF test needed for simple linear regression?
No. Simple regression has only one independent variable, so its VIF always equals 1. The test is relevant only for multiple regression.
Are high VIF values on dummy or interaction variables always a problem?
Not always. High values are expected for interaction terms, squared terms, and dummy variables whose reference category is small. Centering or choosing a larger reference category usually lowers the VIF without changing the substantive conclusion.
Does a high VIF make the regression coefficients biased?
No. Multicollinearity does not bias the coefficients; it inflates their variance. The estimates remain correct on average, yet each single estimate becomes unstable, so confidence intervals widen and significance tests lose power.
Should VIF be checked in logistic regression?
Yes. Multicollinearity concerns the independent variables, not the type of dependent variable. The VIF can be computed from an auxiliary linear regression of the predictors, or directly with the vif() function in R applied to a glm object, and the same thresholds of 5 and 10 apply.
Why do two variables with a correlation of 0.6 produce a low VIF?
A pairwise correlation of 0.6 corresponds to an auxiliary R² of 0.36 when only two predictors are involved, so the VIF equals 1/(1 − 0.36) = 1.56. Multicollinearity becomes serious only when one predictor is almost a linear combination of the others, which pairwise correlations alone may not reveal.
References
- Gujarati, D. N., and Porter, D. C. (2009). Basic Econometrics (5th ed.). McGraw-Hill.
- Hair, J. F., Black, W. C., Babin, B. J., and Anderson, R. E. (2019). Multivariate Data Analysis (8th ed.). Cengage.
- O’Brien, R. M. (2007). A caution regarding rules of thumb for variance inflation factors. Quality and Quantity, 41(5), 673–690.
Discussion
No comments yet. Have a question about this topic? Write it below and I will do my best to answer.