Hierarchical risk parity: allocate through the correlation tree
Mean–variance optimisation can produce extreme weights when a noisy covariance matrix is inverted. Risk parity avoids expected-return estimates but still needs a portfolio construction rule. Hierarchical risk parity (HRP) uses the correlation structure to group similar assets, then allocates risk recursively through the resulting tree.
Cluster weight follows inverse risk
Toy two-cluster split: cluster B volatility fixed at 20%; illustrates inverse-risk allocation.
From correlation to a tree
Given a sample correlation matrix , define a distance between assets by
This maps correlation to distance zero and correlation to distance one. Apply hierarchical clustering (the original proposal uses a linkage method such as single linkage) to construct a dendrogram. The tree groups assets that move similarly without requiring the optimiser to invert the full covariance matrix.
Reorder assets according to the leaves of the tree so related assets sit near one another in a quasi-diagonal covariance matrix. This is a seriation step: it exposes blocks of within-cluster dependence and gives a meaningful ordering for recursive allocation.
Recursive bisection
Start with the full ordered list and split it into two subclusters. Estimate each subcluster’s variance using inverse-variance weights within that cluster. If are the normalised inverse-variance weights for cluster , its variance estimate is
Allocate the parent capital between the two children in inverse proportion to their cluster variances:
Then recurse within each child until reaching individual assets. High-variance clusters receive less capital at their split. Unlike classical risk parity, HRP does not solve the exact equal-risk-contribution equations; the bisection is a heuristic risk allocation built on a hierarchy.
A small example
Suppose the top split has cluster A variance and cluster B variance , measured on the same return horizon. The split allocates
The lower-variance cluster gets four times the capital. HRP then repeats the same idea within A and B. These are cluster-level variance estimates under the chosen within-cluster weighting rule; the final portfolio’s total risk is not guaranteed to match an exact target or equalise each asset’s marginal contribution.
Why the tree can help
Highly correlated assets are treated as members of one cluster. Adding another near-duplicate asset does not automatically give that group the same extra influence it would have under naive equal weighting. The method also avoids a single unstable global covariance inverse, though it still depends on estimated correlations and variances.
HRP is not parameter-free
The tree changes with the asset universe, sample window, distance metric, linkage method, and covariance estimator. Small data changes can rearrange cluster boundaries and alter recursive splits. Quasi-diagonalisation makes the matrix easier to work with; it does not denoise the estimates by itself.
Compare HRP with equal weight, inverse volatility, classical risk parity, and constrained minimum variance using the same point-in-time universe and rebalance schedule. Evaluate turnover, transaction costs, concentration, drawdown, and out-of-sample risk—not just Sharpe ratio. A backtest that selects the linkage, window, and constraints after examining the same period can overfit just like any other strategy.
Common mistakes
- Calling HRP an exact equal-risk-contribution solution. It uses recursive cluster variance splits and does not generally solve the risk contribution equations.
- Assuming clustering eliminates estimation error. Correlation and variance estimates still drive the result.
- Ignoring linkage and ordering conventions. They can change the dendrogram and therefore the allocation.
- Comparing strategies with different leverage or transaction-cost treatment. Risk-adjusted comparisons need consistent assumptions.
Practice
DistanceWhat is dᵢⱼ when two assets have correlation 0.5? What does zero distance mean?Show answer
. Zero distance corresponds to perfect positive correlation, .
BisectionTwo clusters have variances 9 and 3. What capital fractions does the HRP split assign?Show answer
The first gets and the second gets . The lower-variance cluster receives the larger allocation.
MethodDoes HRP guarantee the same risk contribution from every asset?Show answer
No. It allocates recursively using cluster variance estimates; it is a heuristic and does not generally satisfy equal marginal or total risk contributions at the individual-asset level.
Further reading: Marcos López de Prado (2016), “Building Diversified Portfolios that Outperform Out-of-Sample,” Journal of Portfolio Management 42(4), 59–69. SSRN paper record.