Markowitz mean-variance optimization, efficient frontier, and optimal portfolio construction
For a portfolio with weights (where ) in assets with returns , the portfolio return is:
Expected return:
The portfolio variance is:
Using correlation :
Starting from the definition:
Using variance properties:
Consider equal weights () in two assets with , .
Case 1: Perfect positive correlation ()
Case 2: Zero correlation ()
Case 3: Perfect negative correlation ()
Notice how diversification benefit increases as correlation decreases!
The portfolio with minimum variance has weights:
Minimize with respect to (using ):
Therefore:
For assets with weights where :
Expected return:
Portfolio variance:
where is the covariance matrix with elements .
The efficient frontier solves:
subject to:
Form the Lagrangian:
First-order condition:
Therefore:
The Lagrange multipliers are determined by the constraints. The efficient frontier is a hyperbola in space.
Any portfolio on the efficient frontier can be expressed as a combination of two frontier portfolios. Specifically, if and are any two efficient portfolios, then any other efficient portfolio has weights:
This dramatically simplifies portfolio choice - investors only need to identify two efficient portfolios.
Consider three assets with expected returns and covariance matrix:
To find the minimum variance portfolio, solve:
This requires matrix inversion and can be computed numerically.
When a risk-free asset with return is available, the new efficient frontier is a straight line:
where denotes the tangency portfolio (the risky portfolio with the highest Sharpe ratio).
The tangency portfolio maximizes the Sharpe ratio:
The optimal weights are:
For portfolio combining risk-free asset (weight ) and risky portfolio ():
Sharpe ratio:
Maximize by differentiating (using homogeneity, scale doesn't matter):
Normalize so weights sum to 1:
Every investor holds a combination of:
The allocation between them depends on risk aversion, but the composition of is the same for all investors.
Investors can achieve any point on the CML by holding just two mutual funds: a risk-free money market fund and the tangency portfolio (market portfolio). This provides the theoretical foundation for index funds.
Suppose , tangency portfolio has , .
An investor wants expected return . What allocation?
Portfolio: 75% in tangency, 25% in risk-free asset.
Portfolio risk:
Sharpe ratio: (same as tangency portfolio!)
For equally-weighted assets with identical variance and identical pairwise correlation :
As :
Equal weights: . Portfolio variance:
Taking the limit:
From the diversification formula:
Investors are only rewarded for bearing systematic risk (leads to CAPM in next course).
Key insights from modern portfolio theory:
Don't evaluate securities in isolation - consider how they interact through correlations. By combining assets with less-than-perfect correlation, you can reduce portfolio risk below the weighted average of individual risks. This is the power of diversification.
The efficient frontier is the set of portfolios that offer the highest expected return for each level of risk, or equivalently, the lowest risk for each level of return. Portfolios below the frontier are inefficient - you can get better risk-return tradeoffs.
It's the portfolio with the absolute lowest risk, found at the leftmost point of the efficient frontier. While it minimizes variance, it may not maximize Sharpe ratio or expected return. It's particularly important when short sales are constrained.
With a risk-free asset, the efficient frontier becomes a straight line (the Capital Market Line) from the risk-free rate tangent to the risky efficient frontier. All investors hold the same risky portfolio (the tangency portfolio) combined with varying amounts of the risk-free asset.
Portfolio selection can be separated into two independent decisions: (1) finding the optimal risky portfolio (same for all investors), and (2) allocating between this risky portfolio and the risk-free asset based on individual risk preferences. This is also called the two-fund separation theorem.