Unit 12, lesson 89

Mean variance optimization and efficient frontiers

How fixed weights give a portfolio mean and variance, how the budget and target-mean constraints define the minimum-variance quadratic program, why its solutions trace the efficient frontier, and what an active constraint changes.

  • Video 89
  • Mean-variance optimization and covariance estimation

Two constructed assets have expected one-period returns of 6 and 12 percent, volatilities of 20 and 30 percent and correlation 1/61/6. Which fully invested weights give an expected return of 10 percent, how much variance do they carry, and what is the least variance that any portfolio of the two can have? This lesson derives the mean and variance of a fixed-weight portfolio, solves the minimum-variance problem with a budget and a target mean in closed form, reads the efficient frontier off that solution, and shows what changes when a long-only bound becomes active or makes a target impossible.

Key terms

Portfolio moments

Definition Expectations on this page are under the physical measure P\mathbb{P} of a one-period model, and the inputs μ\mu and Σ\Sigma are treated as known. Let R=(R1,…,Rd)⊤R = (R_1, \dots, R_d)^{\top} be the simple returns of dd assets over one period, with E[Ri2]<∞E[R_i^2] < \infty for every ii, mean vector μ=E[R]\mu = E[R] and covariance matrix Σ=Cov⁡(R)\Sigma = \operatorname{Cov}(R). An investor with initial wealth V0>0V_0 > 0 holds wiV0w_i V_0 currency units of asset ii at the start of the period and does not trade until its end, for a weight vector w∈Rdw \in \mathbb{R}^d with 1⊤w=1\mathbf{1}^{\top} w = 1, the budget constraint of the next card. The final wealth is V1=V0(1+w⊤R)V_1 = V_0 (1 + w^{\top} R), so the portfolio return is Rp=w⊤RR_p = w^{\top} R, and linearity gives the portfolio moments

E[Rp]=w⊤μ,Var⁡(Rp)=w⊤Σw.\begin{gathered} E[R_p] = w^{\top} \mu, \\[0.4em] \operatorname{Var}(R_p) = w^{\top} \Sigma w . \end{gathered}

More generally Cov⁡(w⊤R,v⊤R)=w⊤Σv\operatorname{Cov}(w^{\top} R, v^{\top} R) = w^{\top} \Sigma v for two weight vectors. Written out, the variance is ∑iwi2Σii+∑i≠jwiwjΣij\sum_i w_i^2 \Sigma_{ii} + \sum_{i \ne j} w_i w_j \Sigma_{ij}, so every pair of assets contributes a cross term. These are one-period identities for simple returns and fixed weights. They do not hold for log returns, because the portfolio log return ln⁡(1+w⊤R)\ln(1 + w^{\top} R) is not ∑iwiln⁡(1+Ri)\sum_i w_i \ln(1 + R_i) in general, and they do not describe the compounded return of a strategy whose weights change over several periods.

In plain words The expected return of a portfolio is the weighted average of the expected returns, but its variance is not the weighted average of the variances, because it depends on every covariance. Diversification is that cross term at work. With nonnegative weights, the portfolio volatility never exceeds the weighted average of the asset volatilities.

Example For the constructed assets, μ=(0.06,0.12)\mu = (0.06, 0.12) and

Σ=[0.040.010.010.09],\Sigma = \begin{bmatrix} 0.04 & 0.01 \\ 0.01 & 0.09 \end{bmatrix},

so the volatilities are 0.20.2 and 0.30.3 and the correlation is 0.01/(0.2⋅0.3)=1/60.01/(0.2 \cdot 0.3) = 1/6. The weights w=(1/3,2/3)w = (1/3, 2/3) give the mean 0.02+0.08=0.100.02 + 0.08 = 0.10 and the variance

w⊤Σw=0.049+0.369+0.049=0.449≈0.048889,\begin{aligned} w^{\top} \Sigma w &= \tfrac{0.04}{9} + \tfrac{0.36}{9} + \tfrac{0.04}{9} \\[0.4em] &= \tfrac{0.44}{9} \approx 0.048889 , \end{aligned}

