Skip to content
We use only essential cookies to keep you signed in and remember your preferences. See our Cookie Policy.
TestStop
MocksPracticeResourcesIndiaBlogPricing
Sign in
Resources › Econometrics › 10. Autocorrelation
Econometrics · Lesson 10 of 18

Autocorrelation and the Durbin-Watson statistic

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.

← Econometrics moduleLesson 10 of 18 · about 50 minutes
1Multiple regression2Matrix form and Gauss-Markov3t and F tests4R² and adjusted R²5Dummies and interactions6Functional forms7Misspecification8Multicollinearity9Heteroscedasticity10Autocorrelation11Instrumental variables12Simultaneous equations13Panel data14Logit and probit15Unit roots16ARMA, VAR and cointegration17Test Atlas18Hard problems
A question to hold on to
In a multiple regression model, the Durbin-Watson test statistic is 1.3, while the critical lower and upper values are 1.5 and 1.7 respectively. This implies that: (A) there is positive autocorrelation; (B) there is no positive autocorrelation; (C) the test is inconclusive about autocorrelation; (D) there is heteroscedasticity but no autocorrelation.
Delhi School of Economics 2018Solved at the end ↓
New here?What is the Ashanagar survey?The invented household survey behind this page's examples: 600 households, generated from a model whose true coefficients we publish.

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.

Households
600
Share in the town
41%
Mean monthly income
₹15.4 thousand
Mean monthly spending
₹12.6 thousand
Mean schooling of the head
8.2 years

How the module uses it →

In this guide
Lesson · about 50 minutes
  1. Errors that follow each other
  2. What it breaks
  3. The Durbin-Watson statistic
  4. Other tests
  5. Real data: India's consumption
  6. Fixing it
  7. The opening question, solved
  8. The lesson on one screen
  9. Check yourself
  10. Past papers, by level
01
The idea

Errors that follow each other

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:

AR(1) errors
ut​=ρut−1​+εt​,Var(ut​)=1−ρ2σε2​​
ρ is the autocorrelation coefficient, between −1 and 1 for a stable process. Positive ρ means runs of positive and negative errors; negative ρ means a zigzag. e is white noise: uncorrelated, constant variance.

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.

02
Interactive

What it breaks

As with heteroscedasticity (lesson 9), unbiasedness needs only E(u | X) = 0, so with exogenous regressors OLS remains unbiased and consistent. What fails:

  • OLS is no longer efficient. It ignores the information in the last residual about the next. Prais-Winsten estimation, which uses it, has a smaller variance.
  • The usual standard errors are wrong, because the formula assumes uncorrelated errors. With positive autocorrelation and a persistent regressor they are typically too small, so t statistics are too large and R² is overstated: spurious significance.

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.

102030405060−3−2−1123tresidual

Residuals in time order. Long runs above or below zero mean positive autocorrelation; a zigzag means negative.

−3−2−1123−3−2−1123previous residualresidual

Each residual against the previous one. The slope of the line is ρ̂.

Durbin-Watson statistic0.68
ρ̂ from the residuals0.66
2 (1 − ρ̂), the approximation0.679
Breusch-Godfrey p-value (1 lag)below 0.0001
The Durbin-Watson zone

DW = 0.68 against dL = 1.5 and dU = 1.7: Reject no autocorrelation: evidence of positive autocorrelation.

Real spread of the OLS slope (400 series)0.224
Usual standard error, on average0.132
95% interval holds the truth: usual74.8%
5% test wrongly rejects the truth25.3%
Spread of the Prais-Winsten slope0.132
95% interval holds the truth: Prais-Winsten93.8%
Average DW0.74
Breusch-Godfrey rejects no autocorrelation99.8%
What it shows

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).

Pause and predict
With positive first-order autocorrelation in the errors and exogenous regressors, the OLS estimator of the slope is
03
The classic test

The Durbin-Watson statistic

The Durbin-Watson (DW) statistic compares each residual with the one before it:

Durbin-Watson
DW=∑t=1T​et2​∑t=2T​(et​−et−1​)2​≈2(1−ρ^​)
Between 0 and 4. 2 means no first-order autocorrelation, near 0 positive, near 4 negative. ρ̂ is the first-order autocorrelation of the residuals.
Derive it

