Probability and statistics

Cov⁡(X,Y)\operatorname{Cov}(X, Y) Covariance

How two random quantities vary together; positive when they rise together.

In ML papers

Cov⁡(X,Y)=E[(X−μX)(Y−μY)]\operatorname{Cov}(X, Y) = \mathbb{E}[(X - \mu_X)(Y - \mu_Y)] is positive when XX and YY tend to be above their means together, negative when one is high as the other is low. For a random vector, the covariance matrix Σ\Sigma holds every pairwise covariance, with variances on its diagonal.

How to type it

LaTeXShows
\operatorname{Cov}(X, Y)Cov⁡(X,Y)\operatorname{Cov}(X, Y)

A worked example

x=(1,2,3), y=(2,4,6): Cov⁡=(−1)(−2)+0+(1)(2)3≈1.33x = (1, 2, 3),\ y = (2, 4, 6): \ \operatorname{Cov} = \tfrac{(-1)(-2) + 0 + (1)(2)}{3} \approx 1.33

They move together, so the covariance is positive.

Equations that use it

Related

Var⁡[X]\operatorname{Var}[X]VarianceΣ\SigmaSigma (capital)Ex∼p[f(x)]\mathbb{E}_{x \sim p}[f(x)]Expectation

Decode this example →