where the last term is the cross term 2⋅13⋅23⋅0.012 \cdot \tfrac13 \cdot \tfrac23 \cdot 0.01. The volatility is about 0.22110.2211. Leaving out the cross term would give 0.40/9≈0.0444440.40/9 \approx 0.044444, and the weighted average of the volatilities, 13⋅0.2+23⋅0.3≈0.2667\tfrac13 \cdot 0.2 + \tfrac23 \cdot 0.3 \approx 0.2667, is well above the true 0.22110.2211.

Budget constraint

Definition The budget constraint is 1⊤w=∑iwi=1\mathbf{1}^{\top} w = \sum_i w_i = 1, where 1\mathbf{1} is the vector of ones. It says that the holdings account for all of the initial wealth, and it is what makes w⊤Rw^{\top} R the portfolio return in the previous card. A negative weight wi<0w_i < 0 is a short position, in which the investor sells borrowed units of asset ii worth ∣wi∣V0\lvert w_i \rvert V_0 and the proceeds fund the other holdings. In this frictionless model the full proceeds are available, and there are no margin requirements, borrowing fees or position limits. With unrestricted shorts the feasible weights form the affine hyperplane {w:1⊤w=1}\{w : \mathbf{1}^{\top} w = 1\} of dimension d−1d - 1. Adding a target mean μ⊤w=m\mu^{\top} w = m leaves a nonempty affine set of dimension d−2d - 2 whenever μ\mu is not a multiple of 1\mathbf{1}, because the two equations are then independent. A long-only investor also requires w≥0w \ge 0 componentwise. The feasible weights then form the simplex, on which w⊤μw^{\top} \mu is a convex combination of the μi\mu_i and so lies between min⁡iμi\min_i \mu_i and max⁡iμi\max_i \mu_i. The gross exposure ∑i∣wi∣\sum_i \lvert w_i \rvert is at least ∑iwi=1\sum_i w_i = 1, with equality exactly when no weight is negative.

In plain words The weights are fractions of today’s wealth, and together they spend exactly all of it. A short sale lets some weights go below zero while the others add up to more than one, so the budget alone puts no bound on the size of the positions. With two assets and a target mean there is nothing left to choose. With three or more assets, a line or a higher-dimensional flat set of portfolios meets both conditions, and the optimization of the next cards picks one of them.

Example In the constructed model the budget gives w2=1−w1w_2 = 1 - w_1, and the target 0.06w1+0.12(1−w1)=m0.06 w_1 + 0.12 (1 - w_1) = m then gives

w1=0.12−m0.06,w2=m−0.060.06.\begin{gathered} w_1 = \frac{0.12 - m}{0.06}, \\[0.4em] w_2 = \frac{m - 0.06}{0.06}. \end{gathered}

The target m=0.10m = 0.10 gives (1/3,2/3)(1/3, 2/3). The target m=0.13m = 0.13 gives (−1/6,7/6)(-1/6, 7/6), with mean −0.01+0.14=0.13-0.01 + 0.14 = 0.13 and gross exposure 4/34/3. For a wealth of 100100 currency units, that is a short sale of asset 1 worth about 16.6716.67, whose proceeds together with the 100100 buy asset 2 worth about 116.67116.67. No long-only weights reach 0.130.13, since a convex combination of 0.060.06 and 0.120.12 is at most 0.120.12.

Quadratic program

Definition A quadratic program is an optimization problem of the form

min⁡x∈Rn 12x⊤Qx+c⊤xsubject to Gx≤h,Ex=b,\begin{gathered} \min_{x \in \mathbb{R}^n} \ \tfrac12 x^{\top} Q x + c^{\top} x \\[0.4em] \text{subject to } Gx \le h, \\[0.4em] Ex = b, \end{gathered}

