Quant Memo
Core

Autocorrelation and Serial Correlation

When regression errors are correlated across time, why it inflates or deflates naive standard errors, the Newey–West HAC estimator, the Durbin–Watson statistic, and the overlapping-returns trap that fools every backtester.

Prerequisites: Ordinary Least Squares (OLS), Heteroskedasticity

Serial correlation is heteroskedasticity's time-series sibling: instead of error variances differing, error terms are correlated across time. It is endemic in finance because returns are sampled sequentially, signals persist, and, most insidiously, researchers routinely build overlapping observations that manufacture correlation out of thin air. Like heteroskedasticity, it leaves OLS coefficients unbiased while corrupting the standard errors, but the corruption is usually worse and the fix (Newey–West) is more delicate.

The problem

In the model yt=xtβ+εty_t = x_t^\top\beta + \varepsilon_t, serial correlation means the error covariance matrix has non-zero off-diagonals:

Cov(εt,εtk)=γk0for some k1.\operatorname{Cov}(\varepsilon_t, \varepsilon_{t-k}) = \gamma_k \ne 0 \quad \text{for some } k \ge 1.

The simplest model is a first-order autoregressive error, εt=ρεt1+ut\varepsilon_t = \rho\,\varepsilon_{t-1} + u_t with ρ<1|\rho| < 1 and utu_t white noise, giving Corr(εt,εtk)=ρk\operatorname{Corr}(\varepsilon_t, \varepsilon_{t-k}) = \rho^k. As with heteroskedasticity, strict exogeneity is intact, so OLS stays unbiased and consistent. What breaks is the variance: the true covariance is (XX)1(XΩX)(XX)1(X^\top X)^{-1}(X^\top\Omega X)(X^\top X)^{-1} with a now-dense Ω\Omega, and the naive σ2(XX)1\sigma^2(X^\top X)^{-1} is wrong.

Why the direction matters

With positive autocorrelation (ρ>0\rho > 0), by far the common case in finance, the naive standard errors are too small, sometimes dramatically. The intuition: correlated observations carry less independent information than their count suggests, so you have fewer "effective" data points than nn. For an AR(1) error the effective sample size is roughly n1ρ1+ρn\cdot\frac{1-\rho}{1+\rho}; at ρ=0.5\rho = 0.5 that is one-third of nn. Treating nn correlated points as nn independent ones overstates precision, inflates tt-statistics, and produces false significance, the exact mechanism behind many "significant" backtests that evaporate.

The Newey–West HAC estimator

The robust fix generalizes White to correlated errors: estimate the sandwich meat XΩXX^\top\Omega X = S=t,sE[εtεsxtxs]S = \sum_{t,s}\mathbb{E}[\varepsilon_t\varepsilon_s x_t x_s^\top] directly from residuals, including cross-time products. Newey and West's heteroskedasticity-and-autocorrelation-consistent (HAC) estimator is

S^=Γ^0+k=1Lwk(Γ^k+Γ^k),Γ^k=t=k+1nε^tε^tkxtxtk,\hat S = \hat\Gamma_0 + \sum_{k=1}^{L} w_k\big(\hat\Gamma_k + \hat\Gamma_k^\top\big), \qquad \hat\Gamma_k = \sum_{t=k+1}^n \hat\varepsilon_t\hat\varepsilon_{t-k}\,x_t x_{t-k}^\top,

with Bartlett weights wk=1kL+1w_k = 1 - \frac{k}{L+1} that taper to zero. The weights are not cosmetic: they guarantee S^\hat S is positive semidefinite (a valid covariance), which a naive truncated sum would not be. The lag length LL is the key tuning choice, it must grow with the sample (a common rule is L4(n/100)2/9L \approx \lfloor 4(n/100)^{2/9}\rfloor) and, for overlapping returns, must be at least the overlap horizon. The resulting HAC standard errors are the standard defense for any time-series regression on a desk.

