Basic Prerequisites: Modern Portfolio Theory & Mean–Variance and Covariance Shrinkage & RMT Denoising.
1. Intuition & Practical Objective
HRP exists because the standard allocator fails in a specific, diagnosable way. This page makes that failure precise, because “MVO is unstable” is a slogan until you can point to the term in the formula that explodes.
The mean–variance / minimum-variance program is a quadratic optimization whose solution is a linear function of an inverse covariance matrix:
Both need . The problem is not that is hard to invert numerically - it is that the you have is an estimate, and the inverse converts estimation error into position size. The optimizer will, by construction, take its largest long and short positions along the directions where the sample covariance is most wrong. Michaud (1989) named this “error maximization”: the very act of optimizing magnifies the noise in the inputs.
The three failure signatures, in one line each:
- Extreme positions. scales like , so tiny noise eigenvalues produce enormous weights and large long/short gross exposure.
- In-sample lies. The reported risk is below the realized risk , because the optimizer was fit on the same .
- A parameter-free benchmark that wins. DeMiguel, Garlappi & Uppal (2009) showed no sophisticated optimizer reliably beats out-of-sample without decades of data - the bar every model must clear.
HRP’s design is a direct answer to (1): if the inverse is the amplifier, do not invert - replace with a tree whose edges come from the ordering of correlations, not their magnitudes.
2. Mathematical Ground Truth & Derivations
2.1 Error amplification through the inverse
Write the sample covariance in its eigenbasis . The global minimum-variance weights are
Perturb one eigenvalue by while holding its eigenvector fixed. The weight perturbation is
so the sensitivity of the weights to a fixed estimation error grows like . Sample eigenvalues of the smallest directions are both biased downward (Marchenko–Pastur) and statistically noisiest. Therefore
This is the analytic form of “estimation-error maximizer.” (Chopra–Ziemba 1993 quantify the priority: errors in means hurt more than variances and more than covariances (variances hurt more than covariances) - which is why a returns-free allocator like HRP is attractive, but also why covariances still matter.)
2.2 The in-sample / out-of-sample gap
If is estimated on a window and the portfolio is scored on the same window, the reported risk is optimistically biased:
The gap is not a bug in your code; it is the estimation error made visible. Section 3 measures it.
2.3 Why the tree breaks the amplifier
HRP replaces the eigen-decomposition-and-invert step with three operations that are all bounded:
- a monotone map (no division by small numbers);
- a combinatorial merge rule (distances compared, never raised to a negative power);
- inverse-variance of sub-blocks, - a diagonal reciprocal, which needs only the variances, not the covariances and never a matrix inverse.
No step forms . That is the whole robustness argument, and Section 3 is its empirical face.
3. Computational Implementation - the failure, measured
A synthetic-but-honest universe: assets drawn from 4 common factors plus idiosyncratic risk, with monthly observations - the realistic regime where but not by much. We estimate on the window, build the minimum-variance portfolio, and score it against the true .
Read this table carefully - it is the entire motivation for the folder:
- MVO reports risk but delivers - a factor of 220× between the number on the slide and the number in the P&L. It is not “slightly” overfit; it is catastrophically so.
- MVO’s gross exposure is (you must borrow/short notional to hold it) and it is short 21 of the 50 assets. Shorts of that breadth are almost never economic convictions; they are the optimizer exploiting small eigenvalues.
- HRP stays fully invested (gross , no shorts), keeps its largest weight at , and its true variance is - a improvement in realized risk over MVO, despite never inverting .
- is the honest benchmark (). HRP beats it here; on a well-behaved universe HRP’s edge over shrinks - as it should, since both are low-variance, low-information allocators.
The mechanism is visible in the numbers: MVO’s weight vector is dominated by directions it cannot see reliably; HRP’s is the product of well-behaved inverse-variance splits.
4. Failure Modes & First-Principles Breakdowns
- You cannot optimize what you cannot estimate. The minimum-variance solution is sensitive to the smallest eigenvalues, which are the least reliable. More data or better estimation (shrinkage/denoising, factor models) helps; ignoring the problem does not. → Covariance Shrinkage & RMT Denoising.
- Reported risk is not realized risk. Because is fit on the same , it is biased low. The gap above is the definition of overfitting, not evidence of a coding error. Always evaluate walk-forward.
- Means are worse than covariances. Chopra–Ziemba (1993): expected-return errors dominate covariance errors by roughly twenty-fold. HRP sidesteps this by using no forecasts - which is a strength for pure risk allocation and a limitation when you have genuine alpha.
- Instability is not cured by constraints alone. Long-only and weight caps clip the symptom; the misaligned estimate remains and the ranking it induces still pushes risk toward noise. Constraints bound the damage; they do not fix the model.
- is the bar. Any sophisticated allocator must clear out-of-sample (DeMiguel–Garlappi–Uppal 2009) before its complexity is earned. HRP clears it precisely because it is nearly parameter-free.
5. References
- Markowitz, H. (1952). “Portfolio Selection.” Journal of Finance 7(1):77–91
- Michaud, R. O. (1989); Michaud & Michaud (2008), Efficient Asset Management (2nd ed.), Oxford - “estimation-error maximizer” and resampled frontiers as the industry fix.
- Chopra, V. & Ziemba, W. (1993). “The Effect of Errors in Means, Variances, and Covariances on Optimal Portfolio Choice.” J. Portfolio Management 19(2):6–11
- Best, M. & Grauer, R. (1991). “On the Sensitivity of Mean–Variance-Efficient Portfolios to Changes in Asset Means.” Review of Financial Studies 4(2):315–342
- DeMiguel, V., Garlappi, L. & Uppal, R. (2009). “Optimal Versus Naive Diversification: How Inefficient Is the Portfolio Strategy?” Review of Financial Studies 22(5):1915–1953
- López de Prado, M. (2016). “Building Diversified Portfolios that Outperform Out of Sample.” J. Portfolio Management 42(4):59–69
6. Connected Graph Bridges
- Back: 01 · From Zero · Index Hub
- Continue: 03 · Hierarchical Clustering
- Related: Mean–Variance & Error Maximization · Covariance Shrinkage & RMT Denoising · Black–Litterman (adds views without inverting a noisy naively) · VaR & Expected Shortfall