Skip to main content

autocorrelation

Perform Durbin-Watson test for autocorrelation.

The Durbin-Watson test is a widely used method for detecting the presence of autocorrelation in the residuals from a statistical or econometric model. Autocorrelation occurs when past values in the data series influence future values, which can be a critical issue in time-series analysis, affecting the reliability of model predictions. The test provides a statistic that ranges from 0 to 4, where a value around 2 suggests no autocorrelation, values towards 0 indicate positive autocorrelation, and values towards 4 suggest negative autocorrelation. Understanding the degree of autocorrelation helps in refining models to better capture the underlying dynamics of the data, ensuring more accurate and trustworthy results.

Parameters

data: ForwardRef('Data') | ForwardRef('DataFrame') | ForwardRef('Series') | ForwardRef('ndarray') | dict | list
y_column: str
x_columns: list[str]


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