Math Atoms
By the end you will be able to
- 1Calculate the minimum-variance weights and volatility of two assets with the closed-form formula.
- 2Derive the formula twice: by setting a derivative to zero, and with a Lagrange multiplier.
- 3Say when the minimum-variance portfolio needs a short sale (ρ > σ₂/σ₁) and which asset is shorted.
- 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 :
Read the top line as a tug of war. The pulls money towards asset 1 when asset 2 is volatile. The pulls it away when the two move together, because then asset 1 offers little offset. The bottom line is the variance of the difference : always positive, so it only scales the answer.
For RiskAtoms Group's equities and bonds (ρ = −0.10) the top line is and the bottom , so . 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 , that is when . 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 by selling futures . The hedged position's variance is , a parabola in . Setting its derivative to zero gives , 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 to remove one unknown and then sets a single derivative to zero.
It is a minimum because the second derivative is positive: .
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 , the second by , and add:
And each condition, divided by 2, reads on the left. So at the minimum:
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 with and , where :
At it is the result of L3.1.02: Two independent assets; at 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.
■ 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 :
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
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
Covariance
Emerging-market and global equities, ρ = 0.75
Step 1 of 3- 1
Which asset is more volatile?
Emerging markets (22%) is asset 1; global equities (16%) is asset 2. Threshold ; ρ = 0.75 is above it.
| Pair (more volatile first) | ρ | σ₂/σ₁ | w* in the first | σ* |
|---|---|---|---|---|
| Global eq. / Gov. bonds | −0.10 | 0.375 | 14.7% | 5.41% |
| Corp. bonds / Gov. bonds | 0.70 | 0.750 | 7.3% | 5.99% |
| Property / Global eq. | 0.60 | 0.889 | 35.5% | 15.05% |
| EM eq. / Global eq. | 0.75 | 0.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
Spark AtomLow risk, not low return
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.