with QQ a symmetric n×nn \times n matrix, c∈Rnc \in \mathbb{R}^n, matrices GG and EE with nn columns, and the inequality read componentwise. It is convex exactly when QQ is positive semidefinite. The following standard results are stated without proof. If QQ is positive definite and the feasible set is nonempty, a minimizer exists and is unique. For a convex quadratic program, a feasible point is a global minimizer if and only if it satisfies the KKT conditions with some multipliers, and because every constraint is linear, no further constraint qualification such as Slater’s condition is needed. If QQ is only positive semidefinite, minimizers can fail to be unique, and the problem can be unbounded below. The minimum-variance problem of the next card is the case x=wx = w, Q=ΣQ = \Sigma, c=0c = 0, the two rows 1⊤\mathbf{1}^{\top} and μ⊤\mu^{\top} of EE and b=(1,m)b = (1, m), and its long-only version adds G=−IG = -I and h=0h = 0. The risk-aversion form, which maximizes μ⊤w−δ2w⊤Σw\mu^{\top} w - \tfrac{\delta}{2} w^{\top} \Sigma w for a risk aversion δ>0\delta > 0, is the case Q=δΣQ = \delta \Sigma and c=−μc = -\mu.

In plain words When the covariance matrix is positive definite, the variance is a bowl that curves upward in every direction, and linear constraints cut out a flat region of the floor. There is then exactly one lowest feasible point, and the KKT conditions give a short check that proves a candidate is that point. A flat direction in the bowl, which a singular covariance matrix creates, can leave many lowest points or none.

Example Let two assets satisfy R2=R1+0.01R_2 = R_1 + 0.01 with probability one and Var⁡(R1)=0.04\operatorname{Var}(R_1) = 0.04, a constructed corner case. Every entry of Σ\Sigma equals 0.040.04, so Σ\Sigma is positive semidefinite but singular, and every budget portfolio (a,1−a)(a, 1 - a) has variance Var⁡(R1)=0.04\operatorname{Var}(R_1) = 0.04. The minimum-variance problem with the budget alone therefore has infinitely many minimizers. The risk-aversion form with the budget constraint is unbounded. Moving along h=(−1,1)h = (-1, 1) keeps the budget and the variance and raises the mean by 0.010.01 per unit, so the objective grows without limit. The position that holds −V0-V_0 in asset 1 and V0V_0 in asset 2 costs nothing and pays V0(R2−R1)=0.01V0V_0 (R_2 - R_1) = 0.01 V_0 in every state, which is an arbitrage, and the unbounded program is reporting it.

Minimum-variance problem

Definition Let d≥2d \ge 2, let Σ\Sigma be positive definite, and let μ\mu not be a multiple of 1\mathbf{1}, so that the assets do not all have the same mean. For a target mean m∈Rm \in \mathbb{R}, with shorts unrestricted, the minimum-variance problem is

min⁡w 12w⊤Σwsubject to 1⊤w=1,μ⊤w=m.\begin{gathered} \min_{w} \ \tfrac12 w^{\top} \Sigma w \\[0.4em] \text{subject to } \mathbf{1}^{\top} w = 1, \\[0.4em] \mu^{\top} w = m . \end{gathered}

The factor 12\tfrac12 simplifies the derivatives and does not change the minimizer. Write

A=1⊤Σ−11,B=1⊤Σ−1μ,C=μ⊤Σ−1μ,Δ=AC−B2.\begin{aligned} A &= \mathbf{1}^{\top} \Sigma^{-1} \mathbf{1}, \\[0.4em] B &= \mathbf{1}^{\top} \Sigma^{-1} \mu, \\[0.4em] C &= \mu^{\top} \Sigma^{-1} \mu, \\[0.4em] \Delta &= AC - B^2 . \end{aligned}

Since Σ−1\Sigma^{-1} is positive definite, ⟨x,y⟩=x⊤Σ−1y\langle x, y \rangle = x^{\top} \Sigma^{-1} y is an inner product, so A>0A > 0, and the Cauchy-Schwarz inequality gives B2≤ACB^2 \le AC, with equality exactly when μ\mu is a multiple of 1\mathbf{1}. Hence Δ>0\Delta > 0. With the Lagrangian

L=12w⊤Σw−λ(1⊤w−1)−γ(μ⊤w−m),\begin{aligned} L &= \tfrac12 w^{\top} \Sigma w - \lambda (\mathbf{1}^{\top} w - 1) \\[0.4em] &\quad - \gamma (\mu^{\top} w - m), \end{aligned}

