Two constructed assets have expected one-period returns of 6 and 12 percent, volatilities of 20 and 30 percent and correlation . 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 of a one-period model, and the inputs and are treated as known. Let be the simple returns of assets over one period, with for every , mean vector and covariance matrix . An investor with initial wealth holds currency units of asset at the start of the period and does not trade until its end, for a weight vector with , the budget constraint of the next card. The final wealth is , so the portfolio return is , and linearity gives the portfolio moments
More generally for two weight vectors. Written out, the variance is , 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 is not 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, and
so the volatilities are and and the correlation is . The weights give the mean and the variance
where the last term is the cross term . The volatility is about . Leaving out the cross term would give , and the weighted average of the volatilities, , is well above the true .
Budget constraint
Definition The budget constraint is , where is the vector of ones. It says that the holdings account for all of the initial wealth, and it is what makes the portfolio return in the previous card. A negative weight is a short position, in which the investor sells borrowed units of asset worth 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 of dimension . Adding a target mean leaves a nonempty affine set of dimension whenever is not a multiple of , because the two equations are then independent. A long-only investor also requires componentwise. The feasible weights then form the simplex, on which is a convex combination of the and so lies between and . The gross exposure is at least , 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 , and the target then gives
The target gives . The target gives , with mean and gross exposure . For a wealth of currency units, that is a short sale of asset 1 worth about , whose proceeds together with the buy asset 2 worth about . No long-only weights reach , since a convex combination of and is at most .
Quadratic program
Definition A quadratic program is an optimization problem of the form
with a symmetric matrix, , matrices and with columns, and the inequality read componentwise. It is convex exactly when is positive semidefinite. The following standard results are stated without proof. If 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 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 , , , the two rows and of and , and its long-only version adds and . The risk-aversion form, which maximizes for a risk aversion , is the case and .
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 with probability one and , a constructed corner case. Every entry of equals , so is positive semidefinite but singular, and every budget portfolio has variance . 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 keeps the budget and the variance and raises the mean by per unit, so the objective grows without limit. The position that holds in asset 1 and in asset 2 costs nothing and pays in every state, which is an arbitrage, and the unbounded program is reporting it.
Minimum-variance problem
Definition Let , let be positive definite, and let not be a multiple of , so that the assets do not all have the same mean. For a target mean , with shorts unrestricted, the minimum-variance problem is
The factor simplifies the derivatives and does not change the minimizer. Write
Since is positive definite, is an inner product, so , and the Cauchy-Schwarz inequality gives , with equality exactly when is a multiple of . Hence . With the Lagrangian
stationarity gives , so , and the two constraints become the linear system and , whose determinant is . Its unique solution gives the frontier weights
This feasible stationary point is the unique global minimizer. Write for . Any other feasible portfolio is with and , so , and
which is larger unless . So every target 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 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, and , so , , and . For , the multipliers are and . Then
and their sum is the pair of weights that the budget and the target already forced. As a check of stationarity, , and and . 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 on the left by and using both constraints gives . So the smallest variance at the target is
Its derivative is , so the multiplier of the mean constraint is half the rate at which the minimum variance rises with the target. The minimum over is at , with variance and weights . 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 with . In the plane of volatility and mean, the curve 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 . Every portfolio on the lower part is dominated by the global minimum-variance portfolio, which has a higher mean and a lower variance. Because is affine in , 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 let 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 , variance and weights . Its volatility, about , is below that of either asset. The formula gives , matching the direct computation. Asset 1 alone is the frontier portfolio , with . It is on the lower part, since its mean is below and its variance is above , so it is not efficient even though asset 1 is the less volatile asset. The 10 percent portfolio is efficient. Near , the minimum variance rises at the rate per unit of target mean.
Active constraint
Definition Let be a feasible point of a problem with inequality constraints . The constraint is active, or binding, at if , and inactive if . Equality constraints are active at every feasible point. The long-only minimum-variance problem adds for every to the minimum-variance problem. With the sign convention of the Lagrangian above and a multiplier for each bound, its KKT conditions are , and
For the long-only problem with the budget alone, drop and the mean constraint. Both are convex quadratic programs with linear constraints, so a feasible is optimal if and only if multipliers satisfying these conditions exist. Complementary slackness forces for every asset held with , so held assets satisfy , while an asset at its bound may have , with the difference supplied by . 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 and but raise the correlation to , so that . With the budget alone, the global minimum-variance weights are , short asset 2. Under the long-only bound, test . Then , asset 1 is held, so , and with . The conditions hold, so is the long-only minimum, with variance and the bound active. Moving a weight from asset 1 to asset 2 changes the variance at the rate at , so the bound binds although this derivative is not zero. In the original model with correlation , the long-only problem with target has an empty feasible set, as the budget card showed.
Check yourself
- Two assets have expected returns and , volatilities and and correlation . Find the fully invested weights with expected return , and the variance and volatility of that portfolio.
Show the answer
The covariance is . The budget and the target give and . The variance has the terms and and the cross term , so
and the volatility is . Forgetting the cross term would give .
- 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 the variance is . Setting gives
and , so this is the minimum. The weights are and the mean is . With , and , the variance is the sum
divided by , which is about , a volatility of about . Asset 1 alone has mean and variance , 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 , above , so it lies on the efficient part of the frontier.
- Three assets have volatilities , and , correlation between assets 1 and 2, and zero correlation otherwise. The budget-only minimum-variance weights are . A colleague imposes the long-only bound by setting the second weight to zero and rescaling, which gives . Show that is the long-only minimum-variance portfolio and compare the two variances.
Show the answer
The covariance matrix has diagonal , and , the entry , and zeros elsewhere. For ,
The budget-only KKT conditions ask for with and . Assets 1 and 3 are held, so and . Asset 2 is at its bound with . All conditions hold, and the problem is a convex quadratic program, so is the global long-only minimum. Its variance is .
For the clipped weights, . 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 , above . The bound on asset 2 also changes the best mix of assets 1 and 3, which clipping ignores. For comparison, the unconstrained minimum is , so the long-only bound has a real cost in variance.