Sub topic 9
Calculating portfolio return and volatility
This chapter assumes you know what a weighted average is, what a standard deviation measures, and what stocks, bonds, and cash are. It turns the idea of a "60/30/10 mix" into two numbers: an expected return and a volatility. Those numbers let you compare allocations before you commit money to them.
What the two numbers mean
Expected return is the average yearly return you assume an asset will earn over the long run. It is an assumption, not a forecast for next year.
Volatility is the standard deviation of yearly returns. A volatility of 16% means yearly returns typically land within about 16 percentage points of the average. Volatility is the usual stand-in for risk in portfolio math. It does not measure the chance of permanent loss, and it treats upside and downside surprises alike.
Portfolio expected return: a weighted average
Expected return is the simple part. Multiply each asset's weight by its expected return and add the results.
For a 60% stock, 30% bond, 10% cash portfolio with assumed returns of 7%, 4%, and 2%:
- Stocks: 0.60 × 7% = 4.2%
- Bonds: 0.30 × 4% = 1.2%
- Cash: 0.10 × 2% = 0.2%
- Portfolio: 4.2% + 1.2% + 0.2% = 5.6%
Return is linear in the weights. Moving 10 percentage points from bonds to stocks adds exactly 10% × (7% − 4%) = 0.3 percentage points. Volatility does not behave this way.
Portfolio volatility is not a weighted average
Volatility depends on how the assets move together. For two assets with weights w₁ and w₂, volatilities σ₁ and σ₂, and correlation ρ, the portfolio variance is:
variance = (w₁σ₁)² + (w₂σ₂)² + 2 · ρ · (w₁σ₁)(w₂σ₂)
Volatility is the square root of the variance. The correlation ρ ranges from −1 to +1. At +1 the two assets move in lockstep and nothing is gained from combining them. Below +1, some of each asset's swings cancel the other's, so the portfolio is calmer than the weighted average of its parts.
With more assets, the formula is easier to write with matrices. Build a covariance matrix, where each entry is σᵢ · σⱼ · ρᵢⱼ. Then the portfolio variance is wᵀ Σ w, where w is the vector of weights and Σ is the covariance matrix.
A full worked example
This script uses the assumed inputs from above: stock volatility 16%, bond volatility 6%, cash volatility 1%, and modest positive correlations.
import numpy as np
weights = np.array([0.60, 0.30, 0.10]) # stocks, bonds, cash
exp_returns = np.array([0.07, 0.04, 0.02]) # assumed annual expected returns
vols = np.array([0.16, 0.06, 0.01]) # assumed annual volatilities
corr = np.array([
[1.0, 0.2, 0.0],
[0.2, 1.0, 0.1],
[0.0, 0.1, 1.0],
])
cov = np.outer(vols, vols) * corr
port_return = weights @ exp_returns
port_vol = np.sqrt(weights @ cov @ weights)
print(f"Expected return: {port_return:.1%}")
print(f"Volatility: {port_vol:.1%}")It prints an expected return of 5.6% and a volatility of 10.1%. The weighted average of the three volatilities is 0.60 × 16% + 0.30 × 6% + 0.10 × 1% = 11.5%. The portfolio's 10.1% is lower because the correlations are below 1. That 1.4-point gap is the benefit of diversification in this example.
The matrix formula does the same work as the two-asset formula, just for every pair of assets at once. By hand, the three squared terms add up to 0.009541. The cross terms add 0.000695. The variance is 0.010236, and its square root is about 0.1012.
How correlation changes the answer
Hold the weights and volatilities fixed and change only the stock-bond correlation. Here is a 60/40 stock-bond mix with 16% and 6% volatilities:
import numpy as np
w = np.array([0.6, 0.4])
vols = np.array([0.16, 0.06])
for rho in [1.0, 0.2, 0.0, -0.3]:
corr = np.array([[1.0, rho], [rho, 1.0]])
cov = np.outer(vols, vols) * corr
print(f"corr {rho:>5}: vol {np.sqrt(w @ cov @ w):.1%}")| Stock-bond correlation | Portfolio volatility |
|---|---|
| +1.0 | 12.0% |
| +0.2 | 10.4% |
| 0.0 | 9.9% |
| −0.3 | 9.2% |
The expected return is 5.8% in every row, because correlation does not enter the return formula. Lower correlation buys lower risk for the same expected return. This is why combining assets that do not move together is the main practical tool for managing risk.
Limits of these numbers
The formulas are exact, but the inputs are estimates. Several problems follow from that.
- Inputs are assumptions. Small changes in expected returns or correlations shift the output. Treat results as a way to compare mixes, not as predictions.
- Correlations are not stable. They change over time. In sharp market sell-offs, correlations between risky assets tend to rise, so diversification helps least when you need it most. Stock-bond correlation has also been positive in some inflationary periods and negative in others.
- Returns have fat tails. Volatility summarizes typical swings. Real markets produce extreme losses more often than a normal distribution suggests, so a 10% volatility does not rule out a 25% loss.
- The average return is arithmetic. The expected return above is an arithmetic average. The growth rate you actually experience over many years is the geometric (compound) rate, which is lower. A rough approximation is the arithmetic return minus half the variance. For the 60/30/10 example that is about 5.6% − 0.5 × 1.02% ≈ 5.1% per year.
- Costs are not included. Fund fees reduce returns. Subtract the expense ratio from each asset's expected return before you compute.
- Units must match. If you have monthly volatilities, multiply by the square root of 12 to get an annual figure. Do not multiply by 12.
- Weights drift. The calculation uses the weights at one moment. As prices move, the weights change, which is the subject of the rebalancing chapter.
Using the result in allocation
The two numbers feed directly into choosing a target allocation. Expected return tells you whether a mix can plausibly reach a goal. Volatility tells you how bumpy the path may be, which you can compare with your risk tolerance and risk capacity. A mix that needs 7% to meet a goal but whose volatility you cannot tolerate is a mismatch you can see before investing.
Exercise
A portfolio is 50% stocks and 50% bonds. Assume stocks have a 7% expected return and 16% volatility, bonds have a 4% expected return and 6% volatility, and the correlation is 0.2. Calculate the expected return and the volatility.
Show answer
Expected return = 0.5 × 7% + 0.5 × 4% = 5.5%. The weighted volatilities are 0.5 × 16% = 8% and 0.5 × 6% = 3%. Variance = 0.08² + 0.03² + 2 × 0.2 × 0.08 × 0.03 = 0.0064 + 0.0009 + 0.00096 = 0.00826. Volatility = √0.00826 ≈ 9.1%. The weighted average of the volatilities is 11%, so diversification lowers risk by about 1.9 points.
Exercise
You change the stock-bond correlation from 0.2 to 0.8 and keep everything else the same. What happens to the expected return and to the volatility, and why?
Show answer
The expected return does not change, because it depends only on weights and expected returns. The volatility rises, because a higher correlation means the swings in the two assets cancel less. The volatility moves toward the weighted average of the individual volatilities and reaches it when the correlation is 1.