DurbinWatson
The Durbin-Watson statistic, commonly abbreviated as DW, is a regression diagnostic used to detect the presence of first-order autocorrelation in the residuals of a linear regression model. It was developed by James Durbin and Geoffrey Watson in 1950. The statistic is defined as DW = sum_{t=2}^n (e_t - e_{t-1})^2 / sum_{t=1}^n e_t^2, where e_t are the estimated residuals from the regression.
DW values range from 0 to 4. A value near 2 indicates little or no first-order autocorrelation.
DW is specifically a test for first-order serial correlation in the regression residuals. Its exact distribution
Interpretation guidelines emphasize that DW does not test overall independence but focuses on first-order autocorrelation. A