When neighbouring errors are linked
Ordinary standard errors assume every observation brings new information. Financial data often breaks that. Returns measured over three months and sampled every month overlap, so each observation shares two months with its neighbour, and the errors move together. The same happens when volatility clusters. The fix keeps the coefficients and changes only the standard errors. The Newey–West estimator, also called HAC for heteroskedasticity and autocorrelation consistent, estimates the long-run variance by adding the lagged autocovariances of the residuals, each multiplied by a Bartlett weight that shrinks to zero at the cut-off lag . In statsmodels you only add cov_type='HAC' and cov_kwds={'maxlags': L} to .fit().
Real data shows the size of the effect. The average 3-month return of SPY, sampled monthly, is over overlapping observations. Ordinary standard errors give and . The autocorrelations of the demeaned series are , and at lags , and , the triangle that overlap of two months out of three creates. With Newey–West at the standard error is (), at it is () and at it is (), and the non-overlapping quarters give . In a monthly three-factor regression for Apple ( months) the change is smaller but real: the standard error of the value loading rises from to , so its t-statistic moves from to .
- Same coefficients, new standard errors: HAC changes only the uncertainty, never the estimate.
- Overlap sets the lag: with -month returns sampled monthly, use at least and often a few more.
- Report the honest t: a t of 6 can be a t of 4 once neighbouring errors are accounted for.
Lab · what's graded
- The variance term10 pts
- The first autocovariance10 pts
- The long-run variance15 pts
- The HAC standard error15 pts
- The robust t-statistic10 pts
- The statsmodels call10 pts
- Match the vocabulary10 pts
- Why the ordinary t is too big20 pts