Contact FutureLearn for Support Skip main navigation
We use cookies to give you a better experience, if that’s ok you can close this message and carry on browsing. For more info read our cookies policy.
We use cookies to give you a better experience. Carry on browsing if you're happy with this, or read our cookies policy for more information.

The multivariate normal distribution

The main assumption underlying the shape models we study in this course is that the shape variations can be modelled using a normal distribution. In this article, we summarise the main properties of normal distributions and show how they manifest themselves in shape modelling. In case you are not familiar with the concepts described here, we highly recommend that you spend some time studying them, as this course relies heavily on these concepts (you find some pointers to literature in the Glossary).

Measurements for the length and the span of a hand shape.Figure 1: measurements for the length and the span of a hand shape.

The running example in this article is a simple model of a hand shape which is described by only two parameters: the length and the span (see Figure 1). We start by modelling the length. Our main assumption is that the length follows a univariate normal distribution.

The univariate normal distribution

The normal distribution is completely defined by two parameters: the mean and variance . Its probability density function is given by

$$p(x)= \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}.$$

Density function of the univariate normal distributionFigure 2: the density function of the univariate normal distribution with and (left), (centre) (right).

The normal distribution is symmetric around the mean and it assigns a non-zero probability everywhere (cf. Figure 2). The variance determines how far the values are spread around the mean. The further away a value lies from the mean the less likely it becomes. The probability of observing a value that is outside of an interval of is less than .

The normal model captures our assumption about the length of a hand rather well. There is an average around which most values are distributed. The possibility of observing unusually long or short hands remains, but the more the observed length deviates from the mean, the less likely we are to ever see such a hand.

To define the model, we need to choose values for the parameters and . A reasonable approach is to take a ruler and measure the hand of a number of people. We obtain a set of values , which we can use to estimate these parameters using the well-known formulas for the sample mean and sample variance:

$$\hat{\mu} = \frac{1}{m} \sum_{i=1}^m l_i$$
and
$$\hat{\sigma}^2 = \frac{1}{m-1}\sum_{i=1}^m (l_i - \hat{\mu})^2.$$

Histogram for the span and length obtained from 169 measurements.Figure 3: histogram for the span and length obtained from 169 measurements.

Figure 3 shows a histogram obtained from 169 hand measurements and the normal distribution estimated from the data. We see that the normal assumption is indeed reasonable for length and span.

The bivariate normal distribution

We can obtain a more interesting shape model by modelling the span and length jointly. We assume that it follows a bivariate normal distribution:

$$(s,l) \sim N\left( \left( \begin{array}{c} \mu_s\\ \mu_l \end{array} \right), \left( \begin{array}{cc} \sigma_{ss} & \sigma_{sl}\\ \sigma_{ls} & \sigma_{ll} \end{array} \right)\right). $$

To define the distribution, we specify the mean and variance for the span and and the length and as well as the covariance . The covariance describes the coupling between the variables. If , it means the two variables are independent, otherwise we know that the values are correlated. In our case, it is intuitively clear that the span and the length of the hand are correlated, as both are related to the size of the hand.

The marginal and conditional distributions

Two distributions that can be derived from the bivariate normal distribution will play a very important role in this course. The first is the marginal distribution, which gives us the distribution for (or ) separately. The marginal distribution for is the distribution we obtain if we do not know anything about the value of . It is simply the univariate normal defined if we drop all variables that are not related to , i.e. . The second important distribution is the conditional distribution . It can be shown that also this conditional distribution is a univariate normal distribution. It models the span given that we know the length . As we assumed that span and length are correlated, the variance in the conditional distribution should be smaller than in the marginal distribution, where we do not assume anything about the length.

The multivariate normal distribution

Normal models can be defined for any finite number of variables using the multivariate normal distribution . It is specified by a mean vector and a covariance matrix :

$$\left( \begin{array}{cc} x_1\\ \vdots \\ x_n \end{array} \right) \sim N\left( \left( \begin{array}{c} \mu_1\\ \vdots\\ \mu_n \end{array} \right), \left( \begin{array}{ccc} \Sigma_{11} & \ldots &\Sigma_{1n}\\ & \vdots & \\ \Sigma_{n1} & \ldots &\Sigma_{nn} \end{array} \right) \right) $$

The diagonal entry defines the variance of the variable , whereas the entry defines the covariance between and . A valid covariance matrix is required to be symmetric and positive semi-definite. The marginal and conditional distributions can be defined also in this more general case. They are both multivariate normal distributions themselves whose parameters can be computed efficiently using closed-form formulas. We will discuss the exact formulas later in this course.

This article is from the free online course:

Statistical Shape Modelling: Computing the Human Anatomy

University of Basel