Multivariate normal distribution

2.2. Multivariate normal distribution#

If all \(X_i\) in the random vector \(X= [\begin{array}{llll} X_1 & X_2 & \ldots &X_m \end{array}]^T\) are normally distributed, then \(X\) will have the multivariate normal distribution, for which the PDF is given as:

\[ f_{X} (x) = \frac{1}{\sqrt{\det(2\pi \Sigma_{X})}} \exp(-\frac{1}{2}(x-\mu_X)^T \Sigma_{X}^{-1}(x-\mu_X) ) \]

which is determined by the expectation \(\mu_X\) and covariance matrix \(\Sigma_X\).

Notation: \(X\sim N(\mu_X,\Sigma_X)\)

An example of the bivariate normal PDF is shown in Fig. 2.5; in this example \( \sigma_{X_1}=1\) and \(\sigma_{X_2}=2\) and \(\rho(X_1,X_2)=0.7\).

https://files.mude.citg.tudelft.nl/01_bivariatenormal.png

Fig. 2.5 Example of bivariate normal PDF and corresponding scatterplot with 2000 realizations.#

Play with bivariate normal PDF#

In this small demo you can create plots of the bivariate normal PDF, including a scatter plot of generated realizations, where you can play with the values of the mean, standard deviations and correlation coefficient. Adjust the values by dragging the handles for the mean (red), standard deviations (blue and yellow), and correlation (green) in the left subplot. Observe how the distribution changes, and how each parameter affects the covariance matrix.

Fig. 2.6 Interactively change the means, standard deviations and correlation coefficient for the bivariate Gaussian PDF and visualize how the density contours, samples and covariance matrix change.#

Attribution

This chapter was written by Sandra Verhagen. Find out more here.