Detecting it: Durbin–Watson and beyond

The classic Durbin–Watson statistic tests for first-order autocorrelation:

DW=t=2n(ε^tε^t1)2t=1nε^t22(1ρ^).\text{DW} = \frac{\sum_{t=2}^n (\hat\varepsilon_t - \hat\varepsilon_{t-1})^2}{\sum_{t=1}^n \hat\varepsilon_t^2} \approx 2(1 - \hat\rho).

So DW2\text{DW} \approx 2 means no autocorrelation, DW0\text{DW} \to 0 strong positive, DW4\text{DW} \to 4 strong negative. Its limitations, it only checks lag 1, and is invalid when a lagged dependent variable is a regressor, make the Breusch–Godfrey LM test (regress residuals on their own lags and the regressors) and the Ljung–Box portmanteau test the more general modern tools. Plotting the residual ACF is the fastest diagnostic.

The overlapping-returns trap

This deserves its own spotlight because it fools so many practitioners. To study kk-period returns you might regress the overlapping sum rtt+k=rt+1++rt+kr_{t\to t+k} = r_{t+1} + \dots + r_{t+k} on a signal, sampled every period. Even if one-period returns are i.i.d., the overlapping kk-period returns share k1k-1 of their components with their neighbors, mechanically inducing autocorrelation up to lag k1k-1 in the dependent variable and hence the errors. Naive standard errors can understate the truth by a factor of k\sqrt{k} or more, turning noise into "predictability." Long-horizon return-predictability regressions (dividend yield predicting 5-year returns) are the notorious example. The mandatory fixes: Newey–West with Lk1L \ge k-1, Hansen–Hodrick standard errors, or simply using non-overlapping observations.

Worked example

You regress annual (12-month overlapping, sampled monthly) returns on the dividend–price ratio and get β^\hat\beta with a naive t=3.0t = 3.0. The 12-month overlap induces autocorrelation through lag 11. Applying Newey–West with L=12L = 12 typically cuts the tt-statistic to roughly 1.51.52.02.0, the "strong" predictability was mostly manufactured standard-error understatement. Same coefficient, honest uncertainty, very different conclusion.

Failure modes in financial data

  • Choosing LL badly. Too small under-corrects (residual autocorrelation leaks through); too large adds noise and can make the estimate erratic. For overlapping data, LL must cover the overlap.
  • Autocorrelation as a signal, not a nuisance. In the errors it's a nuisance to robustify; in the series itself it's forecastable structure, that is the domain of ARMA Models. Don't robustify away predictability you could model.
  • Combined with heteroskedasticity. Real financial errors have both; Newey–West handles both simultaneously (it is HAC, not just AC), which is why it, not White, is the time-series default.
  • Illiquidity-induced smoothing. Stale prices in illiquid assets (credit, real estate, some hedge-fund NAVs) induce spurious positive autocorrelation that understates volatility and overstates Sharpe, a data artifact, not alpha.

In interviews

Lead with the same unbiased-but-wrong-SE structure as heteroskedasticity, then specialize: positive serial correlation makes naive standard errors too small, inflating tt-stats. Be able to explain the effective-sample-size intuition (n1ρ1+ρn\frac{1-\rho}{1+\rho} for AR(1)) and to name Newey–West HAC as the fix, including why the Bartlett weights exist (to keep the covariance positive semidefinite). The overlapping-returns question is a favorite for research roles, explain how overlap manufactures autocorrelation and inflates significance, and that the fix is HAC with lag \ge overlap or non-overlapping sampling. Knowing Durbin–Watson 2(1ρ^)\approx 2(1-\hat\rho) is a reliable quick win.

Related concepts

Practice in interviews

Further reading

  • Newey & West (1987), A Simple, Positive Semi-Definite HAC Covariance Matrix
  • Hamilton, Time Series Analysis (Ch. 10)
  • Greene, Econometric Analysis (Ch. 20)
ShareTwitterLinkedIn