Day 166 — From scores to weights, the map you keep implicit
Tuesday, 19 January 2027 · Week 24 of 52 · Alpha · Study day · 60 min
Two people with the same signal and different sizing rules get different Sharpe ratios, and treating the sizing as part of the signal is how strategies get credited with things they did not do.
What you should be able to do tonight
- Name four score-to-weight maps and state what each assumes about the score’s relationship to expected return.
- Show how much of one signal’s performance is attributable to the sizing rule rather than the ordering.
Tasks 60 min
30 min Implement four maps in qlib/portfolio.py: proportional to score, proportional to rank, equal weight within top and bottom quantiles, and mean-variance optimal treating the score as an expected-return estimate. Each returns weights summing to zero for a long-short book.
30 min Attribute the performance: run one signal under all four maps with identical costs and report Sharpe, turnover and concentration. Then run a randomised control where the ordering is preserved but the magnitudes are shuffled, to separate what the ordering contributes from what the magnitudes do.
Resources
Deliverable
Four score-to-weight maps in qlib/portfolio.py, with one signal’s performance attributed between ordering and magnitude.
Checkpoint
Your signal’s Sharpe drops from 1.1 to 0.7 when you switch from score-proportional to rank-based weights. What did that tell you?
Prepare for tomorrow
Ten minutes tonight so Day 167, Wednesday, 20 January 2027 starts clean. This is what the evening email sends you.
Pick the first three signals for the book and write one sentence each on the economic reason it might work.
Write the reason before you compute anything. If you cannot write one, that is information.
Three sentences, no code.