Markets: A Rigorous Course

14.1 Mean–variance portfolios

Core about 25 min

Motivation

M06 used the tangency portfolio to derive the CAPM. Here you derive it properly, because every risk-budgeting and strategy-combination rule in this module is a special case or a robust replacement of it.

Setup

nn risky assets with expected returns μ∈Rn\mu \in \mathbb R^n and positive-definite covariance Σ\Sigma. Portfolio weights ww with 1⊤w=1\mathbf 1^\top w = 1 (shorting allowed unless stated). Portfolio mean w⊤μw^\top\mu, variance w⊤Σww^\top\Sigma w. Define the scalars

A=1⊤Σ−11,B=1⊤Σ−1μ,C=μ⊤Σ−1μ,D=AC−B2.A = \mathbf 1^\top\Sigma^{-1}\mathbf 1, \quad B = \mathbf 1^\top\Sigma^{-1}\mu, \quad C = \mu^\top\Sigma^{-1}\mu, \quad D = AC - B^2.

A>0A > 0 and C>0C > 0 because Σ−1\Sigma^{-1} is positive definite. By Cauchy–Schwarz in the inner product ⟨x,y⟩=x⊤Σ−1y\langle x, y\rangle = x^\top\Sigma^{-1}y, B2≤ACB^2 \le AC, with equality iff μ∝1\mu \propto \mathbf 1; assume μ\mu is not proportional to 1\mathbf 1, so D>0D > 0.

14.1.1The minimum-variance frontier#

Proposition 14.1Global minimum variance, GMV

The solution of min⁡ww⊤Σw\min_w w^\top\Sigma w subject to 1⊤w=1\mathbf 1^\top w = 1 is

wGMV=Σ−11A,σGMV2=1A,μGMV=BA.(14.1)w_{GMV} = \frac{\Sigma^{-1}\mathbf 1}{A}, \qquad \sigma^2_{GMV} = \frac1A, \qquad \mu_{GMV} = \frac BA. \tag{14.1}
Proof

Lagrangian L=w⊤Σw−2γ(1⊤w−1)\mathcal L = w^\top\Sigma w - 2\gamma(\mathbf 1^\top w - 1). Stationarity: 2Σw−2γ1=02\Sigma w - 2\gamma\mathbf 1 = 0, so w=γΣ−11w = \gamma\Sigma^{-1}\mathbf 1. The constraint gives γA=1\gamma A = 1. The objective is strictly convex and the constraint affine, so the stationary point is the unique global minimum. Then w⊤Σw=γ21⊤Σ−11=1/Aw^\top\Sigma w = \gamma^2\mathbf 1^\top\Sigma^{-1}\mathbf 1 = 1/A and w⊤μ=B/Aw^\top\mu = B/A.∎

Note that ΣwGMV=1/A\Sigma w_{GMV} = \mathbf 1/A: every asset has the same marginal contribution to variance at the GMV portfolio.

Proposition 14.2Frontier portfolios

For a target mean mm, the solution of min⁡ww⊤Σw\min_w w^\top\Sigma w subject to 1⊤w=1\mathbf 1^\top w = 1 and μ⊤w=m\mu^\top w = m is

w(m)=(C−Bm) Σ−11+(Am−B) Σ−1μD,σ2(m)=Am2−2Bm+CD.(14.2)w(m) = \frac{(C - Bm)\,\Sigma^{-1}\mathbf 1 + (Am - B)\,\Sigma^{-1}\mu}{D}, \qquad \sigma^2(m) = \frac{Am^2 - 2Bm + C}{D}. \tag{14.2}
Proof

L=12w⊤Σw−λ1(1⊤w−1)−λ2(μ⊤w−m)\mathcal L = \tfrac12 w^\top\Sigma w - \lambda_1(\mathbf 1^\top w - 1) - \lambda_2(\mu^\top w - m). Stationarity: w=λ1Σ−11+λ2Σ−1μw = \lambda_1\Sigma^{-1}\mathbf 1 + \lambda_2\Sigma^{-1}\mu. The two constraints become the linear system

Aλ1+Bλ2=1,Bλ1+Cλ2=m,A\lambda_1 + B\lambda_2 = 1, \qquad B\lambda_1 + C\lambda_2 = m,

with determinant D>0D > 0, so λ1=(C−Bm)/D\lambda_1 = (C - Bm)/D and λ2=(Am−B)/D\lambda_2 = (Am - B)/D. For the variance, w⊤Σw=w⊤(λ11+λ2μ)=λ1+λ2m=(C−Bm+Am2−Bm)/Dw^\top\Sigma w = w^\top(\lambda_1\mathbf 1 + \lambda_2\mu) = \lambda_1 + \lambda_2 m = (C - Bm + Am^2 - Bm)/D.∎

In (σ,m)(\sigma, m) space the frontier is the hyperbola σ2=(Am2−2Bm+C)/D\sigma^2 = (Am^2 - 2Bm + C)/D, with vertex at the GMV point (1/A,B/A)(1/\sqrt A, B/A).

14.1.2Tangency and two-fund separation#

Proposition 14.3Tangency portfolio

With a risk-free asset at rfr_f and μGMV>rf\mu_{GMV} > r_f (i.e. B−Arf>0B - Ar_f > 0), the risky portfolio that maximises the Sharpe ratio (w⊤μ−rf)/w⊤Σw(w^\top\mu - r_f)/\sqrt{w^\top\Sigma w} over 1⊤w=1\mathbf 1^\top w = 1 is

