Quant techniques · econometric inference

Newey–West standard errors for financial time series

Financial regressions often use returns that are heteroskedastic, serially dependent, or built from overlapping horizons. Ordinary least-squares standard errors can then be too small or too large even when the coefficient estimate is unchanged. Newey–West heteroskedasticity-and-autocorrelation-consistent (HAC) standard errors estimate the long-run covariance of regression scores using a weighted sum of sample autocovariances.

Autocorrelation inflates a mean’s uncertainty

Long-run variance multiplier

AR(1) illustration; the long-run variance of a sample mean uses the sum of autocovariances.

Sandwich covariance with autocovariances

For an OLS regression yt=xt⊤β+uty_t=x_t^\top\beta+u_t, define the score gt=xtu^tg_t=x_t\hat u_t. The HAC covariance estimator has sandwich form

Var⁡^(β^)=(X⊤X)−1Ω^(X⊤X)−1,\widehat{\operatorname{Var}}(\hat\beta) =(X^\top X)^{-1}\widehat\Omega(X^\top X)^{-1},

where the unnormalized long-run covariance estimate is

Ω^=Γ^0+∑k=1Lwk(Γ^k+Γ^k⊤),Γ^k=∑t=k+1Tgtgt−k⊤.\widehat\Omega=\widehat\Gamma_0+\sum_{k=1}^{L}w_k\left(\widehat\Gamma_k+\widehat\Gamma_k^\top\right), \qquad \widehat\Gamma_k=\sum_{t=k+1}^{T}g_tg_{t-k}^\top.

The Newey–West Bartlett weights are

wk=1−kL+1,k=1,…,L,w_k=1-\frac{k}{L+1},\qquad k=1,\dots,L,

and LL is the truncation lag or bandwidth. With this kernel, the estimated covariance matrix is positive semidefinite by construction under the standard formulation. At L=0L=0, the estimator reduces to the heteroskedasticity-robust White covariance estimator; adding lags accounts for serial covariance in the scores.

The regression coefficients are the same OLS estimates. HAC changes their estimated covariance matrix, standard errors, t-statistics, and confidence intervals; it does not fix omitted variables, look-ahead leakage, a misspecified conditional mean, or an invalid research design.

Why overlapping returns need lags

Suppose a strategy’s hh-day forward return is regressed on information at date tt. If the forecast origin advances one day at a time, adjacent outcomes share h−1h-1 daily returns. Even under independent daily returns, this construction creates serial correlation in regression errors. A conventional standard error that treats every row as independent ignores that shared information.

A HAC bandwidth should at least include the mechanically overlapping lags, so L≥h−1L\ge h-1 is a natural starting point. Longer dependence may remain because returns, predictors, volatility, and model errors are persistent. Compare reasonable bandwidths and consider non-overlapping evaluation when the inferential target allows it. A bandwidth rule is an assumption about which score autocovariances matter; it is not a universal correction.

Overlap changes inference, not the target

The same regression coefficient may be estimated from overlapping or non-overlapping horizons, but the effective amount of independent information differs. HAC adjusts uncertainty for dependence under its assumptions; it does not make a short sample equivalent to a long independent sample.

A practical workflow

  1. Estimate the regression and save residuals and regressors in chronological order.
  2. Form score vectors gt=xtu^tg_t=x_t\hat u_t and calculate lag-zero and lagged score autocovariances through the chosen bandwidth.
  3. Apply the Bartlett weights, form the sandwich covariance, and extract standard errors from its diagonal.
  4. Report the bandwidth, kernel, finite-sample scaling convention, sample size, and whether outcomes overlap.
  5. Check sensitivity to defensible alternative bandwidths and inspect score dependence; large changes signal that inference is sensitive to the long-run variance estimate.

For an estimated mean, set xt=1x_t=1 and gt=yt−yˉg_t=y_t-\bar y. Newey–West then estimates the long-run variance of the sample mean, a common ingredient in Sharpe-ratio and forecast-comparison inference. For multiple regression coefficients, use the full score vector so cross-covariances are retained.

Limits and common mistakes

HAC consistency is asymptotic and relies on conditions such as weak dependence and an appropriate bandwidth as sample size grows. Very short samples, many regressors, strong persistence, structural breaks, or very long forecast horizons can make conventional HAC inference unreliable. Robust standard errors also do not protect against model selection performed on the same sample or multiple testing across many strategies.

Do not select the bandwidth that makes a result significant. Choose it from the horizon and dependence structure, predeclare it when possible, and show sensitivity. For panel data with common date shocks, use an estimator appropriate to the panel dependence structure; a single-series Newey–West calculation is not automatically two-way clustered inference.

Show answer

A strategy regression uses 20-day forward returns with a new forecast origin every day. What serial-dependence issue does this create, and what is a reasonable minimum HAC bandwidth to include mechanically overlapping lags? Why might that bandwidth still be insufficient?

Further reading