Day 106 — A sample covariance matrix with more assets than days

Friday, 20 November 2026 · Week 16 of 52 · Portfolios and risk · Study day · 55 min

The rank deficiency you counted last night is not an edge case; it is the normal situation in equity portfolio construction, and every practical method exists because of it.

What you should be able to do tonight

  • State the rank of a sample covariance matrix from T observations of N assets, and what that implies for its inverse.
  • Show that the sample matrix produces a portfolio with zero predicted risk and large realised risk.

Tasks 55 min

30 min Demonstrate the failure end to end: with 200 names and 150 days, find a portfolio the sample covariance says has almost zero variance, then measure what it actually realises over the next 150 days. The ratio between predicted and realised risk is the number to remember.

25 min Map the breakdown: repeat with the ratio of assets to observations from 0.1 to 1.5 and plot predicted-to-realised risk against that ratio. The curve tells you where your own universe sits and how bad the problem is for you specifically.

Resources

Deliverable

notebooks/day-106-sample-covariance.ipynb with predicted-to-realised risk plotted against the asset-to-observation ratio.

Checkpoint

You estimate a 500 by 500 covariance from 750 daily observations. What is wrong with it, and what does the optimiser do with the smallest eigenvalues?

Prepare for tomorrow

Ten minutes tonight so Day 107, Saturday, 21 November 2026 starts clean. This is what the evening email sends you.

Generate a matrix of pure noise with the same dimensions as your return matrix and compute its eigenvalue spectrum.

Plot that spectrum next to the one from real returns.

The bulk of the two will look similar. That similarity is tomorrow’s entire point.