How do you show that the variance of $a^TX$ for multivariate normal X is $a^T\Sigma a$?
I have $V(a'X)=E(a'X-E[a'X])^2$, but it seems like the dimensions get messed up or something after that. So I'm not sure what I ought to be doing instead.
How do you show that the variance of $a^TX$ for multivariate normal X is $a^T\Sigma a$?
I have $V(a'X)=E(a'X-E[a'X])^2$, but it seems like the dimensions get messed up or something after that. So I'm not sure what I ought to be doing instead.
I imagine it goes something like this (apologies for any typos or steps missed):
\begin{align} Cov(a^TX) &= E([a^TX-E(a^TX)][a^TX-E(a^TX)]^T)\\ &=E([a^TX-a^TE(X)][a^TX-a^TE(X)]^T)\\ &=E(a^TXX^Ta-2a^TE(X) X^Ta+a^TE(X)E(X^T)a)\\ &=a^TE(XX^T)a-2a^TE(X)E(X^T)a+a^TE(X)E(X^T)a\\ &=a^TE(XX^T)a-a^TE(X)E(X^T) a\\ &=a^T[E(XX^T)a-E(X)E(X^T)a]\\ &=a^T[E(XX^T)-E(X)E(X^T)]a\\ &=a^T\Sigma a \end{align}
where $\Sigma=E(XX^T)-E(X)E(X^T)$
which should make sense since it looks familiar to the typical variance formula we are used to, namely:
$$V(X)=E(X^2)-(E(X))^2$$ and if you multiplied that by a scalar $a$ then you would have $$V(aX)=a^2(E(X^2)-(E(X))^2)$$