Day 217 — Labelling, closed book

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

Light day. Week 31 is the part of financial machine learning that has no counterpart in a standard course, so recalling it precisely is what distinguishes you in an interview.

What you should be able to do tonight

  • Describe triple-barrier labelling, uniqueness weighting and meta-labelling from memory in three minutes total.
  • State your frozen protocol without opening the file.

Tasks 35 min

20 min Finish anything outstanding from days 211 to 216. The frozen protocol is the piece that matters most; the audit in week 34 is worthless without it.

15 min Closed book: the three barriers and how they are set, the uniqueness calculation and what it corrects, the two-model structure of meta-labelling, and your protocol’s five fields.

Drill interview thread

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

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

Regularisation out loud in ninety seconds: what ridge does to correlated predictors, what lasso does differently, and what the penalty is actually buying you in terms of bias and variance. Then the question they follow with: how would you choose the penalty when your folds are not independent?

A Python problem at second-round difficulty: implement a function that, given a list of (timestamp, price) ticks and a window in seconds, returns the rolling maximum efficiently. The naive version is quadratic; write the linear one with a deque and say why it is linear.

Resources

Deliverable

The closed-book week 31 page, plus the linear-time rolling maximum implemented and timed against the naive version.

Checkpoint

Describe triple-barrier labelling and sample uniqueness weighting from memory, in two minutes.

Prepare for tomorrow

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

Fit a plain ordinary least squares model on your feature matrix under the frozen protocol and record its out-of-sample R-squared.

This is the number every model this phase has to beat.

Write it somewhere you will see it.