Day 165 — Neutralise the signal, not just the portfolio

Monday, 18 January 2027 · Week 24 of 52 · Alpha · Study day · 65 min

Day 117 neutralised weights after the fact; neutralising the signal itself changes what the forecast is, and the two are not equivalent when the sizing is nonlinear.

What you should be able to do tonight

  • Neutralise a signal by cross-sectional regression against exposures and say what the residual is a forecast of.
  • Report the difference between neutralising at the signal level and at the portfolio level for the same signal.

Tasks 65 min

35 min Add neutralise to qlib/signals/transforms.py: cross-sectionally regress the signal on the exposure matrix on each date and keep the residual. Then run the same signal three ways, unneutralised, signal-neutralised and portfolio-neutralised, and report Sharpe, factor loadings and turnover for each.

20 min Say what you gave up: the residual signal is orthogonal to the exposures you removed, which means any genuine forecasting power that ran through those exposures is gone. Quantify it by reporting how much of the original signal’s variance the neutralisation removed.

10 min Decide and record the policy for the book: which exposures every signal is neutralised against by default, and the reason.

The running strategy

Signals are neutralised at the signal level against a standard exposure set declared once for the whole book, with the variance removed reported per signal so the cost of neutralising is visible.

Resources

Deliverable

Signal-level neutralisation in qlib/signals/transforms.py, and a three-way comparison against portfolio-level neutralisation.

Checkpoint

Why neutralise before evaluating a signal, and what are you throwing away when you do?

Prepare for tomorrow

Ten minutes tonight so Day 166, Tuesday, 19 January 2027 starts clean. This is what the evening email sends you.

Write down every way you could turn a vector of scores into a vector of weights. There are at least four.

For each, say what it assumes about the relationship between score and expected return.

One line each, on paper.