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: ForwardRef('Data') | ForwardRef('DataFrame') | ForwardRef('Series') | ForwardRef('ndarray') | dict | list
y_column: str
x_columns: list[str]
lags: int
Default: 1


Returns

results: Data

Serializable results.

provider: str

Provider name.

warnings: Optional[list[Warning_]]

list of warnings.

chart: Optional[Chart]

Chart object.

extra: dict[str, Any]

Extra info.


Data