Skip to main content

variance_inflation_factor

Calculate VIF (variance inflation factor), which tests for collinearity.

It quantifies the severity of multicollinearity in an ordinary least squares regression analysis. 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.

It is defined as:

VIFi=1/(1Ri2)VIF_i = 1 / (1 - R_i^2) where RiR_i is the coefficient of determination of the regression equation with the column i being the result from the i:th series being the exogenous variable.

A VIF over 5 indicates a high collinearity and correlation. Values over 10 indicates causes problems, while a value of 1 indicates no correlation. Thus VIF values between 1 and 5 are most commonly considered acceptable. In order to improve the results one can often remove a column with high VIF.

For further information see: https://en.wikipedia.org/wiki/Variance_inflation_factor

Parameters

dataset: list[Data]

Dataset to calculate VIF on

Optional: False


columns: list

The columns to calculate to test for collinearity

Optional: True


data: list[openbb_core.provider.abstract.data.Data]

Optional: False


Returns

results: list[Data]

Serializable results.


provider: None

Provider name.


warnings: Optional[list[Warning_]]

list of warnings.


chart: Optional[Chart]

Chart object.


extra: dict[str, Any]

Extra info.


On this page