Sub topic 2
Mean-variance optimization and the efficient frontier
Prerequisites
This chapter assumes you know expected return, standard deviation (volatility), correlation, and diversification. You should also know what an efficient frontier is and how bond duration measures interest-rate sensitivity.
Mean-variance optimization and the efficient frontier
Mean-variance optimization (MVO) finds the portfolio weights that give the highest expected return for each level of risk. The set of these best portfolios is the efficient frontier. MVO needs three inputs for each asset class: expected return, volatility, and correlation with the other classes.
For two assets, the weight that minimizes variance is:
def min_var_weight(s1, s2, rho):
"""Weight in asset 1 that minimizes two-asset portfolio variance."""
cov = rho * s1 * s2
return (s2**2 - cov) / (s1**2 + s2**2 - 2 * cov)
w = min_var_weight(0.15, 0.06, 0.2)
print(round(w, 4)) # 0.08The result, 0.08, means 8% in asset 1 and 92% in asset 2.
Limits of MVO: resampling, Black-Litterman, Monte Carlo, risk budgeting
MVO is sensitive to its inputs. A small change in an expected return can shift weights sharply, often producing extreme allocations. Common remedies include:
- Resampled efficient frontier: simulates inputs many times, optimizes each run, and averages the weights.
- Black-Litterman: blends market-equilibrium returns with the manager's own views.
- Monte Carlo simulation: tests how an allocation performs across many random return paths.
- Risk budgeting: sets how much of total portfolio risk each asset class may contribute, instead of setting dollar weights directly.
Building the strategic asset allocation
The strategic asset allocation (SAA) is the long-run target mix. To build one:
- Define asset classes that are distinct, investable, and have enough history.
- Set capital market expectations for each class.
- Run an optimizer or another method, then check the result against the investment policy statement (IPS) constraints.
- Set target weights and rebalancing ranges.
Liability-relative allocation: funding ratio and surplus
An investor with obligations, such as a pension plan, measures risk against liabilities. The funding ratio is assets divided by liabilities. The surplus is assets minus liabilities.
assets = 120.0
liabilities = 100.0
funding_ratio = assets / liabilities
surplus = assets - liabilities
print(funding_ratio, surplus) # 1.2 20.0Hedging liabilities: duration matching, cash flow matching, and return-seeking assets
Duration matching sets the bond portfolio's market value times its duration equal to the liability's present value times its duration. Cash flow matching buys bonds whose payments arrive when the liabilities fall due. Assets left over after hedging go into return-seeking assets, such as equities, to grow the surplus.
liability_pv = 100.0
liability_duration = 12.0
bond_duration = 15.0
hedge_market_value = liability_pv * liability_duration / bond_duration
print(hedge_market_value) # 80.0Exercise
A liability has a present value of 100 and a duration of 12. The hedging bond has a duration of 15. What market value of bonds hedges the liability?
Show answer
100 × 12 / 15 = 80. Hold 80 in bonds.