Citation and evidence

Multicollinearity

20 min full readUpdated 19 references

This article's verification

Report a problem with this article

Edit article
More

Use this article

Raw MarkdownExplore connections

Improve this page

Revision historyDiscuss this article

Topics

InterpretabilityMachine LearningStatistics

Cite this article

Multicollinearity is the condition in which two or more predictor variables in a regression model are strongly correlated with, or linearly related to, one another [2][4]. It leaves the model able to predict but makes the separate effect of each correlated predictor hard to estimate: coefficient estimates become unstable, their standard errors grow, and a variable that matters can look insignificant [3][4]. The problem is old in statistics and econometrics, where the term goes back to Ragnar Frisch in 1934 [1], and it reappears in machine learning whenever people read meaning into model coefficients or into feature importance scores [14][15][17]. The standard diagnostic is the variance inflation factor (VIF), and the standard remedies include dropping or combining variables, collecting different data, and ridge regression and other penalized estimators [3][7][10][13].

Scatter plot of estimated coefficients a1 and a2: a tight black cluster near (2, 4) and a long red diagonal spread
Coefficient estimates from 1,000 linear fits: the true values a1 = 2 and a2 = 4 are estimated reliably when the predictors are uncorrelated (black) but unreliably when they are correlated (red). Demetri Pananos, via Wikimedia Commons, CC BY-SA 4.0.

Definition and terminology

In a multiple linear regression with response $y$, design matrix $X$ (one column per predictor) and coefficient vector $\beta$, ordinary least squares estimates $\beta$ as $\hat\beta = (X^\top X)^{-1} X^\top y$ [10]. When the columns of $X$ are nearly linearly dependent, $X^\top X$ is nearly singular, the estimating equations are ill-conditioned, and small changes in the data can produce large changes in $\hat\beta$ [4].

Usage of "collinearity" and "multicollinearity" varies. Dormann and colleagues treat the two words as synonyms for predictors that are linearly related [4]. James, Witten, Hastie and Tibshirani's An Introduction to Statistical Learning uses "collinearity" for two or more closely related predictors and reserves "multicollinearity" for collinearity among three or more variables that can exist even when no pair of variables is highly correlated [3]. Penn State's applied regression course defines multicollinearity as two or more predictors being moderately or highly correlated with one another [2].

A distinction is also drawn by degree:

KindWhat it meansConsequence
Perfect (exact)One predictor is an exact linear function of others, such as age and date of birth [4]Dormann et al. describe it as a case of model misspecification: one variable needs to be omitted [4]
Imperfect (near)Predictors are strongly but not exactly relatedCoefficients can be estimated, but with inflated standard errors and unstable values [4]

Expanded article table

Origin of the term

According to the Earliest Known Uses of Some of the Words of Mathematics (entry contributed by John Aldrich), "multicollinearity" is due to Ragnar Frisch, as a contraction of his phrase "multiple collinearity", and the Oxford English Dictionary quotes his Statistical Confluence Analysis (1934) [1]. Frisch meant a situation in which several linear relationships hold among variables, studied within a multi-equation errors-in-variables model [1]. When interest in that model faded, the word survived with a narrower meaning: a regression design matrix of deficient rank. The change can be seen in Richard Stone's 1954 study of consumer expenditure in the United Kingdom. Aldrich notes that in this sense the term is "hardly ideal", since it implies more than one relationship among the columns of the design matrix, and that several writers have suggested dropping it or replacing it with "collinearity" [1].

"What is Multicollinearity? Extensive video + simulation!", video from zedstatistics, published January 24, 2019. Watch on YouTube.

Where multicollinearity comes from

Penn State's course separates two types [2]:

  • Structural multicollinearity is created by the analyst, for example by building a predictor $x^2$ from an existing predictor $x$ in a polynomial model.
  • Data-based multicollinearity comes from poorly designed experiments, reliance on purely observational data, or an inability to manipulate the system being studied. The course calls this the more troublesome type and the one met most often, since much regression work uses observational data in which the researcher cannot control the predictors [2].