wT=Σ−1(μ−rf1)1⊤Σ−1(μ−rf1)=Σ−1(μ−rf1)B−Arf.(14.3)w_T = \frac{\Sigma^{-1}(\mu - r_f\mathbf 1)}{\mathbf 1^\top\Sigma^{-1}(\mu - r_f\mathbf 1)} = \frac{\Sigma^{-1}(\mu - r_f\mathbf 1)}{B - Ar_f}. \tag{14.3}
Proof

Let e=μ−rf1e = \mu - r_f\mathbf 1. Allocate x∈Rnx \in \mathbb R^n to risky assets and 1−1⊤x1 - \mathbf 1^\top x to the risk-free asset. Excess return is x⊤ex^\top e, variance x⊤Σxx^\top\Sigma x. Minimise variance for a target excess return π\pi: L=12x⊤Σx−η(x⊤e−π)\mathcal L = \tfrac12x^\top\Sigma x - \eta(x^\top e - \pi) gives x=ηΣ−1ex = \eta\Sigma^{-1}e. Every efficient portfolio is therefore a positive multiple of Σ−1e\Sigma^{-1}e (for π>0\pi > 0). The fully invested risky portfolio on this ray is obtained by normalising: wT=Σ−1e/1⊤Σ−1ew_T = \Sigma^{-1}e/\mathbf 1^\top\Sigma^{-1}e. The Sharpe ratio is scale-invariant, so it is the same for every point on the ray, and the ray is the efficient set, so wTw_T maximises it. The normaliser is positive by the assumption B−Arf>0B - Ar_f > 0.∎

Corollary 14.4Maximum Sharpe ratio

ST2=e⊤Σ−1e=C−2Brf+Arf2S_T^2 = e^\top\Sigma^{-1}e = C - 2Br_f + Ar_f^2.

Proof

With x=Σ−1ex = \Sigma^{-1}e: x⊤e=e⊤Σ−1ex^\top e = e^\top\Sigma^{-1}e and x⊤Σx=e⊤Σ−1ex^\top\Sigma x = e^\top\Sigma^{-1}e, so S=e⊤Σ−1e/e⊤Σ−1eS = e^\top\Sigma^{-1}e/\sqrt{e^\top\Sigma^{-1}e}. Expand e⊤Σ−1ee^\top\Sigma^{-1}e.∎

Proposition 14.5Two-fund separation

(i) Without a risk-free asset, every frontier portfolio is an affine combination of any two distinct frontier portfolios. (ii) With a risk-free asset, every mean–variance investor holds a combination of the risk-free asset and the same tangency portfolio wTw_T; only the proportion depends on risk aversion.

Proof

(i) By (14.2), w(m)w(m) is affine in mm: w(m)=a+bmw(m) = a + bm for fixed vectors a,ba, b. For m1≠m2m_1 \ne m_2 and any mm, put α=(m−m2)/(m1−m2)\alpha = (m - m_2)/(m_1 - m_2); then αw(m1)+(1−α)w(m2)=a+b(αm1+(1−α)m2)=a+bm=w(m)\alpha w(m_1) + (1-\alpha)w(m_2) = a + b(\alpha m_1 + (1-\alpha)m_2) = a + bm = w(m). (ii) In the proof of 14.3 every efficient portfolio is x=ηΣ−1e=η(B−Arf)wTx = \eta\Sigma^{-1}e = \eta(B - Ar_f)w_T: a scalar multiple of wTw_T in risky assets, the remainder in the risk-free asset. An investor maximising ER−γ2Var⁡R\mathbb E R - \tfrac\gamma2\operatorname{Var}R chooses x=Σ−1e/γx = \Sigma^{-1}e/\gamma, again on this ray.∎

14.1.3A four-asset example#

Worked example

Four building blocks for an Indian investor, with illustrative annual inputs (not forecasts): Nifty 50 (μ 12%, σ 16%), gold in INR (9%, 14%), a 10-year G-sec fund (7%, 5%), and a trend-following futures strategy (15%, 20%). Correlations: Nifty–gold 0, Nifty–G-sec 0.1, Nifty–trend 0.3, gold–G-sec 0.1, gold–trend 0.1, G-sec–trend 0. Risk-free 6.5%.

Portfolio Nifty Gold G-sec Trend μ σ Sharpe
GMV (14.1) 0.045 0.076 0.840 0.039 7.69% 4.68% 0.25
Tangency (14.3) 0.272 0.182 0.231 0.315 11.24% 9.36% 0.507
Equal weight 0.25 0.25 0.25 0.25 10.75% 8.50% 0.500

Here A=456.6A = 456.6, B=35.09B = 35.09, C=2.890C = 2.890, D=87.85D = 87.85, and e⊤Σ−1e=0.507\sqrt{e^\top\Sigma^{-1}e} = 0.507. The individual Sharpe ratios are 0.34, 0.18, 0.10 and 0.43; the tangency combination beats every one of them. An investor who wants 6% volatility holds 0.06/0.0936=64%0.06/0.0936 = 64\% in the tangency portfolio and 36% in the risk-free asset. The code (m14_portfolio.py) checks (14.1)–(14.3) against scipy.optimize and checks two-fund separation numerically.

Note how close equal weighting is to the optimum (0.500 against 0.507). That is not a coincidence of this example; it is the subject of the next section.

Create a free account

Reading is open to everyone. An account keeps your progress, answers, notes and code drafts, and gives you the study plan, the journals and the simulator. Running code needs an account approved for it.