Portfolio risk depends on how assets move together, not only on how much each one moves. This lesson covers covariance and correlation from return data, the variance of a two-asset portfolio, and why combining assets with correlation below +1 reduces risk.
Covariance
Covariance measures whether two return series tend to sit above or below their own means at the same time. For a sample of n periods:
Cov(A, B) = sum of (R_A - mean of A) x (R_B - mean of B) / (n - 1)
A positive value means the two tend to be high together and low together; a negative value means one tends to be high when the other is low. Its units are percent squared, so its size alone is hard to read.
Example: a property fund (A) returned 8%, -2%, 12% and 6% over four years, and a utility fund (B) returned 5%, 1%, 7% and 3%. The means are 6% and 4%. The deviation products are 2 x 1 = 2, (-8) x (-3) = 24, 6 x 3 = 18 and 0 x (-1) = 0, summing to 44, so Cov(A, B) = 44 / 3 = 14.67.
Correlation
Correlation rescales covariance by the two standard deviations:
ρ = Cov(A, B) / (σ_A x σ_B)
where ρ (rho) is the correlation and σ (sigma) a standard deviation. Correlation always lies between -1 and +1. In the example, σ_A = sqrt(104 / 3) = 5.89% and σ_B = sqrt(20 / 3) = 2.58%, so ρ = 14.67 / (5.89 x 2.58) = 0.96: the funds moved almost in step.
Read correlation with care:
- It measures only straight-line co-movement. A strategy that loses in both very good and very bad markets can show a correlation near zero yet depend heavily on the market.
- A few extreme observations can drive it.
- Correlation is not causation. Two series can correlate because both respond to a third variable, or by chance (spurious correlation).
Variance of a two-asset portfolio
A portfolio's expected return is the weighted average of the assets' expected returns. Its variance is not a weighted average:
σ_p^2 = w_A^2 x σ_A^2 + w_B^2 x σ_B^2 + 2 x w_A x w_B x Cov(A, B), with Cov(A, B) = ρ x σ_A x σ_B
Example: 60% in an equity fund (σ = 18%) and 40% in a bond fund (σ = 7%), with ρ = 0.2:
0.36 x 324 + 0.16 x 49 + 2 x 0.6 x 0.4 x 0.2 x 18 x 7 = 116.64 + 7.84 + 12.096 = 136.576
σ_p = sqrt(136.576) = 11.69%, well below the weighted average of the two standard deviations, 0.6 x 18 + 0.4 x 7 = 13.6%.
Why correlation below +1 diversifies
| Correlation | Portfolio standard deviation (positive weights in both assets) |
|---|---|
| +1 | Equal to the weighted average of the two |
| Between -1 and +1 | Below the weighted average |
| -1 | Can be zero with the right weights |
At ρ = -1, putting σ_A / (σ_A + σ_B) of the money in asset B removes all risk: in the example that is 18 / 25 = 72% in the bond fund. In a portfolio of many assets the covariance terms far outnumber the individual variances, so what an asset adds to risk depends mostly on how it moves with everything else. Because most assets are positively correlated, diversification lowers risk but cannot remove all of it. Correlations also tend to rise in market crises, shrinking the benefit when it is most wanted.
On the exam
- Sample covariance divides by n - 1 and uses deviations from each series' mean.
- Correlation divides by the product of standard deviations, not variances.
- Keep the sign of a negative correlation in the cross term.
- Unless ρ = +1, a portfolio with positive weights in both assets has a standard deviation below the weighted average of the two.