Dormann et al. add a finer breakdown from ecology [4]. Collinearity is often intrinsic: several measured variables are different manifestations of one underlying process (furca length, body length and weight of a collembolan all reflect body size). It arises in compositional data, such as soil fractions that sum to 100%, where more sand necessarily means less clay or silt. And it can be incidental, appearing by chance when samples are small, when not every combination of conditions occurs in the study area, or when very many variables are measured [4].

A common machine-learning case is categorical encoding. An Introduction to Statistical Learning codes a categorical predictor with one fewer dummy variable than the number of levels, the level without a dummy serving as the baseline [3]. The scikit-learn OneHotEncoder offers a drop option that removes one category per feature, which its documentation describes as useful "in situations where perfectly collinear features cause problems, such as when feeding the resulting data into an unregularized linear regression model", while warning that dropping a category can bias penalized models [12]. AI Wiki's article on one-hot encoding covers this "dummy variable trap" in more detail.

Effects on regression

Inflated variance of coefficients

For the $j$th coefficient in a least squares fit, O'Brien (2007) writes the sampling variance as

σ2(bj)=σε2∑i(xij−xˉj)2⋅11−Rj2,\sigma^2(b_j) = \frac{\sigma_\varepsilon^2}{\sum_i (x_{ij} - \bar x_j)^2} \cdot \frac{1}{1 - R_j^2},

where $\sigma_\varepsilon^2$ is the residual variance, the first denominator is the sum of squared deviations of predictor $j$, and $R_j^2$ is the squared multiple correlation from regressing predictor $j$ on all the other predictors [9]. The second factor is the variance inflation factor: as predictor $j$ becomes more predictable from the others, $R_j^2$ approaches 1 and the variance grows without bound [6][9].

Hoerl and Kennard gave a whole-vector version in 1970. With $X^\top X$ in correlation form and eigenvalues $\lambda_1 \ge \dots \ge \lambda_p > 0$, the expected squared distance between the least squares estimate and the true coefficient vector is $\sigma^2 \sum_{i=1}^{p} 1/\lambda_i$, which is at least $\sigma^2/\lambda_{\min}$ [10]. One or more small eigenvalues, which is what near-linear dependence among the columns produces, therefore push the estimate far from the truth on average. They added that coefficients that are large in absolute value "have been observed by all who have tackled live nonorthogonal data problems" [10].

Coefficients that depend on the model

Penn State's course illustrates the practical effects with blood-pressure data on 20 individuals, in which weight and body surface area (BSA) have a correlation of 0.875 [5]:

ModelCoefficient on BSAStandard error of the weight coefficient
BSA only34.44(not in model)
Weight only(not in model)0.0930
Weight and BSA5.830.193

Expanded article table

Adding weight cut the estimated effect of one square meter of BSA from 34.4 mm Hg to 5.83 mm Hg and roughly doubled the standard error on weight [5]. BSA was strongly significant on its own, but its p-value rose to 0.350 once weight was in the model [5]. The course lists the general pattern: under multicollinearity, a coefficient's value depends on which other predictors are included, precision falls as more predictors are added, and hypothesis tests on a single coefficient can reach different conclusions in different models [2].

An Introduction to Statistical Learning gives a similar example from a credit-card data set [3]. Regressing balance on age and credit limit gives a precise limit coefficient. Replacing age with credit rating, which is highly collinear with limit, increases the standard error of the limit coefficient by a factor of 12 and raises its p-value to 0.701, so the importance of limit is "masked" [3]. The authors show why with a contour plot of the residual sum of squares: for the collinear pair, the low-error region is a long, narrow valley, so a small change in the data can move the best-fitting pair of coefficients anywhere along it [3]. Larger standard errors shrink t-statistics, which reduces the power of the test for a non-zero coefficient [3].

O'Brien summarizes the classic list of symptoms from the regression literature: inflated variance, models in which no variable is significant even though $R^2$ is large, estimates with the "incorrect sign" and implausible magnitudes, wide swings in estimates after small changes in the data, and, in extreme cases, a model that cannot be solved numerically [9]. Penn State notes the numerical side as well: severe multicollinearity drives the determinant of $X^\top X$ toward zero, which can cause serious roundoff error when solving the normal equations [8].

