Covariance
Finds: whether two returns move together.
When to use it: Use it to see whether two returns tend to move in the same direction (positive) or in opposite directions (negative). Its size is hard to interpret, so it is usually converted to correlation.
The formula
In words: Cov(X,Y) = sum of (xi − mean x)(yi − mean y) / (n − 1)
What each symbol means
| Cov(X,Y) | Sample covariance of X and Y | percent squared |
| x_i, y_i | Paired observations, such as two assets' returns in the same period | percent |
| x-bar, y-bar | Mean of X and mean of Y | percent |
| n | Number of pairs | number |
Worked example
Asset X returned 10%, −5% and 15%, and asset Y returned 8%, −2% and 12% in the same three years. What is their covariance?
| Deviation of each X from its mean | 3.33%, −11.67%, 8.33% | |
| Deviation of each Y from its mean | 2%, −8%, 6% | |
| Multiply the deviations pair by pair | 0.0007, 0.0093, 0.0050 | |
| Covariance | 0.0075 |
The answer
The covariance is 0.0075. It is positive, so the two assets tend to move together.
Want every formula on a few pages?Get the free Cheat Sheet (PDF) →
Calculator
Covariance0.0075