Why are my t-statistics too large with overlapping returns?
Regress overlapping 12-month returns on a persistent predictor with no real effect, see the ordinary t-statistic report an effect far too often, and compare it with Newey-West (HAC) standard errors.
After this lesson, you can compute Newey-West standard errors for a regression on overlapping returns and see how often each test reports an effect that does not exist.
Why do overlapping returns need other standard errors?
Each month’s 12-month forward return shares eleven monthly returns with the next month’s, so the regression errors of neighbouring rows are correlated, and ordinary standard errors, which assume uncorrelated errors, come out too small. In the example, the predictor has no effect, yet the ordinary t-statistic is 3.06, and the Newey-West t-statistic is 1.21.
Here \(x_t\) is the predictor at the end of month \(t\), with normal shocks \(u_t\) that have a standard deviation of 0.1, and \(y_t\) the sum of the next twelve monthly returns \(r_{t+k}\), which are normal with a mean of 0.5% and a standard deviation of 4.5% and independent of the predictor.
simulate builds 600 months. The loop computes the predictor month by month, because each value depends on the previous one. .rolling(12).sum() adds the twelve returns up to each month, and .shift(-12) moves each sum up twelve rows, so row \(t\) holds the returns of months \(t + 1\) to \(t + 12\). .dropna() drops the last twelve rows, which lack a full year ahead.
Newey-West standard errors, called HAC for heteroskedasticity and autocorrelation consistent, allow the errors to be correlated up to a number of lags. .fit(cov_type="HAC", cov_kwds={"maxlags": 12}) requests them with twelve monthly lags. fit_both returns the ordinary fit and the HAC fit of the same regression.
The following box simulates one sample and compares the two fits.
0.0453
ordinary HAC
standard_error 0.0148 0.0373
t 3.0642 1.2142
Both fits give the slope 0.0453. The HAC standard error of 0.0373 is 2.5 times the ordinary 0.0148, so only the ordinary test rejects a zero slope at the cutoff of 1.96.
How often does each test report a false effect?
A 5% test should reject a true zero slope in about 5% of samples. In 300 simulated samples, the ordinary test rejects 157 times, 52%, and the HAC test 45 times, 15%.
The list comprehension simulates 300 samples from one generator, fits both regressions on each and keeps the two t-statistics. .abs() > 1.96 marks the rejections, and .sum() counts them in each column.
The following box counts the rejections of both tests.
rng = np.random.default_rng(22)t_values = pd.DataFrame([[fit.tvalues["predictor"] for fit in fit_both(simulate(rng))] for _ inrange(300)], columns=["ordinary", "HAC"])print((t_values.abs() >1.96).sum())
ordinary 157
HAC 45
dtype: int64
HAC still rejects too often, because twelve lags with declining weights do not capture the whole overlap, and the correlations are estimated from a finite sample.
Your turn
Keep every twelfth row of data, so that no two outcomes overlap, and fit both regressions with one lag. You should see 49 rows and t-statistics of 0.59 and 0.72.
TipShow answer
.iloc[::12] takes every twelfth row from the first, and one lag now spans twelve months.