Day 226 — Sequence models, and the autocorrelation they are looking for

Saturday, 20 March 2027 · Week 33 of 52 · Machine learning · Study day · 60 min

A recurrent or attention model on a return series is looking for temporal structure, and week 6 already measured how much of that exists in returns as opposed to in their magnitudes.

What you should be able to do tonight

  • Say what structure a sequence model can find that your engineered features cannot, and whether your data has it.
  • Report a sequence model against the same baselines and interpret the result in terms of what week 6 measured.

Tasks 60 min

40 min Fit a small sequence model on a window of past returns and volumes per name, under the same protocol. Report it against the baselines. Then run it on absolute returns as the target rather than signed returns, and note that it does far better, which is the same fact you measured on day 38 appearing in a different form.

20 min Draw the conclusion for your book: the temporal structure in this data is mostly in volatility rather than in direction, so a sequence model is a good volatility forecaster and a poor return forecaster, and the right place for it is sizing rather than signal. Write that into the milestone.

Resources

Deliverable

A sequence model evaluated on signed and on absolute returns, with the conclusion about where its capacity actually pays.

Checkpoint

Your sequence model forecasts volatility well and direction badly. Which stylized fact predicted that?

Prepare for tomorrow

Ten minutes tonight so Day 227, Sunday, 21 March 2027 starts clean. This is what the evening email sends you.

Take your best model so far and refit it with five different random seeds.

Report the spread of out-of-sample R-squared across the five.

If the spread is comparable to the differences between model families, that is tomorrow’s subject.