Day 109 — Ledoit-Wolf, and the same problem in a different field

Monday, 23 November 2026 · Week 16 of 52 · Portfolios and risk · Study day · 60 min

You have conditioned an ill-behaved covariance matrix before under another name, so the useful content here is what the target is and how the intensity is chosen, not why shrinkage works.

What you should be able to do tonight

  • State the Ledoit-Wolf shrinkage target and the criterion that sets the intensity, and say what the intensity depends on.
  • Explain the method in one sentence to someone who works on linkage disequilibrium matrices.

Tasks 60 min

35 min Implement the estimator yourself before calling the library: shrink toward a scaled identity, and choose the intensity by minimising the expected squared Frobenius distance to the true matrix using the analytic estimate. Then check your intensity against sklearn’s LedoitWolf on the same data. Agreement to two decimals means you understood it.

25 min Compare targets: run the same out-of-sample risk test as yesterday for shrinkage toward the identity, toward a constant-correlation matrix, and toward a single-factor matrix. Report predicted and realised risk for all three plus the clipped estimator.

Resources

Deliverable

notebooks/day-109-ledoit-wolf.ipynb with your own shrinkage intensity matching sklearn’s, and a four-estimator out-of-sample risk comparison.

Checkpoint

Explain Ledoit-Wolf shrinkage in one sentence to a statistical geneticist, using something they already do.

Prepare for tomorrow

Ten minutes tonight so Day 110, Tuesday, 24 November 2026 starts clean. This is what the evening email sends you.

Decide which covariance estimator qlib will use by default and write down the reason in one line.

Check that whichever you pick returns a positive definite matrix on every rolling window in your sample.

Note any window where it does not. Those are the ones that break an optimiser at 3 am.