Day 210 — Validation, closed book

Thursday, 4 March 2027 · Week 30 of 52 · Machine learning · Catch-up day · 35 min

Light day. Week 30 built the apparatus that makes everything after it interpretable, and being able to explain it out loud is worth more than any model you will fit.

What you should be able to do tonight

  • Explain purging and embargoing out loud in ninety seconds, including why both are needed.
  • State the expected out-of-sample R-squared on daily equity returns and its information ratio equivalent.

Tasks 35 min

20 min Finish anything outstanding from days 204 to 209. The feature matrix and its guard test are the pieces that matter; everything for the next four weeks reads from them.

15 min Closed book: the two reasons standard cross-validation fails here, purging against embargoing, what walk-forward estimates that cross-validation does not, and the IC to R-squared conversion with a worked number.

Drill interview thread

Spaced repetition, not cramming. Every drill in the year is collected on the drills page.

Arithmetic, timed, thirtieth sitting. Ten two-digit multiplications and the sevenths.

The cross-validation question as asked, out loud in ninety seconds: why is k-fold wrong on financial data, and what are purging and embargoing? Then the follow-up: does that fix apply to a cross-sectional daily model with a one-day label, and why does the answer surprise people?

A SQL problem of first-round difficulty: from a trades table with timestamp, symbol, price and quantity, write a query giving the volume-weighted average price per symbol per day, and then the top three symbols by dollar volume on each day. The second half needs a window function; write it without looking it up.

Resources

Deliverable

The closed-book week 30 page, plus your SQL solution checked against a real query on your own store.

Checkpoint

Explain purging and embargoing in ninety seconds and say which one a one-day label still needs.

Prepare for tomorrow

Ten minutes tonight so Day 211, Friday, 5 March 2027 starts clean. This is what the evening email sends you.

Take one feature and build three labels from it: the 5-day forward return, its sign, and its quintile within the cross-section.

Fit the same model to each and note that the three are not the same problem.

Write one line on which one you would want to predict and why.