Durbin-Watson Statistic — Definition, Formula & Example
The Durbin-Watson statistic is a number between 0 and 4 that tells you whether the residuals from a regression are correlated with the residuals right before them in time. A value near 2 suggests no such pattern. Values well below 2 suggest positive autocorrelation, and values well above 2 suggest negative autocorrelation.
For ordinary least squares residuals listed in time order, the Durbin-Watson statistic is the sum of squared successive differences divided by the residual sum of squares. It tests : no first-order (lag-1) autocorrelation in the errors. The relation holds, where is the lag-1 sample autocorrelation of the residuals. You compare with tabulated lower and upper bounds and . If , reject in favor of positive autocorrelation. If , do not reject. If , the test is inconclusive. To test for negative autocorrelation, apply the same bounds to .
Key Formula
Where:
- = Durbin-Watson statistic, always between 0 and 4
- = Residual (observed minus predicted value) at time period t
- = Number of observations, in time order
Worked Example
Problem: A regression predicts a food truck's weekly revenue from the average daily high temperature in degrees Fahrenheit. The residuals for 5 consecutive weeks, in hundreds of dollars, are 2, 1, 0, −1, −2. Compute the Durbin-Watson statistic and interpret it.
Step 1: Find the numerator. Subtract each residual from the next one, square each difference, and add the results.
Step 2: Find the denominator. Square every residual and add the squares.
Step 3: Divide the numerator by the denominator.
Answer: The statistic is . This is far below 2, which points to positive autocorrelation: each week's error closely resembles the previous week's. The rule of thumb works well only for large : here the actual lag-1 autocorrelation is . Five points are too few for a formal table test, so treat this result as an illustration. With real data you would compare with and for your and number of predictors.
Why It Matters
Ordinary least squares assumes the errors are independent. When time-series residuals are autocorrelated, the reported standard errors are usually too small. As a result, p-values look more significant than they really are. Econometrics courses and forecasting work, such as modeling sales or stock prices, use the Durbin-Watson test as a routine check before anyone trusts those p-values.
Common Mistakes
Mistake: Reading a value of d near 0 as 'no autocorrelation,' as if d worked like a correlation coefficient.
Correction: The neutral value is 2, not 0. A value of d near 0 signals strong positive autocorrelation, and a value near 4 signals strong negative autocorrelation. Use to translate d into a correlation-like number.