Prediction is often unaffected

Multicollinearity mainly damages interpretation of individual coefficients, not predictions made within the range of the data. In the blood-pressure example, predicted blood pressure for a person weighing 92 kg with a BSA of 2 square meters was 112.7, 114.1 and 112.8 mm Hg across the three models, and the course concludes that a model can still be used to predict within its scope [5]. The same source warns that the usual reading of a slope, the change in the response when one predictor rises and all others are held constant, makes little sense when the predictors move together [5]. In the credit example, dropping the rating variable left the VIFs near 1 while $R^2$ fell only from 0.754 to 0.75 [3].

The exception is prediction into data where the correlation pattern differs. Dormann et al. call collinearity a severe problem when a model trained on data from one region or time is applied to another with a different or unknown collinearity structure, and their simulations found that every method they tested made worse predictions when the collinearity structure changed [4].

Detecting multicollinearity

Correlation matrix

The simplest check is the correlation matrix of the predictors: a large off-diagonal entry flags a highly correlated pair [3]. It cannot catch every case, because a linear dependence can involve three or more variables while every pairwise correlation stays modest; Penn State gives the example $x_3 = 2x_1 + 5x_2 + \text{error}$ [6]. Dormann et al. report that the "folk lore" threshold of 0.7 for the absolute correlation between two predictors was an appropriate indicator of when collinearity begins to severely distort estimation and prediction in their simulations [4].

Variance inflation factor

The variance inflation factor for predictor $j$ is

VIFj=11−Rj2,\text{VIF}_j = \frac{1}{1 - R_j^2},

with $R_j^2$ the coefficient of determination from regressing $x_j$ on the remaining predictors [3][6]. It measures how much the variance of $\hat\beta_j$ is inflated relative to a design in which $x_j$ is uncorrelated with the other predictors; its minimum value of 1 means no collinearity at all [3][6]. The reciprocal, $1 - R_j^2$, is called the tolerance [9]. Equivalently, the VIFs are the diagonal elements of the inverse of the predictors' correlation matrix [4]. In the credit example, the VIFs for age, rating and limit were 1.01, 160.67 and 160.59 [3]. In Python, the statsmodels library computes it with variance_inflation_factor [11].

Published cut-offs vary:

SourceRule of thumb
An Introduction to Statistical LearningVIF above 5 or 10 indicates a problematic amount of collinearity [3]
Penn State STAT 462VIF above 4 warrants investigation; above 10 signals serious multicollinearity requiring correction [6]
statsmodels documentation"One recommendation" is that a VIF above 5 means the variable is highly collinear with the others [11]
Dormann et al. (2013), summarizing earlier literatureVIF above 10, meaning variance more than 10 times that of orthogonal predictors [4]

Expanded article table

O'Brien argued that these rules are often misapplied [9]. The variance of a coefficient also depends on sample size, the residual variance and the spread of the predictor, so a high VIF can be offset by a large sample. In his words, "Values of the VIF of 10, 20, 40, or even higher do not, by themselves, discount the results of regression analyses," nor do they by themselves call for dropping variables, switching to ridge regression or building an index [9]. He also discusses the term "micronumerosity", which Arthur Goldberger introduced in his 1991 A Course in Econometrics not to add it to the vocabulary of statistics but to contest the focus on multicollinearity, observing that econometrics texts devote many pages to it and say little about small sample size [9].

Eigenvalue diagnostics

Several diagnostics work from the eigenvalues of the predictors' correlation matrix [4]. Its determinant (the product of the eigenvalues) is near 0 under strong collinearity and near 1 when there is none. Condition indices are the square roots of the ratio of the largest eigenvalue to each eigenvalue in turn, and the largest of them is the condition number; values of 30 or more are usually called large, a convention Dormann et al. attribute to Belsley, Kuh and Welsch's Regression Diagnostics (1980) and other texts [4]. Variance-decomposition proportions show how much of each coefficient's variance is tied to each eigenvalue, with the guideline that no variable should attribute more than 0.5 to any one of them [4]. Dormann et al. note that the literature is inconsistent about what "condition index" and "condition number" mean [4].

