MIT 18.650 — Lecture 5
Multivariate Random Vectors
Definition. A random vector is just a vector of random variables .
Definition. The expectation of is what you'd expect: .
To define the variance of , however, it is not enough to take the variances of each individual . That doesn't capture the pairwise covariances between the .
Definition. The covariance between and is .
Remark. Here's how covariance relates to dependence / independence.
If and are independent, then . Meanwhile, .
Suppose and are positively correlated: when , it tends to be that too. Then .
Analogously, when and are negatively correlated, it tends to be that .
And here are some algebraic properties of covariance.
.
.
.
However, . This wouldn't even pass dimensional analysis!
.
That last bullet point is particularly interesting; here's the derivation:
Definition. The variance (covariance matrix) of a random vector is the matrix of pairwise covariances.
Note that, equivalently, for all entries .
Theorem. (Transforming Random Vectors) Consider with and .
For any constant , we have is a random variable satisfying and .
For any constants and , we have and .
Proof: It's all just algebra.
is true by linearity of expectation.
follows easily from the definitions.
is true by linearity of expectation.
is… the exact same derivation as earlier.
Really, the first and second bullet points of this theorem are the same. Think of as a matrix.
Remark. This isn't part of 18.650, but it's worth knowing.
Notice that the covariance matrix is always symmetric. Therefore, we may apply the Spectral Theorem, which says , where (eigenvalues) and is the orthonormal eigenbasis.
Furthermore, is positive semidefinite: for any eigen-pair , we have:
Therefore, since variance is nonnegative, every eigenvalue is nonnegative!
It turns out that a matrix can be a covariance matrix if and only if is symmetric positive semidefinite.
Furthermore, is maximized when is the eigenvector with greatest eigenvalue. See 18.701 notes; this gives rise to Principal Component Analysis (PCA), where the eigenvectors are the principal components of .