Day 131 — Sizing the actual book, with every number defended

Tuesday, 15 December 2026 · Week 19 of 52 · Portfolios and risk · Study day · 60 min

Five weeks of machinery produce one weight vector today, and the point of the exercise is that every element of it traces back to something you measured rather than chose.

What you should be able to do tonight

  • Produce a position vector for your combined book where each input is traceable to a measurement.
  • State which single input the result is most sensitive to, and by how much.

Tasks 60 min

35 min Wire it together in qlib/portfolio.py: covariance from your chosen estimator, neutralisation against the exposures you decided to hedge, volatility targeting to your chosen level, scaled by your Kelly fraction, capped by leverage. Produce the weight vector and the predicted risk decomposition.

25 min Run the sensitivity: perturb each of the five inputs by a plausible amount, one at a time, and report the change in the resulting positions and in predicted risk. Name the input that dominates, which will almost certainly be the expected return estimate rather than anything in the risk model.

The running strategy

The full sizing pipeline runs end to end: covariance, neutralisation, volatility target, Kelly fraction, leverage cap. Phase 6 changes only what feeds it, and phase 10 runs this exact code on a schedule.

Resources

Deliverable

A position vector produced by the full pipeline, with a one-at-a-time sensitivity report across all five inputs.

Checkpoint

Which input dominates your position sizes, and what does that say about where to spend your research time?

Prepare for tomorrow

Ten minutes tonight so Day 132, Wednesday, 16 December 2026 starts clean. This is what the evening email sends you.

Run the whole pipeline out of sample on the held-out period and record realised risk against predicted risk.

Do the same for equal weighting.

Two pairs of numbers. Tomorrow decides what they mean.