Lesson 2 of 7 · 13 min

Covariance and correlation

Covariance tells you whether two returns move together; correlation rescales it to a unit-free number between −1 and +1 so you can judge how strongly.

In short

  • Covariance is the probability-weighted average of the product of two variables' deviations from their expected values.
  • Positive covariance: returns tend to be on the same side of their means at the same time. Negative: opposite sides. Zero: no linear relation.
  • The covariance of a return with itself is its variance; and Cov(Ri,Rj)=Cov(Rj,Ri)\text{Cov}(R_i,R_j) = \text{Cov}(R_j,R_i).
  • Sample covariance from historical data divides the sum of cross-products by n−1n - 1.
  • Correlation = covariance ÷ (product of the two standard deviations). It lies between −1 and +1; strength is read from its distance from 0.
  • Both measure linear association only.

Unlock this lesson free for 7 days

Create a free account to get 7 days of full access — every lesson, video, flashcard, mock and the question bank. No card needed.

Covariance and correlation · Portfolio Mathematics