Day 99 — Markowitz is one convex problem and three bad inputs

Friday, 13 November 2026 · Week 15 of 52 · Portfolios and risk · Study day · 60 min

The optimization is trivial and the estimation is not, so the fastest way to see the real problem is to solve it correctly first and watch what it does.

What you should be able to do tonight

  • Write mean-variance optimization as a convex program and solve it with CVXPY for a given risk aversion.
  • Say which of the two inputs the solution is more sensitive to, and give the reason in terms of how each is estimated.

Tasks 60 min

35 min Read the CVXPY introduction and the portfolio optimization example, then write the problem yourself for the 25 Fama-French portfolios: maximise expected return minus risk aversion times variance, subject to weights summing to one. Trace the frontier by sweeping risk aversion.

25 min Perturb the inputs: add 10 percent noise to the estimated mean vector and re-solve, then do the same for the covariance matrix. Report the average absolute weight change under each perturbation. The asymmetry between the two numbers is the whole of week 15.

Resources

Deliverable

notebooks/day-099-markowitz.ipynb with a frontier traced by CVXPY and the weight sensitivity to perturbations of each input.

Checkpoint

Which input is mean-variance optimization more sensitive to, and why does that follow from how the two are estimated?

Prepare for tomorrow

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

Solve the unconstrained tangency portfolio on your 25 assets and look at the weights.

Write down the largest long weight, the largest short weight, and the sum of absolute weights.

Do not fix anything. Tomorrow is about that third number.