Skip to main content

residual_autocorrelation

Perform Breusch-Godfrey Lagrange Multiplier tests for residual autocorrelation.

The Breusch-Godfrey Lagrange Multiplier test is a sophisticated tool for uncovering autocorrelation within the residuals of a regression model. Autocorrelation in residuals can indicate that a model fails to capture some aspect of the underlying data structure, possibly leading to biased or inefficient estimates. By specifying the number of lags, you can control the depth of the test to check for autocorrelation, allowing for a tailored analysis that matches the specific characteristics of your data. This test is particularly valuable in econometrics and time-series analysis, where understanding the independence of errors is crucial for model validity.

Parameters

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

Input dataset.

Optional: False


y_column: str

Target column.

Optional: False


x_columns: list[str]

list of columns to use as exogenous variables.

Optional: False


lags: int

Number of lags to use in the test.

Default: 1

Optional: True


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