Core Path · L3.1.04

The minimum-variance portfolio

12 minPortfoliosOptimisation

By the end you will be able to

  1. 1Calculate the minimum-variance weights and volatility of two assets with the closed-form formula.
  2. 2Derive the formula twice: by setting a derivative to zero, and with a Lagrange multiplier.
  3. 3Say when the minimum-variance portfolio needs a short sale (ρ > σ₂/σ₁) and which asset is shorted.
  4. 4Recognise the same calculation in a minimum-variance hedge ratio.

Why it matters

Of all the ways to split £1bn between equities and government bonds, exactly one has the lowest risk. For RiskAtoms Group it holds 14.65% in equities and has a volatility of 5.41%. With a different pair, the lowest-risk answer tells the group to sell one of its assets short. Why?

Core explanation

The nose of the curve

L3.1.03: Two correlated assets drew every mix of two assets as a curve on the risk-return chart, bulging to the left. Its leftmost point, the nose, is the minimum-variance portfolio. It matters for three reasons. It is where the efficient part of the curve begins (L3.1.05: The efficient frontier). It is what an investor should hold who cares only about risk, such as a treasurer parking a reserve. And its maths is exactly the maths of hedging: a hedge is a two-asset portfolio built to have as little variance as possible.

L3.1.02: Two independent assets found the nose when the correlation was zero: the calmer asset gets more weight. With a correlation the answer has one more ingredient, the covariance σ12\sigma_{12}:

w1∗=σ22−ρ σ1σ2σ12+σ22−2ρ σ1σ2,w2∗=1−w1∗w_1^* = \frac{\sigma_2^2 - \rho\,\sigma_1\sigma_2}{\sigma_1^2 + \sigma_2^2 - 2\rho\,\sigma_1\sigma_2}, \qquad w_2^* = 1 - w_1^*

Read the top line as a tug of war. The σ22\sigma_2^2 pulls money towards asset 1 when asset 2 is volatile. The −ρ σ1σ2-\rho\,\sigma_1\sigma_2 pulls it away when the two move together, because then asset 1 offers little offset. The bottom line is the variance of the difference R1−R2R_1 - R_2: always positive, so it only scales the answer.

For RiskAtoms Group's equities and bonds (ρ = −0.10) the top line is 0.0036+0.00096=0.004560.0036 + 0.00096 = 0.00456 and the bottom 0.031120.03112, so w1∗=14.65%w_1^* = 14.65\%. Its volatility, 5.41%, is below the bonds' 6%, and its expected return, 4.01%, is above their 3.5%.

When the answer is a short sale

The top line turns negative when ρ σ1σ2>σ22\rho\,\sigma_1\sigma_2 > \sigma_2^2, that is when ρ>σ2/σ1\rho > \sigma_2/\sigma_1. Then the lowest risk comes from selling asset 1 short and holding more than 100% of asset 2. Why would that ever reduce risk? Because when the two are strongly correlated, the volatile asset moves like an amplified copy of the calm one. Shorting a little of it cancels part of the calm asset's own swings. Only the more volatile asset can be shorted: for the calmer one the condition would need a correlation above 1.

Predict, then reveal: does the lowest-risk mix need a short sale?

The emerging-market case is a warning as much as a result. The short position is small, and it lowers the volatility from 16.00% (global equities alone) to just 15.99%. When two assets are highly correlated, the minimum-variance answer is fragile: a small change in the estimated correlation swings the weights a lot, for very little gain. L3.1.15: Estimation error, shrinkage and Black-Litterman returns to this.

The same maths in a hedge

L2.6.02: Hedging with forwards and futures hedged a position SS by selling hh futures FF. The hedged position's variance is σS2−2h ρ σSσF+h2σF2\sigma_S^2 - 2h\,\rho\,\sigma_S\sigma_F + h^2\sigma_F^2, a parabola in hh. Setting its derivative to zero gives h∗=ρ σS/σFh^* = \rho\,\sigma_S/\sigma_F, the minimum-variance hedge ratio. It is the two-asset problem with the futures weight free and the position's weight fixed at 1.

