In statistics and probability theory, the covariance matrix is a matrix of
covariances between elements of a vector. It is the natural generalization
to higher dimensions of the concept of the variance of a scalar-valued
random variable.