Remedies

Dropping or combining predictors

The simplest fix is to remove one of the offending predictors. Because collinearity implies that the information it carries is largely redundant given the others, the fit usually suffers little [3]. In the blood-pressure data, Penn State's course dropped BSA and pulse, and adjusted $R^2$ fell only from 99.44% to 98.97% [6]. Which variable to keep is often a practical choice, such as keeping whichever measurement is easier to collect [6]. A second option is to combine the collinear variables into one predictor, for example by averaging standardized versions of credit limit and rating into a single measure of creditworthiness [3]. Dormann et al. group such approaches with threshold-based pre-selection and the clustering of predictors [4].

Collecting different data

Data-based multicollinearity can sometimes be reduced by collecting more data under different conditions [7]. In a Penn State example, a 23-patient subset in which two cognitive test scores had a correlation of 0.99 gave VIFs of 49.3 and 50.6; with the full 69-patient data set, the correlation fell to 0.698 and the VIFs became acceptable [7]. The course stresses that the new data must actually break the correlation, since collecting "more of the same kind of data" does not reduce the multicollinearity itself [7]. O'Brien adds that unless collinearity is perfect, more cases of the same sort still shrink coefficient variances and narrow confidence intervals [9].

Centering for structural multicollinearity

When a model includes a predictor and its square, subtracting the mean before squaring removes most of the induced correlation. In Penn State's example, the correlation between oxygen uptake and its square was 0.995 and both VIFs were 99.9; after centering, the correlation was 0.219 and the VIFs were 1.05, while the fitted regression function stayed equivalent [8].

Ridge regression and other shrinkage

Hoerl and Kennard developed ridge regression in their 1970 paper for exactly this situation, building on an estimator Hoerl had first suggested in 1962 [10]. Their abstract states that least squares estimates "have a high probability of being unsatisfactory, if not incorrect, if the prediction vectors are not orthogonal", and proposes adding small positive quantities to the diagonal of $X^\top X$ [10]:

β^(k)=(X⊤X+kI)−1X⊤y,k>0.\hat\beta(k) = (X^\top X + kI)^{-1} X^\top y, \qquad k > 0.

They proved that there always exists some $k > 0$ for which the ridge estimate has smaller expected squared error than least squares, by accepting a little bias in exchange for a larger reduction in variance, and they introduced the ridge trace, a two-dimensional display of the effects of nonorthogonality [10]. The scikit-learn documentation describes the same effect in practice: regularization improves the conditioning of the problem and reduces the variance of the estimates, and with ridge the weight is shared between correlated predictors so that neither gets a large coefficient [14]. See shrinkage and regularization for the wider family.

The lasso behaves differently. Zou and Hastie noted that when a group of variables has very high pairwise correlations, the lasso "tends to select only one variable from the group and does not care which one is selected", and that for $n > p$ problems with highly correlated predictors its prediction performance had been observed to be dominated by ridge [13]. Their elastic net, which mixes L1 and L2 penalties, has a "grouping effect" in which strongly correlated predictors tend to enter or leave the model together [13]. scikit-learn's documentation shows a lasso fit dropping one of two correlated wage predictors (age and work experience) and cautions that this selection "is unstable for correlated features, and should be interpreted with caution" [14].

Principal components and partial least squares

Principal components regression (PCR) replaces the original predictors with the first few principal components and regresses the response on them by least squares [3]. Principal component axes are uncorrelated, so they can stand in for the original collinear variables [4]. It is not a feature selection method, because each component is a combination of all the original predictors; An Introduction to Statistical Learning notes that PCR is closely related to ridge regression and that ridge can be thought of as a continuous version of PCR [3]. Because the components are chosen without looking at the response, there is no guarantee that they are the directions most useful for prediction; partial least squares (PLS) addresses this by choosing directions that relate to the response as well as the predictors [3]. Dormann et al. discuss such approaches under latent-variable methods, which construct unobserved variables underlying the observed collinear ones [4].

