Quant techniques · portfolio construction

Risk parity: diversify the risk, not the dollars

Split your money evenly between stocks, bonds and commodities and you might think you’re diversified. In risk terms you aren’t: bonds are so much calmer that they contribute about 1% of the portfolio’s ups and downs. Risk parity starts from a different question: how much of the risk does each asset bring? Then it sets weights so the answer is the same for each.

1σp=w⊤Σw\sigma_p = \sqrt{w^\top\Sigma w} Portfolio volatility, for weights w and covariance matrix Σ.
2RCi=wi ∂σp∂wi=wi (Σw)iσp,∑iRCi=σp\text{RC}_i = w_i\,\dfrac{\partial\sigma_p}{\partial w_i} = \dfrac{w_i\,(\Sigma w)_i}{\sigma_p}, \qquad \sum_i \text{RC}_i = \sigma_p Risk contribution. σ_p is homogeneous of degree 1 in w, so Euler’s theorem says the contributions add up exactly to the total.
3RC1=RC2=⋯=RCn\text{RC}_1 = \text{RC}_2 = \dots = \text{RC}_n Equal risk contribution (ERC). There’s a unique long-only solution; it has no closed form for n ≥ 3.
4wi∝1/σiw_i \propto 1/\sigma_i Inverse volatility: the ERC solution when all correlations are equal, and always for two assets.
Measuring risk

Where does the risk come from?

The portfolio’s variance is w⊤Σww^\top\Sigma w, a sum over every pair of assets. To split it fairly between assets, ask how much σ_p changes when you nudge each weight, and multiply by the weight. That’s the risk contribution in step 2. Because scaling all weights by c scales σ_p by c, Euler’s theorem for homogeneous functions says the contributions add up to σ_p exactly, with nothing left over. In percentages, RCi/σp\text{RC}_i/\sigma_p is the fraction of the risk that asset i is responsible for.

(Σw)i(\Sigma w)_i is the covariance of asset i with the whole portfolio. So an asset’s risk contribution is its weight times its covariance with the portfolio, over portfolio vol. An asset that hedges the rest (negative covariance) has a negative risk contribution.

60/40 example. Stocks at 16% vol, bonds at 5%, correlation 0.2. The portfolio vol is 10.2%, and stocks contribute 92% of it. With a correlation of −0.2, stocks contribute 99.8%. A 60/40 portfolio is, in risk terms, a stock portfolio.

Four ways to allocate

Weights and risk are different pictures

stock–bond correlationstock–commodity
stocks (vol 16%)bonds (vol 5%)commodities (vol 20%)

Read each pair of bars: capital on top, risk underneath.

  • Equal weight looks balanced in dollars, but stocks and commodities carry nearly all the risk.
  • Inverse vol fixes most of it by holding more of the calm asset. It ignores correlations, so with correlated stocks and commodities their combined risk share is still above two thirds.
  • ERC makes the bottom bar exactly equal, for any correlations.
  • Minimum variance often piles into the lowest-vol asset. Its risk shares equal its weights: at the minimum-variance point every asset has the same marginal risk ∂σ/∂w, so RCi∝wi\text{RC}_i \propto w_i. (Here it’s unconstrained, so it can go short when correlations are high.)

Move the stock–bond correlation. ERC adjusts: when bonds hedge stocks (negative correlation), it needs less bond weight to give bonds a third of the risk.

Computing ERC

A fixed point you can solve one coordinate at a time

ERC is the solution of wi(Σw)i=cw_i(\Sigma w)_i = c for all i, rescaled to sum to 1. A neat way to find it: solve xi(Σx)i=1x_i(\Sigma x)_i = 1, one coordinate at a time. For coordinate i that’s a quadratic in xix_i:

Σii xi2+(∑j≠iΣijxj) xi−1=0⟹xi=−bi+bi2+4Σii2Σii\Sigma_{ii}\,x_i^2 + \Big(\sum_{j \ne i}\Sigma_{ij}x_j\Big)\,x_i - 1 = 0 \quad\Longrightarrow\quad x_i = \frac{-b_i + \sqrt{b_i^2 + 4\Sigma_{ii}}}{2\Sigma_{ii}}

Cycle through the coordinates until nothing changes, then normalise. This is cyclical coordinate descent on the convex function 12x⊤Σx−∑iln⁡xi\tfrac12 x^\top\Sigma x - \sum_i \ln x_i, whose minimiser is exactly ERC (Roncalli’s formulation), so it converges.

import numpy as np

def erc_weights(Sigma, iters=500, tol=1e-12):
    """Equal risk contribution weights by cyclical coordinate descent."""
    n = len(Sigma)
    x = 1 / np.sqrt(np.diag(Sigma))                    # start from inverse vol
    for _ in range(iters):
        x_old = x.copy()
        for i in range(n):
            a = Sigma[i, i]
            b = Sigma[i] @ x - a * x[i]
            x[i] = (-b + np.sqrt(b * b + 4 * a)) / (2 * a)
        if np.max(np.abs(x - x_old)) < tol:
            break
    return x / x.sum()

