Skip to main content

Optimal Risky Portfolio (Maximum Sharpe, Two Assets)

IntermediateQuantitative FinanceAlso known as: optimization methods, tangency portfolio, maximum Sharpe ratio, mean variance optimization, Lagrange

Finds: the risky mix with the best return per unit of risk.

When to use it: Use it to find the mix of two risky assets with the highest Sharpe ratio. It comes from an optimization: maximize the Sharpe ratio subject to weights adding to 1, and set the derivative to zero. For more than two assets the same solution is found with matrix algebra or numerical optimizers.

The formula

w1∗\displaystyle w_{1}^{*}=(μ1−rf)σ22−(μ2−rf)ρσ1σ2(μ1−rf)σ22+(μ2−rf)σ12−(μ1−rf+μ2−rf)ρσ1σ2\displaystyle =\frac{(\mu_{1}-r_{f})\sigma_{2}^{2}-(\mu_{2}-r_{f})\rho\sigma_{1}\sigma_{2}}{(\mu_{1}-r_{f})\sigma_{2}^{2}+(\mu_{2}-r_{f})\sigma_{1}^{2}-(\mu_{1}-r_{f}+\mu_{2}-r_{f})\rho\sigma_{1}\sigma_{2}}

In words: Weight in asset 1 = [(m1 − rf) x s2^2 − (m2 − rf) x rho x s1 x s2] / [(m1 − rf) x s2^2 + (m2 − rf) x s1^2 − (m1 − rf + m2 − rf) x rho x s1 x s2]; weight in asset 2 = 1 − weight in asset 1

What each symbol means

mu_1, mu_2Expected returns of the two assetsper year
r_fRisk-free rateper year
sigma_1, sigma_2Standard deviationsper year
rhoCorrelationnumber

Worked example

Asset 1 has an expected return of 10% and volatility of 20%. Asset 2 has 6% and 12%. The correlation is 0.3 and the risk-free rate is 3%.

Numerator(0.1 − 0.03) × 0.12^2 − (0.06 − 0.03) × 0.3 × 0.2 × 0.120.000792
Denominator(0.1 − 0.03) × 0.12^2 + (0.06 − 0.03) × 0.2^2 − (0.1 − 0.03 + 0.06 − 0.03) × 0.3 × 0.2 × 0.120.001488
Weight in asset 10.000792 ÷ 0.00148853.23%
Weight in asset 21 − 0.53225846.77%
Portfolio expected return0.532258 × 0.1 + 0.467742 × 0.068.13%
Portfolio volatilitysqrt(0.532258^2 × 0.2^2 + 0.467742^2 × 0.12^2 + 2 × 0.532258 × 0.467742 × 0.3 × 0.2 × 0.12)13.44%
Sharpe ratio(0.0812903 − 0.03) ÷ 0.1344150.382
The answer

The best mix is 53.23% in asset 1 and 46.77% in asset 2. It has an expected return of 8.13% and a volatility of 13.44%, giving the highest possible Sharpe ratio of 0.382.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

Weight in asset 153.23%
Weight in asset 246.77%
Portfolio expected return8.13%
Portfolio volatility13.44%
Sharpe ratio0.382

Keep going