What comparisons found

Dormann et al. compared many of these approaches on simulated data with five predictor-response relationships and eight levels of collinearity [4]. Methods designed specifically for collinearity, such as latent-variable methods and tree-based models, did not outperform a standard generalized linear model combined with threshold-based pre-selection. The authors highlighted GLMs combined with penalized methods, particularly ridge, and concluded that subject-matter knowledge in choosing variables and the use of less sensitive methods reduce the problem "but cannot ultimately solve" it [4]. O'Brien warned that the usual cures (deleting variables, ridge regression, building indexes) "can create problems more serious than those they solve" [9].

Multicollinearity in machine learning

Coefficients as importance scores

Using the coefficients of a linear model as importance scores inherits all of the problems above. scikit-learn's guide to interpreting linear-model coefficients shows that in a wage data set the age and experience coefficients vary strongly across cross-validation folds because the two features move together, so their separate effects are hard to tease apart [14]. In the high-dimensional setting with more features than observations, An Introduction to Statistical Learning calls the multicollinearity problem "extreme": any variable can be written as a linear combination of the others, so one can never know exactly which variables truly predict the outcome, and the selected model is only one of many that would predict about as well [3].

Permutation importance

Permutation importance scores a feature by how much performance drops when its values are shuffled. The scikit-learn user guide notes that when two features are correlated and one is permuted, the model can still get the information through the other, so both receive a lower importance than they deserve [15]. Its worked example trains a random forest on the Wisconsin breast cancer data, which reaches about 97% test accuracy, yet permuting any single feature of the training set reduces accuracy by at most 0.012, suggesting that no feature matters [16]. The documentation's remedy is to cluster features hierarchically on their Spearman rank correlations, keep one feature per cluster, and recompute; the reduced model still scored 0.97 [16].

The opposite bias can also occur. Strobl, Boulesteix, Kneib, Augustin and Zeileis (2008) found that random forest variable importance measures are biased toward correlated predictors, through two mechanisms: correlated predictors are preferred during tree building, and the unconditional permutation scheme gives them an extra advantage [17]. They proposed a conditional permutation importance that permutes a variable within a partition of the feature space defined by the fitted forest [17]. Hooker, Mentch and Zhou (2021) argued more broadly that permute-and-predict methods, including permutation importance and partial dependence plots, break the dependence between features and force the model to extrapolate into regions with little or no data, which can greatly over-emphasize correlated features; they recommended approaches that involve additional modeling, measuring the change in performance after the effects of the features under study are removed [18].

Shapley-value explanations

Shapley-value methods such as SHAP face a related issue. Aas, Jullum and Løland (2021) pointed out that Kernel SHAP, like several other methods, assumes the features are independent, which "may give very wrong explanations", even for a simple linear model [19]. They extended Kernel SHAP to handle dependent features and proposed explaining predictions through groups of dependent variables [19]. AI Wiki's article on feature importances compares these methods.

Continue reading

More from See also

More to read

Topics:InterpretabilityMachine LearningStatistics

