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.