It is easy to assume that the notion of the mean of a set of numbers is familiar to everyone, at least from a purely intuitive point of view. Nevertheless, this section provides a brief summary, gives the relevant definitions, and highlights some interesting aspects.
For samples of an observed quantity
, the sample mean sample mean is denoted by
and is given by
| (2.1) |
If infinitely many values of could be sampled,
would converge to the theoretical expected value (expected value). This is the law of large numbers (Law of Large Numbers).
The expected value (expectation, mean) of a random variable is denoted by
or
and can be computed for discrete random variables using
| (2.2) |
| (2.3) |
We now introduce the concept of the mean of a function of a random variable.
| (2.5) |
Some functions have means with particularly significant interpretations.
When , we speak of the first-order moment (first statistical moment), and, in general, when
, we speak of
-order moments.
The mean is therefore the first-order statistic, while another statistic of particular interest is the second-order moment:
| (2.6) |
The variance is defined as the expected value of the square of the random variable after subtracting its mean, that is, as the second-order moment of the function
:
| (2.7) |
| (2.8) |
The square root of the variance is known as the standard deviation (standard deviation) and has the advantage of having the same unit of measurement as the observed quantity:
| (2.9) |
We now extend the concepts introduced so far to the multivariate case. The multivariate case can be viewed as an extension to multiple dimensions, with a different variable associated with each dimension.
The covariance matrix is the multidimensional (or multivariable) extension of the concept of variance.
It is constructed as
| (2.10) |
The possible notations for the covariance matrix are
| (2.11) |
The notation for the cross-covariance is instead unique:
| (2.12) |
| (2.13) |
The covariance matrix describes how the different components are correlated with one another and is also called the scatter matrix (scatter matrix). The inverse of the covariance matrix is called the concentration matrix or precision matrix.
In the scalar case, the correlation coefficient between two random variables
and
is defined as
| (2.14) |
In the multivariate case, a correlation matrix is defined analogously by normalizing the cross-covariance matrix so that each element represents the correlation coefficient between a component of and a component of
. In this case as well, all matrix elements belong to the interval
.