The formal version

Two derivations of the same weight. The first uses the constraint w1+w2=1w_1 + w_2 = 1 to remove one unknown and then sets a single derivative to zero.

It is a minimum because the second derivative is positive: d2σp2dw2=2(σ12+σ22−2σ12)=2Var⁡(R1−R2)>0\frac{d^2\sigma_p^2}{dw^2} = 2\big(\sigma_1^2 + \sigma_2^2 - 2\sigma_{12}\big) = 2\operatorname{Var}(R_1 - R_2) > 0.

Substituting is easy with two weights but hopeless with fifty. The general tool keeps every weight and handles the constraint with a Lagrange multiplier (M-B04: Optimisation and Lagrange multipliers). It is the method L3.1.07: Mean-variance optimisation uses for any number of assets.

What the multiplier tells you. Multiply the first condition by w1w_1, the second by w2w_2, and add:

2(w12σ12+2w1w2 σ12+w22σ22)=λ (w1+w2)2 σ∗2=λ\begin{aligned} 2\big(w_1^2\sigma_1^2 + 2w_1w_2\,\sigma_{12} + w_2^2\sigma_2^2\big) &= \lambda\,(w_1 + w_2) \\ 2\,\sigma_*^2 &= \lambda \end{aligned}

And each condition, divided by 2, reads w1σ12+w2σ12=Cov⁡(R1,Rp)w_1\sigma_1^2 + w_2\sigma_{12} = \operatorname{Cov}(R_1, R_p) on the left. So at the minimum:

Cov⁡(R1,Rp)=Cov⁡(R2,Rp)=λ2=σ∗2\operatorname{Cov}(R_1, R_p) = \operatorname{Cov}(R_2, R_p) = \frac{\lambda}{2} = \sigma_*^2

Every asset has the same covariance with the minimum-variance portfolio. If one had a higher covariance, moving a little money out of it into the other would lower the variance, so you were not at the minimum. The multiplier λ is the price of the constraint: the extra variance per unit of extra money you are forced to invest.

The minimum variance itself. Use σ∗2=Cov⁡(R1,Rp)=w1∗σ12+w2∗σ12\sigma_*^2 = \operatorname{Cov}(R_1, R_p) = w_1^*\sigma_1^2 + w_2^*\sigma_{12} with w1∗=(σ22−σ12)/Kw_1^* = (\sigma_2^2 - \sigma_{12})/K and w2∗=(σ12−σ12)/Kw_2^* = (\sigma_1^2 - \sigma_{12})/K, where K=σ12+σ22−2σ12K = \sigma_1^2 + \sigma_2^2 - 2\sigma_{12}:

σ∗2=(σ22−σ12) σ12+(σ12−σ12) σ12K=σ12σ22−σ12σ12+σ12σ12−σ122K=σ12σ22−σ122K=σ12σ22 (1−ρ2)σ12+σ22−2ρ σ1σ2\begin{aligned} \sigma_*^2 &= \frac{(\sigma_2^2 - \sigma_{12})\,\sigma_1^2 + (\sigma_1^2 - \sigma_{12})\,\sigma_{12}}{K} = \frac{\sigma_1^2\sigma_2^2 - \sigma_{12}\sigma_1^2 + \sigma_1^2\sigma_{12} - \sigma_{12}^2}{K} \\ &= \frac{\sigma_1^2\sigma_2^2 - \sigma_{12}^2}{K} = \frac{\sigma_1^2\sigma_2^2\,(1 - \rho^2)}{\sigma_1^2 + \sigma_2^2 - 2\rho\,\sigma_1\sigma_2} \end{aligned}

At ρ=0\rho = 0 it is the result of L3.1.02: Two independent assets; at ρ=−1\rho = -1 the top is zero: the perfect hedge.

