Skip to main content

Quant Analytics: from scratch to pro · Portfolio, sizing and risk metrics · Pro

Portfolio construction: mean-variance, shrinkage, risk parity

Mean-variance optimisation turns estimates of returns and covariances into weights, and magnifies their errors. Shrinkage, equal weights and risk-based weights such as inverse volatility and equal risk contribution trade a little theory for much more stability.

4 min read Reviewed Revision 1

In this lesson

  • Explain why mean-variance weights are unstable and what drives it
  • Shrink a sample correlation towards a target
  • Compute inverse-volatility weights and each asset's risk contribution
  • Choose between equal weight, risk parity and optimisation for a given amount of data

Read first: Portfolio maths: variance, correlation and the limits of diversification, Risk-adjusted return: the Sharpe and Sortino ratios

Worked numbers

Each result is recomputed from the formula shown.

WhatFormulaResult
mean-variance weight on asset 1, returns 5.0% and 5.5%(0.05 - 0.9 * 0.055) / ((0.05 - 0.9 * 0.055) + (0.055 - 0.9 * 0.05))4.8%
mean-variance weight on asset 21 - mv_w195.2%
shrunk correlation0.25 * 0.30 + 0.75 * 0.800.675
inverse-volatility weight, volatility 10%(1/0.1) / (1/0.1 + 1/0.2 + 1/0.3)54.5%
inverse-volatility weight, volatility 20%(1/0.2) / (1/0.1 + 1/0.2 + 1/0.3)27.3%
inverse-volatility weight, volatility 30%(1/0.3) / (1/0.1 + 1/0.2 + 1/0.3)18.2%
portfolio volatility, inverse-volatility weights, correlation 0.3sqrt(iv_w1**2 * 0.1**2 + iv_w2**2 * 0.2**2 + iv_w3**2 * 0.3**2 + 2 * 0.3 * (iv_w1 * iv_w2 * 0.1 * 0.2 + iv_w1 * iv_w3 * 0.1 * 0.3 + iv_w2 * iv_w3 * 0.2 * 0.3))11.95%
portfolio volatility, equal weightssqrt((0.1**2 + 0.2**2 + 0.3**2 + 2 * 0.3 * (0.1 * 0.2 + 0.1 * 0.3 + 0.2 * 0.3)) / 9)15.1%
equal weights: share of risk from the 30% asset(1/3) * (1/3) * (0.3**2 + 0.3 * 0.3 * 0.1 + 0.3 * 0.3 * 0.2) / vol_eq**256.8%
equal weights: share of risk from the 10% asset(1/3) * (1/3) * (0.1**2 + 0.3 * 0.1 * 0.2 + 0.3 * 0.1 * 0.3) / vol_eq**212.1%
inverse-volatility weights: share of risk from the 30% assetiv_w3 * (iv_w1 * 0.3 * 0.3 * 0.1 + iv_w2 * 0.3 * 0.3 * 0.2 + iv_w3 * 0.3**2) / vol_iv**233.3%

Check yourself

Three assets have volatilities 10%, 20% and 30%. What are the inverse-volatility weights?

Inverse volatilities 10, 5 and 3.33 sum to 18.33. The weights are 54.5%, 27.3% and 18.2%.

A sample correlation of 0.80 is shrunk with weight 0.25 towards a target of 0.30. What is the result?

0.25 x 0.30 + 0.75 x 0.80 = 0.675.

Why does an equal-weight portfolio of assets with different volatilities concentrate risk?

An asset's risk contribution grows with its volatility. The most volatile asset supplies most of the portfolio's risk, even at an equal weight.

Two assets have equal volatility and correlation 0.9. Changing one expected return by half a percentage point moves the optimiser from about 5% in an asset to about 95%. What does that show?

The optimiser bets on the small difference between near-identical assets, which in a sample is mostly noise. Its output is unstable.

When is equal weighting hard to beat?

When the sample is short relative to the number of assets, so that return and covariance estimates are noisy. Optimisation needs enough data to pay for its estimation error.

Key terms

Risk parityCovarianceDiversificationRebalancing

Checked facts

Every figure below carries how it was checked: Primary checked (read in the cited primary, official, academic or data source), Two sources agree, or Approximate (an order of magnitude only).

Sources

Informational content. Not investment advice.