Equivalence between covariance definitions

44 Views Asked by At

Could you tell me why the following definition of the covariance:

$$ Cov(X, Y) = \mathbb{E} \Big[ \big(X - \mathbb{E}[X]\big) \, \big(Y - \mathbb{E}[Y]\big) \Big] $$

is equivalent to the following one?

$$ Cov(X, Y) = \mathbb{E}[X \, Y] - \mathbb{E}[X] \, \mathbb{E}[Y] $$


EDIT

By expanding, I get:

\begin{align} Cov(X, Y) &= \mathbb{E}[X \, Y] - \mathbb{E}[X \, \mathbb{E}[Y]] - \mathbb{E}[Y \, \mathbb{E}[X]] + \mathbb{E}[\mathbb{E}[X] \, \mathbb{E}[Y]] = \\ &= \mathbb{E}[X \, Y] - \mathbb{E}[Y] \, \mathbb{E}[X] - \mathbb{E}[X] \, \mathbb{E}[Y] + \mathbb{E}[X] \, \mathbb{E}[Y] = \\ &= \mathbb{E}[X \, Y] - \mathbb{E}[Y] \, \mathbb{E}[X] \end{align}

1

There are 1 best solutions below

0
On BEST ANSWER

By expanding:

\begin{align} Cov(X, Y) &= \mathbb{E}[X \, Y] - \mathbb{E}[X \, \mathbb{E}[Y]] - \mathbb{E}[Y \, \mathbb{E}[X]] + \mathbb{E}[\mathbb{E}[X] \, \mathbb{E}[Y]] = \\ &= \mathbb{E}[X \, Y] - \mathbb{E}[Y] \, \mathbb{E}[X] - \mathbb{E}[X] \, \mathbb{E}[Y] + \mathbb{E}[X] \, \mathbb{E}[Y] = \\ &= \mathbb{E}[X \, Y] - \mathbb{E}[Y] \, \mathbb{E}[X] \end{align}