stationarity gives Σw=λ1+γμ\Sigma w = \lambda \mathbf{1} + \gamma \mu, so w=λΣ−11+γΣ−1μw = \lambda \Sigma^{-1} \mathbf{1} + \gamma \Sigma^{-1} \mu, and the two constraints become the linear system Aλ+Bγ=1A\lambda + B\gamma = 1 and Bλ+Cγ=mB\lambda + C\gamma = m, whose determinant is Δ\Delta. Its unique solution gives the frontier weights

w(m)=λΣ−11+γΣ−1μ,λ=C−BmΔ,γ=Am−BΔ.\begin{aligned} w(m) &= \lambda \Sigma^{-1} \mathbf{1} + \gamma \Sigma^{-1} \mu, \\[0.4em] \lambda &= \frac{C - Bm}{\Delta}, \\[0.4em] \gamma &= \frac{Am - B}{\Delta}. \end{aligned}

This feasible stationary point is the unique global minimizer. Write ww for w(m)w(m). Any other feasible portfolio is w+hw + h with 1⊤h=0\mathbf{1}^{\top} h = 0 and μ⊤h=0\mu^{\top} h = 0, so h⊤Σw=λ1⊤h+γμ⊤h=0h^{\top} \Sigma w = \lambda \mathbf{1}^{\top} h + \gamma \mu^{\top} h = 0, and

12(w+h)⊤Σ(w+h)=12w⊤Σw+12h⊤Σh,\begin{aligned} &\tfrac12 (w + h)^{\top} \Sigma (w + h) \\[0.4em] &= \tfrac12 w^{\top} \Sigma w + \tfrac12 h^{\top} \Sigma h , \end{aligned}

which is larger unless h=0h = 0. So every target mm is attainable and has exactly one minimum-variance portfolio. If instead all means equal a common value, the target constraint is redundant at that value and impossible at every other, and these formulas do not apply.

In plain words At the optimum, no reallocation that keeps both the budget and the mean fixed can lower the variance, because any such change hh is uncorrelated with the optimal portfolio and only adds its own variance. The two multipliers turn the two constraints into a small linear system. The answer is an exact formula for the stated inputs, which here are treated as known numbers rather than estimates.

Example For the constructed model, Σ−11=(0.08,0.03)/0.0035≈(22.857,8.571)\Sigma^{-1} \mathbf{1} = (0.08, 0.03)/0.0035 \approx (22.857, 8.571) and Σ−1μ=(1.2,1.2)\Sigma^{-1} \mu = (1.2, 1.2), so A=0.11/0.0035=220/7≈31.43A = 0.11/0.0035 = 220/7 \approx 31.43, B=2.4B = 2.4, C=0.216C = 0.216 and Δ=36/35≈1.029\Delta = 36/35 \approx 1.029. For m=0.10m = 0.10, the multipliers are λ=(0.216−0.24)/Δ=−7/300\lambda = (0.216 - 0.24)/\Delta = -7/300 and γ=(22/7−2.4)/Δ=13/18\gamma = (22/7 - 2.4)/\Delta = 13/18. Then

λΣ−11≈(−0.533,−0.2),γΣ−1μ≈(0.867,0.867),\begin{aligned} \lambda \Sigma^{-1} \mathbf{1} &\approx (-0.533, -0.2), \\[0.4em] \gamma \Sigma^{-1} \mu &\approx (0.867, 0.867), \end{aligned}

and their sum w(0.10)=(1/3,2/3)w(0.10) = (1/3, 2/3) is the pair of weights that the budget and the target already forced. As a check of stationarity, Σw=(0.02,0.19/3)\Sigma w = (0.02, 0.19/3), and λ+0.06γ=6/300=0.02\lambda + 0.06\gamma = 6/300 = 0.02 and λ+0.12γ=19/300\lambda + 0.12\gamma = 19/300. With two assets the formula has no choice to make. With three or more assets the same formula selects one portfolio from a whole affine set of candidates.

Efficient frontier

Definition Under the hypotheses of the previous card, multiplying Σw=λ1+γμ\Sigma w = \lambda \mathbf{1} + \gamma \mu on the left by w⊤w^{\top} and using both constraints gives w⊤Σw=λ+γmw^{\top} \Sigma w = \lambda + \gamma m. So the smallest variance at the target mm is

