In time series, today’s error tends to look like yesterday’s: a shock that raises consumption this year is still pushing it next year. That breaks the assumption that errors are uncorrelated across observations. This lesson shows what it breaks (the standard errors, not the estimate), how the Durbin-Watson statistic detects it and why it is about 2(1 − ρ̂), what to do when it is present, and a real case in which India’s consumption function has a Durbin-Watson statistic of 0.17.
The Ashanagar survey is invented. The statistics modules used one district of 60 households. Econometrics needs more households and more variables, so this is a new, larger survey of 600 households in the same imaginary district: income, spending, household size, whether the household is in the town or a village, the head’s schooling and earnings.
Because we wrote the data-generating process, we know the true answers, and every lab can show whether a regression recovers them. Household spending, in thousands of rupees a month, was generated as 1 + 0.45 × income + 0.9 × household size + 1.5 × town + an error with standard deviation 2.5. A real survey never tells you its true coefficients. This one does, so you can see how close an estimate comes.
It also holds a variable, the head’s ability, that a real survey could not observe. It is kept so that the lessons on omitted variables can show what happens when it is left out. Every figure here is illustrative, not official statistics.
Autocorrelation (or serial correlation) means the errors of different observations are correlated: Cov(ut, us) ≠ 0 for t ≠ s. The classical assumption says it is zero. The usual model, the first-order autoregressive or AR(1) scheme, says each error is part of the last plus a fresh shock:
Where does it come from? Inertia in economic series (output, prices, consumption adjust slowly); an omitted variable that is itself persistent, or the wrong functional form, whose effect sits in the error (lesson 7); data that have been smoothed or interpolated; and lagged adjustment. It matters mostly for time series, where observations have a natural order. In a random cross-section there is no order to follow.
Positive autocorrelation shows up as long runs of residuals above and then below zero; negative as an alternating zigzag; none as a patternless scatter. The lab below draws all three.
As with heteroscedasticity (lesson 9), unbiasedness needs only E(u | X) = 0, so with exogenous regressors OLS remains unbiased and consistent. What fails:
The lab simulates the model with a persistent regressor. Raise ρ and see the usual standard error fall short of the real spread and the interval’s coverage drop below 95%. Then set the regressor’s persistence φ to zero: with a regressor that has no memory, the usual standard error holds up even with strongly autocorrelated errors. Autocorrelation does its damage to the standard error when both the error and the regressor are persistent, which is the usual state of macro time series.
True model: y = 1 + 1 × x + u, with ut = ρ ut−1 + et and a regressor that follows xt = φ xt−1 + vt. Time runs left to right. The slope we want is 1.
Residuals in time order. Long runs above or below zero mean positive autocorrelation; a zigzag means negative.
Each residual against the previous one. The slope of the line is ρ̂.
DW = 0.68 against dL = 1.5 and dU = 1.7: Reject no autocorrelation: evidence of positive autocorrelation.
OLS is still unbiased, but the usual standard error (0.132) is too small against the real spread of 0.224: the 95% interval holds the truth 74.8% of the time and the 5% test wrongly rejects 25.3% of the time. Prais-Winsten estimates ρ, transforms the data and gives an interval that is honest (93.8%), with a tighter slope (0.132).
The Durbin-Watson (DW) statistic compares each residual with the one before it:
The first sum is Σe² without the first term e₁², and the second is Σe² without the last term eT². So the numerator is 2Σe² − e₁² − eT² − 2Σetet−1. Divide by Σe²:
The last fraction is almost ρ̂, the slope of et on et−1, whose denominator Σet−1² differs from Σe² only by an end term. The middle term is small when T is large. So DW ≈ 2(1 − ρ̂): 2 when ρ̂ = 0, near 0 when ρ̂ is near 1, near 4 when ρ̂ is near −1.
Regress the log of India’s private consumption on the log of GDP for 1960 to 2025 (66 years). Σe² = 0.06986, Σetet−1 = 0.0607, and the two end terms add to 0.006805. So DW = 2 − 0.0974 − 2 × 0.8689 = 0.1648, and the function gives 0.1648. The approximation 2(1 − ρ̂) with ρ̂ = 0.9372 is 0.1257.
DW has no single critical value. Its distribution depends on the regressors, so tables give two bounds, dL and dU, for each sample size and number of regressors. The decision runs along the line from 0 to 4:
| DW lies in | Decision (H₀: no first-order autocorrelation) |
|---|---|
| 0 to dL | Reject: positive autocorrelation |
| dL to dU | Inconclusive |
| dU to 4 − dU | Do not reject: no evidence of autocorrelation |
| 4 − dU to 4 − dL | Inconclusive |
| 4 − dL to 4 | Reject: negative autocorrelation |
Two caveats the exam asks about. The test needs a constant in the regression and non-random regressors; with a lagged dependent variable among the regressors DW is biased towards 2, so it can miss autocorrelation that is there (use Durbin’s h or the Breusch-Godfrey test). And it examines only first-order autocorrelation.
The Breusch-Godfrey (BG) test fixes DW’s weaknesses. Regress the residuals on the original regressors and p lagged residuals, and take LM = nR² of that regression, which is chi-square with p degrees of freedom under H₀ of no autocorrelation up to order p. It allows higher orders, lagged dependent variables and other regressors, and gives a p-value instead of a zone.
The Ljung-Box statistic tests whether a whole set of autocorrelation coefficients (of residuals or of a series) is jointly zero; it is used mostly in time-series modelling (lesson 16). A runs test counts how often the residuals change sign: too few runs means positive autocorrelation. Only DW, BG and the Ljung-Box appear regularly in exams.
The consumption function of macroeconomics: regress the log of India’s private consumption on the log of GDP, 1960 to 2025 (World Bank, constant rupees, read 2026-10-24). The slope is 0.88, with a standard error of 0.0041 and R² = 0.9986. Everything looks wonderful. But the Durbin-Watson statistic is 0.165, ρ̂ = 0.937, and the Breusch-Godfrey test gives LM = 54.1 (p < 0.0001). The residuals move in long, slow swings, which is autocorrelation as strong as it gets.
That standard error of 0.0041 cannot be believed. Prais-Winsten estimation (which models the autocorrelation) gives a slope of 0.875 with a standard error of 0.0183 and ρ̂ = 0.961, more than four times as large, and Cochrane-Orcutt gives 0.895 with a standard error of 0.0172. Differencing the logs (annual growth rates, 65 observations) gives a slope of 0.772 with a standard error of 0.0526, R² = 0.774 and a Durbin-Watson statistic of 1.78 (Breusch-Godfrey p = 0.47): the autocorrelation is gone, and the elasticity of consumption growth to income growth is about 0.77.
Why is the autocorrelation so strong? Both series trend upwards through the whole period, and regressing a trending series on another trending series can produce a high R² and a low DW even when nothing links them. Economic theory says consumption and income are related, but the same pattern is the signature of a spurious regression (lesson 15), where DW well below R² is the warning (the Granger-Newbold rule of thumb), and whether these two series really share a long-run relationship is a question for cointegration tests (lesson 16), which in these data do not find one.
The lagged dependent variable. A model such as yt = α + βxt + γyt−1 + ut with autocorrelated u has yt−1 correlated with ut−1, hence with the error: a regressor correlated with the error. Then OLS is biased and inconsistent, not just inefficient, and DW is biased towards 2. That is a problem of endogeneity (lesson 11).
Autocorrelation leaves OLS unbiased and consistent (exogenous regressors) but inefficient, with invalid usual standard errors. Detect it with Durbin-Watson (about 2(1 − ρ̂), zones set by dL and dU) or Breusch-Godfrey. Fix it by Cochrane-Orcutt or Prais-Winsten, or keep OLS and use Newey-West standard errors.
Definitions and one-step calculations: a t statistic, an R², which assumption is which. Most CUET and JNU questions sit here.
Restricted against unrestricted regressions, reading output, and statement questions, up to GATE and IIT JAM level.
These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.
This lesson has a short question set, because few past papers ask about autocorrelation; the exercises above cover the calculations. The matching questions on Durbin-Watson, Ljung-Box and Breusch-Godfrey are in the test atlas.