TradeAlmanac
Sign in

Covariance

A measure of how two assets move together: positive when they tend to deviate from their averages in the same direction, negative when in opposite ones.

Formula

Cov(a,b)=1n−1∑i=1n(ra,i−r―a)(rb,i−r―b)

Computed on returns matched by date. The value depends on the scale of the returns themselves, so to compare pairs it is normalised — which gives correlation.

How to read the number

Portfolio risk is driven by covariances rather than by the individual dispersion of each holding: what a pair contributes is set by how they move together.

When the metric lies

Also known as: return covariance

Related terms