Random Vectors#
Take \(N\) random variables \(X_1,\dots,X_N\) and put them in a vector:
We say that \(\mathbf{X}\) is a random vector. Random vectors are used to model uncertain stuff that requires multiple numbers to be described. For example:
The state of a multi-body system can be described by the random vector of coordinates and velocities.
An unknown function could be modeled by the random vector of its function values at \(N\) test points.
An image could be modeled by the random vector of its pixel values.
Probability density function of a random vector#
The PDF of the random vector is the joint PDF of the components. We write:
This function is the joint PDF of \(N\) variables. You can marginalize it to get the PDF of any subset of the variables. For example, the PDF of the first component is:
But you can integrate any other subset of variables. For example, the PDF of the first and second components is:
And so on.
Expectation of a random vector#
The expectation of a random vector is the vector of expectations of each component:
This satisfies properties similar to the expectation of scalar random variables. For example, for any real number \(\lambda\), we have that:
Also, if \(\mathbf{Y}\) is another \(N\)-dimensional random vector, we have:
Covariance matrix of two random vectors#
Let \(\mathbf{X}\) and \(\mathbf{Y}\) be \(N\)- and \(M\)-dimensional random vectors, respectively. The covariance of \(\mathbb{X}\) and \(\mathbf{Y}\) is the \(N\times M\) matrix consisting of all covariances between the components of \(\mathbf{X}\) and \(\mathbf{Y}\), i.e.,
It can also be rewritten as the expectation of a matrix:
Here we assumed that the expectation operator is applied to each one of the matrix components.
It is easy to show that each argument’s covariance is a linear function.
The \(N\times N\) matrix \(\mathbb{C}[\mathbf{X},\mathbf{X}]\) is the self covariance matrix (or just covariance matrix) of \(\mathbf{X}\). The diagonal of the covariance matrix of \(\mathbf{X}\) contains the variances of each component of \(\mathbf{X}\).