σ2(m)=Am2−2Bm+CΔ=1A+AΔ(m−BA)2.\begin{aligned} \sigma^2(m) &= \frac{A m^2 - 2Bm + C}{\Delta} \\[0.4em] &= \frac1A + \frac{A}{\Delta} \Bigl( m - \frac{B}{A} \Bigr)^2 . \end{aligned}

Its derivative is 2(Am−B)/Δ=2γ2(Am - B)/\Delta = 2\gamma, so the multiplier of the mean constraint is half the rate at which the minimum variance rises with the target. The minimum over mm is at m=B/Am = B/A, with variance 1/A1/A and weights Σ−11/A\Sigma^{-1} \mathbf{1}/A. This is the global minimum-variance portfolio, which also solves the problem with the budget constraint alone. A feasible portfolio is mean-variance efficient if no feasible portfolio has a mean at least as high and a variance at least as low, with at least one of the two strictly better. With the budget constraint and unrestricted shorts, the efficient portfolios are exactly the w(m)w(m) with m≥B/Am \ge B/A. In the plane of volatility and mean, the curve σ=σ(m)\sigma = \sigma(m) is one branch of a hyperbola with its leftmost point at the global minimum-variance portfolio, and the efficient frontier is the part of that curve with m≥B/Am \ge B/A. Every portfolio on the lower part is dominated by the global minimum-variance portfolio, which has a higher mean and a lower variance. Because w(m)w(m) is affine in mm, every frontier portfolio is an affine combination of any two distinct frontier portfolios, which is two-fund separation.

In plain words For each target mean, the frontier gives the least variance that a fully invested portfolio can have, and the bottom of that curve is the least risky portfolio overall. Asking for a mean below the bottom only adds risk, so those portfolios are inefficient, and the efficient frontier keeps the rising part. The frontier is exact for its inputs, its one-period horizon and its allowed positions. With estimated means and covariances it inherits their errors, and small eigenvalues of Σ\Sigma let Σ−1\Sigma^{-1} magnify those errors into large offsetting positions, which is why covariance estimation and robust optimization come next.

Example For the constructed model, the global minimum-variance portfolio has mean B/A=0.84/11≈0.07636B/A = 0.84/11 \approx 0.07636, variance 1/A=7/220≈0.0318181/A = 7/220 \approx 0.031818 and weights Σ−11/A=(8/11,3/11)\Sigma^{-1}\mathbf{1}/A = (8/11, 3/11). Its volatility, about 0.17840.1784, is below that of either asset. The formula gives σ2(0.10)≈0.048889\sigma^2(0.10) \approx 0.048889, matching the direct computation. Asset 1 alone is the frontier portfolio w(0.06)=(1,0)w(0.06) = (1, 0), with σ2(0.06)=0.04\sigma^2(0.06) = 0.04. It is on the lower part, since its mean 0.060.06 is below 0.076360.07636 and its variance 0.040.04 is above 0.0318180.031818, so it is not efficient even though asset 1 is the less volatile asset. The 10 percent portfolio is efficient. Near m=0.10m = 0.10, the minimum variance rises at the rate 2γ=13/9≈1.4442\gamma = 13/9 \approx 1.444 per unit of target mean.

Active constraint

Definition Let xx be a feasible point of a problem with inequality constraints gi(x)≤0g_i(x) \le 0. The constraint ii is active, or binding, at xx if gi(x)=0g_i(x) = 0, and inactive if gi(x)<0g_i(x) < 0. Equality constraints are active at every feasible point. The long-only minimum-variance problem adds −wi≤0-w_i \le 0 for every ii to the minimum-variance problem. With the sign convention of the Lagrangian above and a multiplier νi\nu_i for each bound, its KKT conditions are 1⊤w=1\mathbf{1}^{\top} w = 1, μ⊤w=m\mu^{\top} w = m and

Σw=λ1+γμ+ν,ν≥0,w≥0,νiwi=0  for every i.\begin{gathered} \Sigma w = \lambda \mathbf{1} + \gamma \mu + \nu, \\[0.4em] \nu \ge 0, \qquad w \ge 0, \\[0.4em] \nu_i w_i = 0 \ \text{ for every } i . \end{gathered}

