Day 81 — The pair selection rule, written down before the results

Monday, 26 October 2026 · Week 12 of 52 · Time series · Study day · 55 min

Stating the procedure first is what makes the multiple-testing correction honest, and it is the difference between milestone 3 being research and being a story.

What you should be able to do tonight

  • State your selection procedure completely enough that someone else could run it and get your pairs.
  • Report the number of pairs screened and the correction that number implies for the strategy’s eventual Sharpe.

Tasks 55 min

35 min Implement the rule as qlib/signals/pairs.py: a function taking a universe and a formation window and returning the selected pairs with their hedge ratios. No parameters chosen by looking at trading results. Log the screen count to research_log.jsonl automatically.

20 min Run it on the formation period only, which must end before the trading period begins, and record the selected pairs, the screen count and the implied deflated-Sharpe hurdle at that count. Put all three on the first page of reports/milestone-03-pairs.md.

The running strategy

qlib/signals/pairs.py holds the pair selection rule, fixed in code before any trading result exists, with its screen count logged automatically. The hurdle that count implies is on the first page of the milestone rather than in a footnote.

Resources

Deliverable

qlib/signals/pairs.py returning selected pairs and hedge ratios, with the screen count and implied Sharpe hurdle recorded.

Checkpoint

How many pairs did your rule screen, and what Sharpe does the strategy have to clear as a result?

Prepare for tomorrow

Ten minutes tonight so Day 82, Tuesday, 27 October 2026 starts clean. This is what the evening email sends you.

Read the definition of an Ornstein-Uhlenbeck process and write down its three parameters.

Look at one of your selected spreads and guess its half-life in trading days.

Keep the guess; tomorrow you estimate it.