statsmodels.stats.outliers_influence.variance_inflation_factor(exog, exog_idx)
[source]
variance inflation factor, VIF, for one exogenous variable
The variance inflation factor is a measure for the increase of the variance of the parameter estimates if an additional variable, given by exog_idx is added to the linear regression. It is a measure for multicollinearity of the design matrix, exog.
One recommendation is that if VIF is greater than 5, then the explanatory variable given by exog_idx is highly collinear with the other explanatory variables, and the parameter estimates will have large standard errors because of this.
Parameters: |
|
---|---|
Returns: |
vif – variance inflation factor |
Return type: |
float |
This function does not save the auxiliary regression.
See also
xxx
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.outliers_influence.variance_inflation_factor.html