See itThe Lagrange picture

Each ellipse joins weights with the same variance. The diagonal line is every pair of weights that adds up to 1. Slide along the line and watch the arrows.

−0.5−0.50.00.00.50.51.01.01.51.5w₁ (equities)w₂ (bonds)

■ gradient of the variance, 2Σw

■ gradient of the constraint, (1, 1)

Variance here: 0.00933 (volatility 9.66%)

Angle between the arrows: 41.7°

Minimum (ring): w₁ = 14.7%

The arrows point different ways: sliding along the line still crosses smaller ellipses, so the variance can fall further.

When it needs a short sale. Since K>0K > 0:

w1∗<0  ⟺  σ22−ρ σ1σ2<0  ⟺  ρ>σ2σ1,w2∗<0  ⟺  ρ>σ1σ2\begin{aligned} w_1^* < 0 \iff \sigma_2^2 - \rho\,\sigma_1\sigma_2 < 0 \iff \rho > \frac{\sigma_2}{\sigma_1}, \qquad w_2^* < 0 \iff \rho > \frac{\sigma_1}{\sigma_2} \end{aligned}

A correlation cannot exceed 1, so only the asset with the larger volatility can ever have a negative weight.

Try it

The orange line is the tangent at your weight; its slope is the derivative. Drag the weight until the tangent is flat and the slope reads close to zero, then press “Go to the bottom” to check. Then press “Try EM and global equities”: the bottom moves into the shaded short-sale region. Drag ρ down past σ₂/σ₁ and watch it come back.

Try itFind where the slope is zero

Slope dσ²/dw at your weight
0.0282
Variance0.00933
Volatility9.66%
w* (formula)14.7%
σ at w*5.41%
Threshold σ₂/σ₁0.375
variance σp²(w)tangent at your weight
0.0000.0200.0400.060−50%−25%0%25%50%75%100%125%150%weight in asset 1 (shaded: a short sale)variance

The lowest point is at 14.7%, inside 0% to 100%: no short sale needed.

Worked example

Two lowest-risk portfolios for RiskAtoms Group

Global equities and government bonds, ρ = −0.10

Step 1 of 5
  1. 1

    Covariance

    σ12=−0.10×0.16×0.06=−0.00096\sigma_{12} = -0.10 \times 0.16 \times 0.06 = -0.00096

Emerging-market and global equities, ρ = 0.75

Step 1 of 3
  1. 1

    Which asset is more volatile?

    Emerging markets (22%) is asset 1; global equities (16%) is asset 2. Threshold σ2/σ1=16/22=0.727\sigma_2/\sigma_1 = 16/22 = 0.727; ρ = 0.75 is above it.

Pair (more volatile first)ρσ₂/σ₁w* in the firstσ*
Global eq. / Gov. bonds−0.100.37514.7%5.41%
Corp. bonds / Gov. bonds0.700.7507.3%5.99%
Property / Global eq.0.600.88935.5%15.05%
EM eq. / Global eq.0.750.727−3.8%15.99%

Regulatory lens

A minimum-variance answer with a negative weight is only useful if the investor may sell short. Many cannot. UCITS funds may not make uncovered short sales (Article 89 of Directive 2009/65/EC). Where short selling is allowed it is supervised: under the EU Short Selling Regulation (Regulation (EU) No 236/2012), a net short position in a company's shares must be reported to the regulator from 0.1% of its issued share capital and published from 0.5%. Insurers and pension funds usually run long-only mandates. That is why L3.1.07: Mean-variance optimisation solves the problem again with a no-short-sales constraint.

Spark Atoms

Spark AtomLagrange's multipliers came from mechanics
Joseph-Louis Lagrange set out his method in Mécanique analytique (1788) to handle bodies that must move along a surface or a rod: the multiplier turned out to be the force the constraint exerts. In a portfolio, the “force” is the extra variance the budget constraint costs.
Spark AtomLow risk, not low return
Theory says lower risk should mean lower expected return. Yet in many equity markets, the least volatile shares have historically earned returns about as high as the most volatile ones, or higher. Researchers call it the low-volatility anomaly, and it is one reason minimum-variance equity funds became popular.