For the long-only problem with the budget alone, drop γ\gamma and the mean constraint. Both are convex quadratic programs with linear constraints, so a feasible ww is optimal if and only if multipliers satisfying these conditions exist. Complementary slackness forces νi=0\nu_i = 0 for every asset held with wi>0w_i > 0, so held assets satisfy (Σw)i=λ+γμi(\Sigma w)_i = \lambda + \gamma \mu_i, while an asset at its bound may have (Σw)i>λ+γμi(\Sigma w)_i > \lambda + \gamma \mu_i, with the difference supplied by νi≥0\nu_i \ge 0. If the feasible set is empty, no point satisfies the conditions and the problem has no solution. Which bounds are active at the optimum is not known in advance, and finding them is the work of active-set and interior-point algorithms, which are not developed here.

In plain words An active bound is a wall that the solution leans against. When its multiplier is positive, the variance would fall further if the weight could go below zero, and the multiplier measures that pressure. Clipping the negative weights of an unconstrained solution to zero and rescaling the rest does not in general satisfy the conditions, because the weights that remain should also change. An unreachable target is a different situation, with no feasible point at all and so nothing to optimize.

Example Keep the volatilities 0.20.2 and 0.30.3 but raise the correlation to 0.80.8, so that Σ12=0.048\Sigma_{12} = 0.048. With the budget alone, the global minimum-variance weights are (21/17,−4/17)≈(1.235,−0.235)(21/17, -4/17) \approx (1.235, -0.235), short asset 2. Under the long-only bound, test w=(1,0)w = (1, 0). Then Σw=(0.04,0.048)\Sigma w = (0.04, 0.048), asset 1 is held, so λ=0.04\lambda = 0.04, and ν2=0.048−0.04=0.008≥0\nu_2 = 0.048 - 0.04 = 0.008 \ge 0 with ν2w2=0\nu_2 w_2 = 0. The conditions hold, so (1,0)(1, 0) is the long-only minimum, with variance 0.040.04 and the bound w2≥0w_2 \ge 0 active. Moving a weight tt from asset 1 to asset 2 changes the variance at the rate 2ν2=0.0162\nu_2 = 0.016 at t=0t = 0, so the bound binds although this derivative is not zero. In the original model with correlation 1/61/6, the long-only problem with target 0.130.13 has an empty feasible set, as the budget card showed.

Check yourself

  1. Two assets have expected returns 0.050.05 and 0.090.09, volatilities 0.150.15 and 0.250.25 and correlation 0.20.2. Find the fully invested weights with expected return 0.080.08, and the variance and volatility of that portfolio.
Show the answer

The covariance is 0.2⋅0.15⋅0.25=0.00750.2 \cdot 0.15 \cdot 0.25 = 0.0075. The budget and the target give w1=(0.09−0.08)/(0.09−0.05)=0.25w_1 = (0.09 - 0.08)/(0.09 - 0.05) = 0.25 and w2=0.75w_2 = 0.75. The variance has the terms 0.0625⋅0.0225=0.001406250.0625 \cdot 0.0225 = 0.00140625 and 0.5625⋅0.0625=0.035156250.5625 \cdot 0.0625 = 0.03515625 and the cross term 2⋅0.25⋅0.75⋅0.0075=0.00281252 \cdot 0.25 \cdot 0.75 \cdot 0.0075 = 0.0028125, so

w⊤Σw=0.039375,w^{\top} \Sigma w = 0.039375 ,

and the volatility is 0.039375≈0.1984\sqrt{0.039375} \approx 0.1984. Forgetting the cross term would give 0.03656250.0365625.

  1. For the same two assets, find the global minimum-variance portfolio, its mean and its variance. Is the portfolio holding only asset 1, the less volatile one, efficient? Is the portfolio of question 1 efficient?
Show the answer

With weights (a,1−a)(a, 1 - a) the variance is f(a)=a2σ12+(1−a)2σ22+2a(1−a)σ12f(a) = a^2 \sigma_1^2 + (1 - a)^2 \sigma_2^2 + 2a(1 - a)\sigma_{12}. Setting f′(a)=0f'(a) = 0 gives