Why the Durbin-Watson statistic is about 2(1 − ρ̂)

We want to show
DW = Σ(eₜ − eₜ₋₁)² ÷ Σeₜ² equals 2 − (e₁² + eT²) ÷ Σe² − 2 Σeₜeₜ₋₁ ÷ Σe², which is close to 2(1 − ρ̂) in all but the shortest series.
  1. 1
    Expand the square.
    t=2∑T​(et​−et−1​)2=t=2∑T​et2​+t=2∑T​et−12​−2t=2∑T​et​et−1​
  2. 2
    Compare the sums of squares with the full one.

    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²:

    DW=2−∑et2​e12​+eT2​​−2∑et2​∑et​et−1​​
  3. 3
    Recognise the last term.

    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.

  4. 4
    Check it on India.

    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.

Step 1 of 4
So
DW near 2 means no first-order autocorrelation, well below 2 means positive, well above 2 means negative. The exact distribution depends on the data, which is why the test has an inconclusive zone between two table values, dL and dU.

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 inDecision (H₀: no first-order autocorrelation)
0 to dLReject: positive autocorrelation
dL to dUInconclusive
dU to 4 − dUDo not reject: no evidence of autocorrelation
4 − dU to 4 − dLInconclusive
4 − dL to 4Reject: 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.

Watch out for

The mistakes examiners are fishing for

  • Treating DW = 2 as proof of independent errors. It says there is no first-order autocorrelation, not that there is no autocorrelation at any lag, and it is unreliable with a lagged dependent variable.
  • Reading the inconclusive zone as “no autocorrelation”. The test simply does not decide there.
04
More general

Other tests

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.

05
Real data

Real data: India's consumption

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.

In economics

Annual national accounts, 1960 to 2025. Standard errors in the first regression are not reliable, and the long-run slope of 0.88 is best thought of as an estimate of the elasticity with unknown precision. The growth-rate regression answers a different question: how much consumption growth accompanies one extra point of income growth in the same year.

06
Repair

Fixing it

  • Look for a specification error first. A missing variable, the wrong functional form or missing dynamics can look exactly like autocorrelation (lesson 7). Adding the omitted persistent variable, or a lag, may remove it.
  • Generalised differencing (feasible GLS). If ut = ρut−1 + εt, subtract ρ times the lagged equation:
    yt​−ρyt−1​=α(1−ρ)+β(xt​−ρxt−1​)+εt​
    The new error is white noise, so OLS on the transformed data is BLUE. ρ is unknown, so it is estimated from the residuals: Cochrane-Orcutt iterates between estimating ρ and the transformed regression and drops the first observation; Prais-Winsten keeps it by scaling it by √(1 − ρ²).
  • Newey-West (HAC) standard errors keep the OLS estimate and correct the standard errors for both heteroscedasticity and autocorrelation, as robust standard errors do for heteroscedasticity alone.
  • First differences, when ρ is close to 1: the regression of Δy on Δx. Used in the growth-rate regression above.

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).

What to say in an exam

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.

07
Solving the opening question

The opening question, solved

Delhi School of Economics 2018 · easy
DW = 1.3 with dL = 1.5 and dU = 1.7. What does this imply?
  1. 1
    Place the statistic on the line.
    The positive-autocorrelation zone is 0 to dL = 1.5. DW = 1.3 is below dL.
  2. 2
    Read the decision.
    Below dL we reject the null of no positive first-order autocorrelation. (It would be inconclusive only between 1.5 and 1.7.) A check: 2(1 − ρ̂) = 1.3 gives ρ̂ ≈ 0.35, a moderate positive autocorrelation.
Answer
(A) There is positive autocorrelation. Option C is the trap: 1.3 is not between 1.5 and 1.7. Option D confuses the test with a heteroscedasticity test.
08
Revise

The lesson on one screen

