From the free course Finance Theory I on Lykke
Risk, Return, and Portfolio Theory
Key concepts: Mean-Variance Analysis · Standard Deviation and Correlation · Diversification · Sharpe Ratio · Tangency Portfolio
Introduction to the statistical relationship between risk and reward and the mathematical foundations of diversification.
Risk, Return, and Portfolio Theory
The transition from valuing individual assets—such as discounted cash flow analysis for equities or yield calculations for bonds—to Modern Portfolio Theory (MPT) represents a fundamental shift in financial economics. In the traditional view, an investment was judged solely on its own merits. However, since Harry Markowitz’s seminal work in 1952, we recognize that the risk of an individual asset is secondary to how that asset contributes to the risk of a collective portfolio.
This section explores the mechanics of risk and return, the mathematical elegance of diversification, and the identification of the "optimal" portfolio through Mean-Variance Analysis. We move beyond simple averages to understand the covariance of assets, ultimately deriving the Efficient Frontier and the Tangency Portfolio.
[AI_INFOGRAPHIC: A visual flow showing the progression from Individual Asset Statistics (Mean, Variance) -> The Covariance Matrix -> The Efficient Frontier construction -> The introduction of a Risk-Free Asset -> The Tangency Portfolio (Maximum Sharpe Ratio).]
Mean-Variance Analysis
Mean-Variance Analysis is the process of weighing the expected return of a portfolio against its realized volatility. In this framework, we assume investors are "risk-averse," meaning that for a given level of return, they prefer less risk, and for a given level of risk, they require a higher return.
The Mathematical Framework
We define the performance of an asset $i$ using two primary statistics:
- Expected Return ($E[R_i]$): The weighted average of all possible returns.
- Variance ($\sigma_i^2$): The measure of dispersion around the mean, representing risk.
For a portfolio $p$ consisting of $n$ assets with weights $w_i$, the portfolio's expected return is a simple linear combination:
$$E[R_p] = \sum_{i=1}^{n} w_i E[R_i]$$
However, the portfolio variance is not a simple linear combination of individual variances. It must account for how the assets move together:
$$\sigma_p^2 = \sum_{i=1}^{n} \sum_{j=1}^{n} w_i w_j \sigma_{ij}$$
where $\sigma_{ij}$ is the covariance between asset $i$ and asset $j$.
Why It Matters
Mean-Variance Analysis provides a quantitative "admissibility" criterion. An investment is considered mean-variance efficient if no other investment offers a higher return for the same risk, or lower risk for the same return. This allows us to discard sub-optimal portfolios and focus on the Efficient Frontier.
| Metric | Symbol | Description | Formula |
|---|---|---|---|
| Expected Return | $\mu$ or $E[R]$ | The "reward" component; the mean of the distribution. | $\sum p_i R_i$ |
| Standard Deviation | $\sigma$ | The "risk" component; the square root of variance. | $\sqrt{E[(R - E[R])^2]}$ |
| Weight | $w_i$ | The fraction of total capital allocated to asset $i$. | $Value_i / Value_{Total}$ |
| Covariance | $\sigma_{ij}$ | How two assets move in relation to each other. | $\rho_{ij} \sigma_i \sigma_j$ |
Standard Deviation and Correlation
The "magic" of portfolio theory lies in the fact that while portfolio return is the weighted average of individual returns, portfolio standard deviation is generally less than the weighted average of individual standard deviations. This phenomenon is driven by correlation.
The Correlation Coefficient ($\rho$)
Correlation is a dimensionless measure of the linear relationship between two variables, bounded by $-1$ and $+1$.
- $\rho = +1.0$: Perfect positive correlation. No risk reduction from diversification.
- $\rho = 0$: No linear relationship. Significant risk reduction.
- $\rho = -1.0$: Perfect negative correlation. Risk can be completely eliminated.
Derivation: The Two-Asset Case
To see the impact of correlation, consider a portfolio of two assets, A and B:
$$\sigma_p = \sqrt{w_A^2 \sigma_A^2 + w_B^2 \sigma_B^2 + 2 w_A w_B \sigma_A \sigma_B \rho_{AB}}$$
If $\rho_{AB} < 1$, the term $2 w_A w_B \sigma_A \sigma_B \rho_{AB}$ is smaller than it would be if the assets were perfectly correlated. Consequently, $\sigma_p < w_A \sigma_A + w_B \sigma_B$.
Concrete Example: The Power of Low Correlation
Assume two stocks, both with an expected return of 10% and a standard deviation of 20%.
| Correlation ($\rho$) | Portfolio Weight (A/B) | Portfolio Return | Portfolio Std Dev ($\sigma_p$) |
|---|---|---|---|
| +1.0 | 50% / 50% | 10% | 20.0% |
| +0.5 | 50% / 50% | 10% | 17.3% |
| 0.0 | 50% / 50% | 10% | 14.1% |
| -0.5 | 50% / 50% | 10% | 10.0% |
| -1.0 | 50% / 50% | 10% | 0.0% |
Key Insight: You can maintain the same 10% return while slashing your risk from 20% to 14.1% simply by finding two assets that are uncorrelated ($\rho=0$).
[AI_DEMO: An interactive scatter plot where users can adjust the correlation slider between two assets and watch the "bend" of the portfolio opportunity set change. At $\rho=1$, it's a straight line; as $\rho$ decreases, the line bows toward the Y-axis (lower risk).]
Diversification
Diversification is often called the "only free lunch in finance." It is the practical application of the mathematical principle that covariance matters more than individual variance in a large portfolio.
Systematic vs. Idiosyncratic Risk
As we add more assets to a portfolio, the contribution of each individual asset's variance ($\sigma_i^2$) begins to vanish, while the average covariance between assets ($\sigma_{ij}$) remains.
- Idiosyncratic Risk (Unsystematic/Specific): Risk unique to a specific company (e.g., a CEO scandal or a factory fire). This can be diversified away.
- Systematic Risk (Market): Risk that affects the entire economy (e.g., interest rate changes, recessions). This cannot be diversified away.
The $1/N$ Portfolio Limit
In an equally weighted portfolio ($w_i = 1/N$), the variance is: $$\sigma_p^2 = \frac{1}{N} (\text{Average Variance}) + \left(1 - \frac{1}{N}\right) (\text{Average Covariance})$$
As $N \to \infty$, the first term goes to zero. The risk of a well-diversified portfolio is determined solely by the average covariance of the stocks within it.
Common Pitfalls
- The Correlation Breakdown: In times of extreme market stress (e.g., the 2008 financial crisis), correlations often "spike to one." Assets that appeared uncorrelated suddenly move in lockstep, causing diversification to fail exactly when it is needed most.
- Over-diversification: Adding hundreds of assets can lead to "closet indexing," where the investor pays active management fees for a portfolio that merely mimics the market index.
The Sharpe Ratio
Once we have constructed the Efficient Frontier (the set of portfolios offering the highest return for each level of risk), we need a way to select the "best" one. William Sharpe introduced the Sharpe Ratio to measure the excess return per unit of risk.
Definition
The Sharpe Ratio ($S$) is defined as: $$S = \frac{E[R_p] - R_f}{\sigma_p}$$ where $R_f$ is the risk-free rate (typically the yield on a 3-month Treasury bill).
Why It Matters
The Sharpe Ratio represents the slope of the Capital Allocation Line (CAL). The CAL is the line representing all possible combinations of the risk-free asset and a specific risky portfolio. A higher Sharpe Ratio means a steeper CAL, providing a better trade-off between risk and reward.
| Sharpe Ratio Range | Interpretation |
|---|---|
| < 1.0 | Sub-optimal; the risk taken is not well-compensated by excess return. |
| 1.0 - 1.9 | Good; standard for many diversified equity funds. |
| 2.0 - 2.9 | Very Good; indicative of high-performing hedge funds or strategies. |
| 3.0+ | Excellent; often unsustainable in the long run due to capacity constraints. |
The Tangency Portfolio
The Tangency Portfolio is the unique point on the Efficient Frontier where the Sharpe Ratio is maximized. It is the point where the Capital Allocation Line (CAL) is exactly tangent to the Efficient Frontier.
How It Works: The Two-Step Optimization
- Identify the Tangency Portfolio: Find the weights $w_i$ that maximize the Sharpe Ratio. This portfolio is purely "risky" (contains no risk-free asset).
- The Separation Theorem: Regardless of an investor's risk aversion, they should all hold the same risky portfolio (the Tangency Portfolio). They only differ in how they split their total wealth between this Tangency Portfolio and the risk-free asset.
- Conservative Investors: Put 80% in $R_f$ and 20% in the Tangency Portfolio.
- Aggressive Investors: Borrow at $R_f$ (leverage) to put 150% in the Tangency Portfolio.
Implementation: Matrix Notation
In practice, calculating the Tangency Portfolio for $N$ assets requires solving a quadratic programming problem. Using matrix notation, where $\mathbf{\mu}$ is the vector of excess returns and $\mathbf{\Sigma}$ is the covariance matrix, the optimal weights $\mathbf{w^}$ are proportional to: $$\mathbf{w^} \propto \mathbf{\Sigma}^{-1} \mathbf{\mu}$$
Implementation Example (Python)
The following code demonstrates how to calculate the portfolio return and volatility for a set of assets using NumPy.
import numpy as np
def portfolio_metrics(weights, returns, cov_matrix, rf_rate=0.02):
"""
Calculates Expected Return, Volatility, and Sharpe Ratio.
"""
# Ensure weights sum to 1
weights = weights / np.sum(weights)
# Expected Portfolio Return
p_ret = np.sum(returns * weights)
# Portfolio Volatility (Standard Deviation)
# Formula: sqrt( w.T * Sigma * w )
p_vol = np.sqrt(np.dot(weights.T, np.dot(cov_matrix, weights)))
# Sharpe Ratio
sharpe = (p_ret - rf_rate) / p_vol
return p_ret, p_vol, sharpe
# Example Data: 3 Assets
returns = np.array([0.12, 0.15, 0.08])
cov_matrix = np.array([
[0.04, 0.02, 0.01],
[0.02, 0.09, 0.03],
[0.01, 0.03, 0.02]
])
weights = np.array([0.4, 0.4, 0.2])
res_ret, res_vol, res_sharpe = portfolio_metrics(weights, returns, cov_matrix)
print(f"Return: {res_ret:.2%}, Vol: {res_vol:.2%}, Sharpe: {res_sharpe:.2f}")
Extensions and Variations
While the standard Mean-Variance framework is the bedrock of finance, several extensions address its real-world limitations:
- Black-Litterman Model: Combines market equilibrium with investor views to create more stable weight estimates, preventing the "extreme weights" often produced by raw Mean-Variance optimization.
- The Resampled Efficient Frontier: Uses Monte Carlo simulations to account for estimation error in expected returns and covariances.
- Post-Modern Portfolio Theory (PMPT): Replaces standard deviation (which penalizes upside volatility) with Downside Deviation (Sortino Ratio), focusing only on "bad" risk.
- Multi-Factor Models (APT): Expands the definition of risk beyond the market index to include factors like Size, Value, and Momentum.
- Mean-Variance Analysis: The framework of optimizing the trade-off between expected return and variance.
- Efficient Frontier: The set of portfolios that offer the maximum return for a given level of risk.
- Systematic Risk: Non-diversifiable market risk (e.g., inflation, GDP growth).
- Idiosyncratic Risk: Firm-specific risk that can be eliminated via diversification.
- Tangency Portfolio: The portfolio on the efficient frontier with the highest Sharpe Ratio.
- Capital Allocation Line (CAL): The line representing combinations of the risk-free asset and a risky portfolio.
- Separation Theorem: The idea that the choice of risky portfolio is independent of an individual's risk preference.
- If two assets have a correlation of -1.0, is it possible to create a portfolio with zero risk? (Yes, by weighting them inversely to their standard deviations).
- Why does the Sharpe Ratio use excess return (Return - Risk-free rate) instead of just total return? (To measure the compensation received specifically for taking on risk above the guaranteed rate).
- As the number of assets in a portfolio increases, which component of variance becomes dominant: individual asset variance or average covariance? (Average covariance).
- True or False: An investor with high risk aversion will choose a different Tangency Portfolio than an investor with low risk aversion. (False; they choose the same Tangency Portfolio but different allocations to the risk-free asset).
Lecture Summary: Risk, Return, and Portfolio Theory
- Core Objective: Transition from individual asset selection to optimal portfolio construction.
- Key Formulae to Memorize:
- Portfolio Return: $E[R_p] = \sum w_i E[R_i]$
- Portfolio Variance (2-asset): $\sigma_p^2 = w_A^2\sigma_A^2 + w_B^2\sigma_B^2 + 2w_Aw_B\sigma_A\sigma_B\rho_{AB}$
- Sharpe Ratio: $(E[R_p] - R_f) / \sigma_p$
- Critical Concepts:
- The "Free Lunch": Diversification reduces risk without necessarily reducing return, provided $\rho < 1$.
- The Efficient Frontier: The upper boundary of the feasible set of portfolios.
- The Tangency Portfolio: The optimal risky portfolio for all investors.
- Real-World Application: Use Mean-Variance Analysis to determine asset allocation (e.g., 60% Stocks / 40% Bonds), but be wary of correlation spikes during market crashes.
Source Materials
Study Finance Theory I on Lykke
This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.
Add the free extensionSign in to open every section