a=σ22−σ12σ12+σ22−2σ12=0.0550.07=1114,\begin{aligned} a &= \frac{\sigma_2^2 - \sigma_{12}}{\sigma_1^2 + \sigma_2^2 - 2\sigma_{12}} \\[0.4em] &= \frac{0.055}{0.07} = \frac{11}{14}, \end{aligned}

and f′′(a)=2(σ12+σ22−2σ12)=2Var⁡(R1−R2)>0f''(a) = 2(\sigma_1^2 + \sigma_2^2 - 2\sigma_{12}) = 2\operatorname{Var}(R_1 - R_2) > 0, so this is the minimum. The weights are (11/14,3/14)≈(0.786,0.214)(11/14, 3/14) \approx (0.786, 0.214) and the mean is 0.82/14≈0.058570.82/14 \approx 0.05857. With a2=121/196a^2 = 121/196, (1−a)2=9/196(1 - a)^2 = 9/196 and 2a(1−a)=66/1962a(1 - a) = 66/196, the variance is the sum

121⋅0.0225+9⋅0.0625+66⋅0.0075=3.78\begin{aligned} &121 \cdot 0.0225 + 9 \cdot 0.0625 \\[0.4em] &\quad + 66 \cdot 0.0075 = 3.78 \end{aligned}

divided by 196196, which is about 0.0192860.019286, a volatility of about 0.13890.1389. Asset 1 alone has mean 0.05<0.058570.05 < 0.05857 and variance 0.0225>0.0192860.0225 > 0.019286, so the minimum-variance portfolio dominates it and it is not efficient. The least volatile asset need not be the minimum-variance portfolio once mixtures are allowed. The portfolio of question 1 has mean 0.080.08, above 0.058570.05857, so it lies on the efficient part of the frontier.

  1. Three assets have volatilities 0.20.2, 0.30.3 and 0.20.2, correlation 0.90.9 between assets 1 and 2, and zero correlation otherwise. The budget-only minimum-variance weights are (360,−140,171)/391≈(0.921,−0.358,0.437)(360, -140, 171)/391 \approx (0.921, -0.358, 0.437). A colleague imposes the long-only bound by setting the second weight to zero and rescaling, which gives (360,0,171)/531≈(0.678,0,0.322)(360, 0, 171)/531 \approx (0.678, 0, 0.322). Show that (0.5,0,0.5)(0.5, 0, 0.5) is the long-only minimum-variance portfolio and compare the two variances.
Show the answer

The covariance matrix has diagonal 0.040.04, 0.090.09 and 0.040.04, the entry Σ12=0.9⋅0.2⋅0.3=0.054\Sigma_{12} = 0.9 \cdot 0.2 \cdot 0.3 = 0.054, and zeros elsewhere. For w=(0.5,0,0.5)w = (0.5, 0, 0.5),

Σw=(0.02, 0.027, 0.02).\Sigma w = (0.02, \ 0.027, \ 0.02) .

The budget-only KKT conditions ask for Σw=λ1+ν\Sigma w = \lambda \mathbf{1} + \nu with ν≥0\nu \ge 0 and νiwi=0\nu_i w_i = 0. Assets 1 and 3 are held, so ν1=ν3=0\nu_1 = \nu_3 = 0 and λ=0.02\lambda = 0.02. Asset 2 is at its bound with ν2=0.027−0.02=0.007≥0\nu_2 = 0.027 - 0.02 = 0.007 \ge 0. All conditions hold, and the problem is a convex quadratic program, so (0.5,0,0.5)(0.5, 0, 0.5) is the global long-only minimum. Its variance is 0.25⋅0.04+0.25⋅0.04=0.020.25 \cdot 0.04 + 0.25 \cdot 0.04 = 0.02.

For the clipped weights, Σw≈(0.0271,0.0366,0.0129)\Sigma w \approx (0.0271, 0.0366, 0.0129). Assets 1 and 3 are both held but have different entries, so stationarity fails, and moving weight from asset 1 to asset 3 lowers the variance. The clipped portfolio has variance about 0.022530.02253, above 0.020.02. The bound on asset 2 also changes the best mix of assets 1 and 3, which clipping ignores. For comparison, the unconstrained minimum is 171/9775≈0.01749171/9775 \approx 0.01749, so the long-only bound has a real cost in variance.

How this lesson connects