ArticleslgStudy

mathematics

Variance inflation factor

Variance inflation factor is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Variance inflation factor rather than just read about it. In short: 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 coefficien…

Key takeaways

  • Variance inflation factor belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Variance inflation factor to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Variance inflation factor from memory before moving on to harder problems.

Reference excerpt

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. 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(X′X)−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, σ2); 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:

var^(β̂j)=s2(n−1)var^(Xj)⋅11−Rj2, 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) and β̂j are the coefficient estimates, id est, the estimates of βj. 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 var^(Xj): 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).

var^(β̂j)=s2[(XTX)−1]jj Now let r=XTX, and without losing generality, we reorder the columns of X to set the first column to be Xj

r−1=[rj,jrj,−jr−j,jr−j,−j]−1 rj,j=XjTXj,rj,−j=XjTX−j,r−j,j=X−jTXj,r−j,−j=X−jTX−j. By using Schur complement, the element in the first row and first column in r−1 is,

r1,1−1=[rj,j−rj,−jr−j,−j−1r−j,j]−1 Then we have,

var^(β̂j)=s2[(XTX)−1]jj=s2r1,1−1=s2[XjTXj−XjTX−j(X−jTX−j)−1X−jTXj]−1=s2[XjTXj−XjTX−j(X−jTX−j)−1(X−jTX−j)(X−jTX−j)−1X−jTXj]−1=s2[XjTXj−β̂∗jT(X−jTX−j)β̂∗j]−1=s21RSSj=s2(n−1)var^(Xj)⋅11−Rj2 Here β̂∗j is the coefficient of regression of dependent variable Xj over covariate X−j. RSSj 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

X1=α0+α2X2+α3X3+⋯+αkXk+ε where α0 is a constant and ε is the error term.

Step two Then, calculate the VIF factor for α̂i with the following formula :

VIFi=11−Ri2 where R2i is the coefficient of determination of the regression equation in step one, with Xi 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 VIF⁡(α̂i). A rule of thumb is that if VIF⁡(α̂i)>10 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.

Implementation vif function in the car R package ols_vif_tol function in the olsrr R package PROC REG in SAS System variance_inflation_factor function in statsmodels Python package estat vif in Stata r.vif addon for GRASS GIS vif (non categorical) and gvif (categorical data) functions in StatsModels Julia programing language

References

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Variance inflation factor

Start with the simplest possible case. Write down what Variance inflation factor claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Variance inflation factor before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Variance inflation factor ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Variance inflation factor

In research
Variance inflation factor appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Variance inflation factor in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Variance inflation factor is common in secondary-school and first-year university syllabi. It links to neighbouring topics Regression diagnostics, Statistical deviation and dispersion, Statistical ratios, so understanding it makes those chapters shorter.
In everyday life
Look for Variance inflation factor outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Variance inflation factor” →

How to study Variance inflation factor in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Variance inflation factor means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Variance inflation factor out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Variance inflation factor in simple terms?

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 tha…

Why does Variance inflation factor matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Variance inflation factor?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Variance inflation factor.

Tags

  • Regression diagnostics
  • Statistical deviation and dispersion
  • Statistical ratios

Keep exploring