Residuals, standard errors and the Durbin–Watson statistic are three related tools for judging a fitted regression and the estimates that come out of it. A regression describes how a dependent variable moves with one or more explanatory variables; the residuals are the gaps between what was observed and what the fitted line predicts.
Analysts in economics, finance and the sciences use the residual sum of squares to measure overall misfit, standard errors to express the uncertainty of estimates, and the Durbin–Watson statistic to check whether successive residuals are linked. The three build on one another: squared residuals feed the standard errors of a regression, and the same residuals, taken in time order, feed the autocorrelation test. All are standard in econometrics.
Residual Sum of Squares (RSS)
The residual sum of squares (RSS) adds up the squared differences between each observed value and its fitted value:
Here is an observation, the fitted value and the number of observations. Ordinary least squares chooses coefficients that make RSS as small as possible, the least squares criterion.
Fitting a line to x values 1, 2, 3, 4 and y values 2, 4, 5, 7 gives . The residuals are −0.1, 0.3, −0.3 and 0.1, so RSS is 0.20. The total sum of squares around the mean of y is 13, leaving an explained sum of 12.8 and an R-squared of about 0.985. RSS depends on units and sample size, so raw values from different data sets are not comparable. A low figure can also reflect overfitting.
Standard Error
A standard error is the standard deviation of an estimator's sampling distribution: how much an estimate would typically vary across repeated samples. For a sample mean it is estimated as:
Here is the sample standard deviation and the sample size. With and , the standard error is 2, and an approximate 95 percent confidence interval extends about 3.92 either side of the mean.
Regression coefficients have standard errors too. In the line fitted above, the residual standard error is , about 0.316, and the slope's standard error is about 0.141, giving a t-statistic of roughly 11.3. A common mistake is to confuse standard error with standard deviation, which describes the spread of individual observations and does not shrink steadily as data accumulate. The usual formulas can mislead when errors are correlated or show heteroskedasticity.
Durbin-Watson Statistic
The Durbin–Watson statistic, developed by James Durbin and Geoffrey Watson around 1950, tests regression residuals for first-order autocorrelation, meaning that each error is related to the one before it:
Here is the residual in period . The value lies between 0 and 4 and is roughly , where is the correlation between successive residuals. A value near 2 suggests none, below 2 points to positive autocorrelation and above 2 to negative.
Treating the four residuals above as consecutive periods gives 0.68 divided by 0.20, or 3.4, although four observations are far too few for a conclusion. Formal testing compares the result with lower and upper critical values, between which the test is inconclusive. It is unsuitable when a lagged dependent variable is a regressor, and it does not detect higher-order patterns; the Breusch–Godfrey test is a common alternative.
How the three measures compare
| Measure | Question answered | Reading |
|---|---|---|
| Residual sum of squares | How far are observations from the fit? | Lower means closer, for the same data |
| Standard error | How precise is an estimate? | Smaller means less sampling uncertainty |
| Durbin–Watson statistic | Are successive residuals correlated? | About 2 indicates no first-order link |
A close fit does not by itself make a model sound. Autocorrelated errors, common in time series data, can make standard errors look too small and relationships appear stronger than they are.
Ref 1100002093