Suppose $X$ a random vector and $b$ a constant vector, with $A$ a corresponding constant matrix, then we have the expectation and the covariance of $A$ and $X+b$ satisfying
$$\mathbb{E}(AX+b) = A\mathbb{E}(X)+b$$
$$\text{Cov}(A,X+b) = \text{Cov}(A,X)$$
- Is the first equation due to the linearity of expectation?
- Why does the second equation miss $b$?
I see a textbook that claims these properties without proof. Please show me some calculation to derive these two equations.
The reason is that the operator $\mathbb{E}$ is a linear operation, for example in the continuos case
$$ \mathbb{E}[\alpha X + \beta] = \int{\rm d}x~ (\alpha x + \beta)f_X(x) = \alpha\int {\rm d}x~ x f_X(x) + \beta\int {\rm d}x~ f_X(x) = \alpha \mathbb{E}[X] + \beta $$
In order to calculated the covariance you first subtract the effect of the mean, that's the reason why the constant term does not make any contribution
$$ \mathbb{C}{\rm ov}[X, Y] = \mathbb{E}[(X - \mathbb{E}[X])(Y - \mathbb{E}[Y])] $$
So that
\begin{eqnarray} \mathbb{C}{\rm ov}[\alpha X + \beta, Y] &=& \mathbb{E}[(\alpha X + \beta - \mathbb{E}[\alpha X + \beta])(Y - \mathbb{E}[Y])] \\ &=& \mathbb{E}[(\alpha X + \beta - \alpha\mathbb{E}[X] - \beta])(Y - \mathbb{E}[Y])] \\ &=& \mathbb{E}[(\alpha X + \alpha\mathbb{E}[X])(Y - \mathbb{E}[Y])] \\ &=& \mathbb{E}[\alpha (X -\mathbb{E}[X]])(Y - \mathbb{E}[Y])] \\ &=& \alpha \mathbb{E}[(X -\mathbb{E}[X]])(Y - \mathbb{E}[Y])] \\ &=& \alpha \mathbb{C}{\rm ov}[X, Y] \end{eqnarray}