def risk_contributions(w, Sigma):
    sw = Sigma @ w
    return w * sw / (w @ sw)                           # fractions summing to 1

vol = np.array([0.16, 0.05, 0.20])
corr = np.array([[1, -0.2, 0.3], [-0.2, 1, 0], [0.3, 0, 1]])
Sigma = np.outer(vol, vol) * corr
w = erc_weights(Sigma)
print(w.round(3), risk_contributions(w, Sigma).round(3))   # [0.189 0.679 0.133] [0.333 0.333 0.333]
The catch

Risk parity needs leverage

ERC holds a lot of the low-vol asset, so the portfolio is calm: 5.3% vol in the example, against about 10% for 60/40. To reach the same risk you need about 1.9× leverage. The argument for doing that is that low-vol assets have historically paid more return per unit of risk than high-vol ones (the low-beta anomaly), so leveraging a balanced, high-Sharpe portfolio beats holding an unbalanced one unlevered.

The costs are real: financing, margin calls, and exposure to times when the usual hedges stop working. In 2022, stocks and bonds fell together, and leveraged risk-parity funds had a very bad year.

Where people slip in interviews

  • Thinking equal weights means equal risk. Volatility differences dominate.
  • Calling inverse vol “risk parity” in general. It equalises risk only when all correlations are equal.
  • Forgetting that risk contributions can be negative. A hedge reduces total risk and has RC < 0.
  • Using marginal risk as the contribution. RC is weight × marginal risk; the marginal risk alone doesn’t add up to σ_p.
  • Ignoring estimation. ERC uses only Σ, no expected returns, which is part of its appeal: covariances are much easier to estimate than means.
Practice

Try these before you open the answer

Warm-upTwo assets with vols of 10% and 30%. What are the ERC weights?
Show answer

With two assets, ERC is inverse vol whatever the correlation: weights ∝ 1/0.1 and 1/0.3, so 75% and 25%.

Two assetsProve that with two assets, ERC gives w₁σ₁ = w₂σ₂ for any correlation.
Show answer

RC1∝w1(w1σ12+w2ρσ1σ2)\text{RC}_1 \propto w_1(w_1\sigma_1^2 + w_2\rho\sigma_1\sigma_2) and RC2∝w2(w2σ22+w1ρσ1σ2)\text{RC}_2 \propto w_2(w_2\sigma_2^2 + w_1\rho\sigma_1\sigma_2). Setting them equal: w12σ12=w22σ22w_1^2\sigma_1^2 = w_2^2\sigma_2^2, because the cross terms w1w2ρσ1σ2w_1w_2\rho\sigma_1\sigma_2 are the same on both sides. So w1σ1=w2σ2w_1\sigma_1 = w_2\sigma_2.

EulerShow that the risk contributions add up to σ_p.
Show answer
∑iwi(Σw)iσp=w⊤Σwσp=σp2σp=σp\sum_i w_i\frac{(\Sigma w)_i}{\sigma_p} = \frac{w^\top\Sigma w}{\sigma_p} = \frac{\sigma_p^2}{\sigma_p} = \sigma_p
60/40Stocks 16% vol, bonds 5% vol, correlation 0.2. What share of a 60/40 portfolio's risk comes from stocks?
Show answer

Σw=(0.6×0.0256+0.4×0.0016, 0.6×0.0016+0.4×0.0025)=(0.01600, 0.00196)\Sigma w = (0.6 \times 0.0256 + 0.4 \times 0.0016,\ 0.6 \times 0.0016 + 0.4 \times 0.0025) = (0.01600,\ 0.00196), where 0.0016 = 0.2 × 0.16 × 0.05. Variance = 0.6 × 0.016 + 0.4 × 0.00196 = 0.01038. Stocks’ share = 0.0096/0.01038 ≈ 92%.

LeverageAn ERC portfolio has 5.3% vol. What leverage brings it to 10% vol, and what happens to its Sharpe ratio (ignoring financing costs)?
Show answer

10/5.3 ≈ 1.9×. Leverage scales return and vol by the same factor, so the Sharpe ratio doesn’t change.

Equal correlationsShow that if every pair of assets has the same correlation ρ, ERC is inverse vol.
Show answer

Try wi=c/σiw_i = c/\sigma_i. Then (Σw)i=σi∑jρijσjwj=c σi(1+(n−1)ρ)(\Sigma w)_i = \sigma_i \sum_j \rho_{ij}\sigma_j w_j = c\,\sigma_i\left(1 + (n-1)\rho\right), so wi(Σw)i=c2(1+(n−1)ρ)w_i(\Sigma w)_i = c^2(1 + (n-1)\rho), the same for every i.

The weights and risk shares in the text were computed with the code above. The figure solves ERC in your browser as you move the correlations.