Key takeaways

  • Minimum-variance weight: w₁* = (σ₂² − ρσ₁σ₂) / (σ₁² + σ₂² − 2ρσ₁σ₂); its variance is σ₁²σ₂²(1 − ρ²) / (σ₁² + σ₂² − 2ρσ₁σ₂).
  • Calculus: substitute w₂ = 1 − w₁ and set the derivative to zero. Lagrange: keep both weights, add −λ(w₁ + w₂ − 1), set every partial derivative to zero.
  • At the minimum every asset has the same covariance with the portfolio, σ*², and λ = 2σ*².
  • The more volatile asset is sold short when ρ > σ₂/σ₁. The less volatile one never is.
  • For the group's equities and bonds: 14.65% in equities, 5.41% volatility, 4.01% expected return.
  • A minimum-variance hedge ratio, h* = ρσ_S/σ_F, is the same calculation.

Reaction

Check what stuck

Question 1 · objective 1

Asset 1 has 20% volatility, asset 2 has 10%, and their correlation is 0.2. What weight in asset 1 gives the minimum-variance portfolio, in per cent, to one decimal?

%

Question 2 · objective 1

Same two assets. What is the volatility of the minimum-variance portfolio, in per cent, to two decimals?

%

Question 3 · objective 3

Asset 1 has 30% volatility, asset 2 has 20%, correlation 0.8. What is the minimum-variance weight in asset 1, in per cent, to one decimal? (It may be negative.)

%

Question 4 · objective 2

At the minimum-variance portfolio of two assets, which is true?

Question 5 · objective 4

A position's daily changes have volatility 2%, a futures contract's 2.5%, and their correlation is 0.9. What is the minimum-variance hedge ratio, as a decimal?

Glossary

Minimum-variance portfolio
The portfolio with the lowest possible variance among all mixes whose weights add up to 1.
Constraint
A condition the answer must meet, here that the weights add up to 1.
Lagrange method
A method for optimising with constraints: add each constraint, times a new unknown λ, to the objective and set all partial derivatives to zero.
Lagrange multiplier
The new unknown λ in the Lagrange method. It measures how much the optimum would change if the constraint were relaxed a little.
Gradient
The vector of partial derivatives of a function: it points in the direction the function rises fastest.
Minimum-variance hedge ratio
The amount of a hedging instrument per unit of exposure that minimises the variance of the hedged position.

Deep Dives & Origins

Deep Dives

  • E. J. Elton, M. J. Gruber, S. J. Brown and W. N. Goetzmann, Modern Portfolio Theory and Investment Analysis, Wiley, the chapter on the minimum-risk portfolio. Intermediate.
  • M. Baker, B. Bradley and J. Wurgler, “Benchmarks as Limits to Arbitrage: Understanding the Low-Volatility Anomaly”, Financial Analysts Journal, 67(1), 2011. Intermediate.

Origins

  • H. Markowitz, “Portfolio Selection”, Journal of Finance, 7(1), 1952, pp. 77–91.
  • J.-L. Lagrange, Mécanique analytique, Paris, 1788.
  • Regulation (EU) No 236/2012 on short selling and certain aspects of credit default swaps, Articles 5 and 6, as amended by Commission Delegated Regulation (EU) 2022/27.
  • Directive 2009/65/EC (UCITS), Article 89.
  • M. Baker, B. Bradley and J. Wurgler, “Benchmarks as Limits to Arbitrage: Understanding the Low-Volatility Anomaly”, Financial Analysts Journal, 67(1), 2011.

Watch this lesson

Video version

Prefer to watch? The same lesson as a 12-minute video will sit here, made from this page's script.