Sub topic 4
The Math of Combining Assets
Assume you know what stocks, funds, and ETFs are. You should also be comfortable with percentage returns, simple averages, and the idea that higher expected return usually comes with higher risk.
Diversification changes portfolio risk through the way holdings move together. The key measure is correlation, which describes how closely two investments move:
- A correlation of
1means they move together. - A correlation of
0means their movements have no consistent relationship. - A correlation of
-1means they move in opposite directions.
Expected portfolio return is usually a weighted average of the expected returns of its holdings. Portfolio volatility, however, is not usually a weighted average. It also depends on correlation.
The two-asset calculation
For two assets, portfolio variance is:
σp² = (w1σ1)² + (w2σ2)² + 2w1w2σ1σ2ρ
Here:
σpis portfolio volatility.w1andw2are the portfolio weights.σ1andσ2are the individual volatilities.ρis the correlation between the assets.w1 + w2 = 1.
The portfolio volatility is the square root of the variance.
Consider two assets with 50% weights and 20% volatility each:
| Correlation | Portfolio volatility |
|---|---|
| 1.0 | 20.00% |
| 0.5 | 17.32% |
| 0.0 | 14.14% |
When correlation is 1, diversification provides no volatility reduction. As correlation falls, the assets offset one another more effectively.
import math
def portfolio_volatility(weight_1, volatility_1, volatility_2, correlation):
weight_2 = 1 - weight_1
variance = (
(weight_1 * volatility_1) ** 2
+ (weight_2 * volatility_2) ** 2
+ 2 * weight_1 * weight_2
* volatility_1 * volatility_2 * correlation
)
return math.sqrt(variance)
for correlation in (1.0, 0.5, 0.0):
result = portfolio_volatility(0.5, 0.20, 0.20, correlation)
print(f"correlation={correlation:.1f}, volatility={result:.4f}")The code treats volatility as a decimal. A value of 0.20 means 20%. It calculates variance first, then takes its square root.
Extending the idea to many holdings
With many assets, each asset contributes its own variance, and every pair of assets contributes a covariance term. Covariance measures whether two investments tend to rise and fall together. Correlation is covariance scaled to a range from -1 to 1.
Adding holdings can reduce risk quickly at first. After that, the benefit usually becomes smaller because the holdings still share common economic influences.
For an equal-weight portfolio of n assets with the same volatility σ and average pairwise correlation ρ:
σp = σ × √(1/n + (1 - 1/n)ρ)
If average correlation is positive, volatility approaches a floor as n becomes large. That floor represents shared market risk. Owning more companies cannot remove every risk because companies respond to interest rates, recessions, inflation, and investor sentiment.
A practical interpretation
Use the math to ask three questions:
- How much does each holding contribute to total risk?
- Are several holdings exposed to the same economic factor?
- Does a new holding add a genuinely different source of return, or does it merely duplicate an existing one?
A bond fund, an international stock fund, and a technology stock may have different labels, but their correlations can change over time. Measure the actual exposure and historical behavior rather than relying only on names.
Exercise
Two assets each have 20% volatility, receive equal portfolio weights, and have a correlation of 0. What is the portfolio volatility?
Show answer
Use the two-asset formula. The result is about 14.14%, lower than the 20% volatility of either individual asset.