Day 164 — The transform is part of the bet, not a formatting step

Sunday, 17 January 2027 · Week 24 of 52 · Alpha · Study day · 60 min

Ranking, z-scoring and winsorizing look like preprocessing and each one changes which positions dominate the portfolio, which means each is a modelling choice you should be able to defend.

What you should be able to do tonight

  • Say what a rank transform assumes about the relationship between signal magnitude and expected return, and when that assumption costs you.
  • Report the effect of three transforms on the same signal’s Sharpe, turnover and concentration.

Tasks 60 min

30 min Implement the transforms in qlib/signals/transforms.py: cross-sectional z-score, cross-sectional rank mapped to a normal, and winsorised z-score at a stated quantile. Each declares what it does to units, since the interface from day 162 requires it.

30 min Run the comparison: one signal, three transforms, reporting Sharpe, turnover, the weight of the largest position, and the fraction of profit coming from the top 5 percent of names. Ranking throws away magnitude, which helps when the tail is noise and hurts when the tail is where the information is, and this table tells you which case you are in.

Resources

Deliverable

Three transforms in qlib/signals/transforms.py, with a four-metric comparison of the same signal under each.

Checkpoint

When does ranking a signal help, and when does it throw away the information you wanted?

Prepare for tomorrow

Ten minutes tonight so Day 165, Monday, 18 January 2027 starts clean. This is what the evening email sends you.

Regress one of your signals cross-sectionally on sector dummies and on market beta, on a single date.

Report the R-squared.

If it is large, your signal is partly a sector bet. Note the number.