The lesson on one screen
AR(1) errors
uₜ = ρuₜ₋₁ + εₜ. Var(u) = σ²ε ÷ (1 − ρ²). Positive ρ: runs; negative ρ: zigzag.
Consequences
OLS stays unbiased and consistent (exogenous regressors), but is inefficient and the usual standard errors are wrong: t and F invalid, R² overstated.
Durbin-Watson
Σ(eₜ − eₜ₋₁)² ÷ Σeₜ² ≈ 2(1 − ρ̂). 0 to 4. 2: none; near 0: positive; near 4: negative.
Zones
0 to dL reject (positive); dL to dU inconclusive; dU to 4 − dU none; 4 − dU to 4 − dL inconclusive; 4 − dL to 4 reject (negative).
Limits of DW
First order only; needs a constant and non-random regressors; biased towards 2 with a lagged dependent variable.
Breusch-Godfrey
nR² of residuals on regressors and p lagged residuals; chi-square (p). General, allows lagged dependent variables.
Repairs
Cochrane-Orcutt (drops the first observation), Prais-Winsten (keeps it), Newey-West standard errors, first differences. Check for misspecification first.
Lagged dependent variable
With autocorrelated errors, OLS is biased and inconsistent. Not just inefficient.
09
Practice

Check yourself

0 of 13 correct so far

Compute

Durbin-Watson from ρ̂
The first-order autocorrelation of the residuals is ρ̂ = 0.4. Find the approximate Durbin-Watson statistic.
ρ̂ from Durbin-Watson
A regression has DW = 0.6. Find the approximate first-order autocorrelation ρ̂.
DW from sums of squares
The sum of squared differences of successive residuals is 24 and the sum of squared residuals is 20. Find DW.
The negative-autocorrelation threshold
dL = 1.2 and dU = 1.5. Above what value of DW do we conclude there is negative autocorrelation?
Breusch-Godfrey
An auxiliary regression of the residuals on the regressors and one lagged residual, from 50 observations, has R² = 0.12. Find the LM statistic nR². (The 5% chi-square(1) value is 3.84.)
Generalised differencing
With ρ = 0.5, yt = 10 and yt−1 = 8, find the transformed value yt − ρyt−1.
The first observation in Prais-Winsten
With ρ = 0.6, Prais-Winsten multiplies the first observation by √(1 − ρ²). Find the multiplier.
The variance of an AR(1) error
ut = 0.8ut−1 + εt with Var(ε) = 1. Find Var(u).

Quick questions

1A Durbin-Watson statistic close to 0 suggests
2Which statement about OLS under autocorrelated errors (exogenous regressors) is true?
3Which test is valid for autocorrelation when a lagged dependent variable is a regressor?
4A pattern of residuals that alternates in sign indicates
5The difference between Cochrane-Orcutt and Prais-Winsten is that Prais-Winsten
10
Real questions

Past papers, by level

Foundation

Definitions and one-step calculations: a t statistic, an R², which assumption is which. Most CUET and JNU questions sit here.

1 questionPractise →

Standard

Restricted against unrestricted regressions, reading output, and statement questions, up to GATE and IIT JAM level.

1 questionPractise →
All 2 past-paper questions for this lesson, easiest first: practise the full set →

✦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.

← Lesson 9HeteroscedasticityLesson 11 →Endogeneity and instrumental variables

Read next

All resources →
EconometricsEconometrics 11: endogeneity, instrumental variables and two-stage least squaresWhy a regressor correlated with the error breaks OLS, what makes an instrument valid, the IV and Wald estimators derived, two-stage least squares, weak instruments and the Hausman and Sargan tests, with a lab that shows OLS, IV and a weak instrument against a known truth.Complete guide · 55 minEconometricsEconometrics 9: heteroscedasticity, tests, GLS and robust standard errorsWhat unequal error variances break (efficiency and the standard errors) and what they leave alone (unbiasedness), the Park, Glejser, Goldfeld-Quandt, Breusch-Pagan and White tests, weighted least squares derived, and robust standard errors, with a lab on real World Bank data.Complete guide · 55 minEconometricsEconometrics 7: omitted variable bias, irrelevant variables, measurement error and RESETThe omitted-variable bias formula and its sign, why an irrelevant variable costs precision and not bias, attenuation from measurement error, a wrong functional form and Ramsey's RESET test, with a lab that breaks each assumption on purpose.Complete guide · 55 min