Mean-Variance Optimization
Markowitz mean-variance optimization chooses portfolio weights that minimise risk for a target expected return, or equivalently maximise return for a given risk. The problem is a constrained optimisation solved with the method of Lagrange multipliers, which converts the constraints into a system whose solution gives the optimal weights in closed form. This is the exact technique examined at the mid-term, so the mechanics of setting up the Lagrangian and reading off the weight vector matter as much as the concept. The output traces the set of efficient portfolios that no rational investor would reject.
Try it yourself
Sweep the weight w on asset A to trace the frontier of risk and return. A lower correlation ρ bows it toward the return axis, the diversification benefit. The minimum-variance portfolio is its leftmost point.
Why it matters
You want the lowest-risk mix that still hits your return goal, and the constraints are that the weights add to one and the expected return equals your target. Lagrange multipliers are the standard trick for optimising subject to such constraints, attaching a multiplier to each constraint and turning a hard problem into solving linear equations. The multipliers also have meaning as shadow prices, telling you how much extra risk you must accept to raise the return target by a unit. Once you can build the Lagrangian and invert the resulting system you can compute the optimal weights for any target, which is what the mid-term asks.
Formulas
Worked examples
State the Lagrangian for minimising variance subject to a target return and a budget constraint, then say how the optimal weights are found.
Write . Setting gives . Substituting back into the two constraints yields two linear equations in and , which you solve and plug in to get the numeric weights.
For two uncorrelated assets with equal expected returns and , , find the minimum-variance weights.
With zero correlation the minimum-variance weight on asset 1 is . So hold 80% in the lower-risk asset and 20% in the higher-risk one. The optimiser tilts toward the calmer asset, exactly as the Lagrange solution predicts when returns are equal.
Common mistakes
- ✗Mean-variance optimisation just picks the highest-return assets. It minimises risk for a given return target, so a low-return asset can earn a large weight when it lowers portfolio variance.
- ✗The Lagrange multipliers are only a mathematical device with no meaning. Each multiplier is a shadow price, showing how the minimised variance responds to tightening the return or budget constraint.
- ✗The optimal weights must all be positive. Unless short sales are restricted, the closed-form solution can assign negative weights, meaning some assets are sold short.
- ✗A single optimal portfolio exists for every investor. The optimiser produces a different efficient portfolio for each return target, so the result is a whole frontier rather than one point.
Revision bullets
- •Minimise portfolio variance subject to a target return and weights summing to one
- •Lagrange multipliers convert the constraints into solvable first-order conditions
- •Optimal weights are the inverse covariance matrix times a combination of returns and ones
- •The multipliers are shadow prices on the return and budget constraints
- •Solving across return targets traces out the efficient set, the exact mid-term method
Quick check
In Markowitz mean-variance optimisation, the Lagrange-multiplier method is used to
The closed-form optimal weight vector takes the form
Connected topics
Sources
- Markowitz, H. Portfolio Selection. Journal of Finance, 7(1), 77-91, 1952.Originates mean-variance portfolio selection and the optimisation of weights under constraints.
- Brailsford, Heaney & Bilson (2015), Ch. 8Brailsford, T., Heaney, R., & Bilson, C. Investments: Concepts and Applications. 5th ed. Cengage Learning Australia, 2015.Presents the constrained optimisation and the Lagrange solution for the optimal weights.