Day 71 — Two independent random walks, regressed, look significant

Friday, 16 October 2026 · Week 11 of 52 · Time series · Study day · 60 min

The ten t-statistics you wrote down last night are the single most important cautionary result in applied time series, and you generated them yourself rather than reading about them.

What you should be able to do tonight

  • Explain why the t-statistic in a spurious regression diverges rather than converging, in terms of what happens to the residual.
  • Say what fraction of independent random walk pairs reject at 5 percent, and what the fix is.

Tasks 60 min

25 min Scale up last night’s experiment to 1,000 replications and plot the distribution of the t-statistic. Report the rejection rate at the nominal 5 percent level. It will be somewhere around three quarters rather than one twentieth.

25 min Diagnose it: plot the residuals from one of those regressions and their autocorrelation function. The residual is itself a random walk, so the standard error formula is estimating the wrong quantity, and the divergence follows from that rather than from anything mysterious.

10 min Show the fix and its cost: rerun the regression on first differences and confirm the rejection rate returns to nominal. Then note what differencing destroyed, which is any long-run relationship there might have been, and which week 12 exists to recover.

Resources

Deliverable

notebooks/day-071-spurious.ipynb with the t-statistic distribution over 1,000 independent random walk pairs and the measured rejection rate.

Checkpoint

Describe what happens to the t-statistic and the R-squared when two independent random walks are regressed on each other, and say why.

Prepare for tomorrow

Ten minutes tonight so Day 72, Saturday, 17 October 2026 starts clean. This is what the evening email sends you.

Run the augmented Dickey-Fuller test from statsmodels on a price level, on its first difference, and on one of your simulated random walks.

Note the three p-values and, for each, write out what the null hypothesis being tested actually is.

Most people get the direction of the ADF null backwards on first contact. Check yours against the documentation.