References

  1. ^1 ^2 ^3 ^4Aldrich, John (entry contributor); Miller, Jeff (compiler). "Earliest Known Uses of Some of the Words of Mathematics (M)", entry "Multicollinearity". MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk/...mathword
  2. ^1 ^2 ^3 ^4 ^5Penn State Eberly College of Science. "10.4 - Multicollinearity". STAT 462: Applied Regression Analysis. online.stat.psu.edu/...177
  3. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15 ^16 ^17 ^18 ^19 ^20James, Gareth; Witten, Daniela; Hastie, Trevor; Tibshirani, Robert. "An Introduction to Statistical Learning with Applications in R" (Sections 3.3, 6.3 and 6.4.4). Springer, 2013. statlearning.com
  4. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15 ^16 ^17 ^18 ^19 ^20 ^21 ^22Dormann, Carsten F.; Elith, Jane; Bacher, Sven; et al. "Collinearity: a review of methods to deal with it and a simulation study evaluating their performance". Ecography 36(1): 27-46, 2013. doi.org/...j.1600-0587.2012.07348.x
  5. ^1 ^2 ^3 ^4 ^5Penn State Eberly College of Science. "10.6 - Highly Correlated Predictors". STAT 462: Applied Regression Analysis. online.stat.psu.edu/...179
  6. ^1 ^2 ^3 ^4 ^5 ^6 ^7Penn State Eberly College of Science. "10.7 - Detecting Multicollinearity Using Variance Inflation Factors". STAT 462: Applied Regression Analysis. online.stat.psu.edu/...180
  7. ^1 ^2 ^3 ^4Penn State Eberly College of Science. "10.8 - Reducing Data-based Multicollinearity". STAT 462: Applied Regression Analysis. online.stat.psu.edu/...181
  8. ^1 ^2Penn State Eberly College of Science. "10.9 - Reducing Structural Multicollinearity". STAT 462: Applied Regression Analysis. online.stat.psu.edu/...182
  9. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9O'Brien, Robert M. "A Caution Regarding Rules of Thumb for Variance Inflation Factors". Quality & Quantity 41(5): 673-690, 2007. doi.org/...s11135-006-9018-6
  10. ^1 ^2 ^3 ^4 ^5 ^6 ^7Hoerl, Arthur E.; Kennard, Robert W. "Ridge Regression: Biased Estimation for Nonorthogonal Problems". Technometrics 12(1): 55-67, February 1970. doi.org/...00401706.1970.10488634
  11. ^1 ^2statsmodels developers. "statsmodels.stats.outliers_influence.variance_inflation_factor". statsmodels 0.15.0 documentation. statsmodels.org/...uence.variance_inflation_factor
  12. ^scikit-learn developers. "OneHotEncoder". scikit-learn 1.9.1 documentation. scikit-learn.org/...rn.preprocessing.OneHotEncoder
  13. ^1 ^2 ^3Zou, Hui; Hastie, Trevor. "Regularization and variable selection via the elastic net". Journal of the Royal Statistical Society Series B 67(2): 301-320, 2005. doi.org/...j.1467-9868.2005.00503.x
  14. ^1 ^2 ^3 ^4scikit-learn developers. "Common pitfalls in the interpretation of coefficients of linear models". scikit-learn 1.9.1 documentation. scikit-learn.org/...del_coefficient_interpretation
  15. ^1 ^2scikit-learn developers. "5.2. Permutation feature importance". scikit-learn 1.9.1 user guide. scikit-learn.org/...permutation_importance
  16. ^1 ^2scikit-learn developers. "Permutation Importance with Multicollinear or Correlated Features". scikit-learn 1.9.1 documentation. scikit-learn.org/...tion_importance_multicollinear
  17. ^1 ^2 ^3Strobl, Carolin; Boulesteix, Anne-Laure; Kneib, Thomas; Augustin, Thomas; Zeileis, Achim. "Conditional variable importance for random forests". BMC Bioinformatics 9: 307, 2008. doi.org/...1471-2105-9-307
  18. ^Hooker, Giles; Mentch, Lucas; Zhou, Siyu. "Unrestricted permutation forces extrapolation: variable importance requires at least one more model, or there is no free variable importance". Statistics and Computing 31(6): 82, 2021. doi.org/...s11222-021-10057-z (preprint: arxiv.org/...1905.03151)
  19. ^1 ^2Aas, Kjersti; Jullum, Martin; Løland, Anders. "Explaining individual predictions when features are dependent: More accurate approximations to Shapley values". Artificial Intelligence 298: 103502, 2021. arxiv.org/...1903.10464

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

2 revisions · v2 · 3,952 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Reviewer note: Independent fact-check before publication on November 18, 2026: 74 claims checked against 19 cited and independent sources; 0 material and 3 minor corrections applied before publication.

Cite this page: AI Wiki. "Multicollinearity." aiwiki.ai, updated 18 Nov 2026, fact-checked 18 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/multicollinearity

Edit article