The multivariate Gaussian: shape, parameters and limits
10 questions on the central limit theorem, covariance matrices, ellipse-shaped contours, parameter counts and the limits of a single Gaussian.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
A two-dimensional Gaussian has a covariance matrix proportional to the identity, a single shared spread. What do its lines of equal density look like?
- Tilted ellipses
- Circles centred on the mean
- Straight lines
Sample 2
How does the number of free parameters of a Gaussian with a full covariance matrix grow with the number of dimensions D?
- Linearly, in proportion to D
- It stays fixed at two
- Quadratically, roughly in proportion to D squared
How it works
- One question per screen. An answer is final once sent.
- You see right away whether you were right, with a short explanation.
- The stopwatch runs: on equal scores, the faster player ranks first.
- Only your best attempt counts, so replaying is never risky.
About this quiz
Real data rarely comes as a single number. A person has a height and a weight, a house has a size, a price and a location, an image has thousands of pixel values. When several quantities vary together, the bell curve of one variable becomes a bell-shaped hill over many, the multivariate Gaussian. It is the most heavily used probability model in statistics and machine learning, and understanding its shape tells you what it can and cannot represent, and why so many more elaborate models are built from it.
The quiz begins with a reason for its popularity. A famous result says that when many small independent effects are added up, the total tends to look Gaussian, whatever the individual effects looked like. You will apply that idea to an average of readings. Then the quiz looks at the geometry. In two dimensions the lines of equal density are ellipses, and the covariance matrix decides how those ellipses are stretched and tilted. You will see how special cases, such as circles and axis-aligned ellipses, correspond to simplified covariance matrices, and what the directions of the axes have to do with the matrix itself.
The second half is about limits. A Gaussian in many dimensions needs an enormous number of parameters, and you will see how quickly that number grows and what simplifications are used to reduce it. You will also meet a deeper limitation: a single Gaussian has just one peak, so it cannot describe data that falls into several separate clumps. The quiz asks what a Gaussian does when it is made to fit such data, and which condition on the covariance must hold for the distribution to make sense at all.
Common misconceptions are worth knowing. People assume that the covariance matrix only describes the spread of each variable, forgetting that it also encodes how variables move together. They assume that simplifying the matrix is free, when it removes the model's ability to represent correlations. And they treat the Gaussian as a universal model, when its single peak is a serious restriction for much real data. Seeing the ellipse behind the numbers also helps later, when you meet principal component analysis, clustering with Gaussian components or generative models that start from a Gaussian cloud, because all of them are built on the same picture of a tilted, stretched hill and its axes.
The quiz suits students and practitioners who have seen the one-dimensional bell curve and want a clear picture of the multi-dimensional version. No matrix algebra is required. There are 10 questions, each explained straight after you answer, and the quiz takes about four minutes.
Questions and answers
›How long does the quiz take?
About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. An explanation appears after every answer.
›Do I need to know linear algebra?
No. Words such as covariance matrix and eigenvector are explained through pictures of ellipses. You never have to multiply matrices, and each question can be answered from the geometry or from common sense about data.
›What do the mean and covariance of a multivariate Gaussian describe?
The mean is a list of averages, one for each variable, and it marks the centre of the hill. The covariance matrix records how much each variable varies and how each pair varies together. Between them they describe the location, the size and the orientation of the cloud of probable points.
›What is the central limit theorem?
It says that the sum of many independent random quantities tends to have a distribution that looks more and more Gaussian as the number of terms increases, subject to mild conditions. In practice, the approach to the bell shape can be very fast, which is one reason Gaussian models work so well for measurement noise.
›Why are the contours of a Gaussian ellipses?
The density depends on the position through a quadratic expression, a kind of squared distance that takes the covariance into account. Points with the same value of that distance lie on an ellipse, or on an ellipsoid in more dimensions, centred on the mean. The tilt and stretch of the ellipse come from the covariance matrix.
›Why simplify the covariance matrix?
A full covariance matrix has far more numbers than most data sets can pin down, and it is slow to invert. Restricting it, for example to a diagonal form or to one single shared spread, cuts the number of parameters and speeds up calculation. The price is that the model can no longer capture some or all of the relationships among variables.
›What does it mean that a Gaussian is unimodal?
It means the distribution has a single peak. Whatever its parameters, a Gaussian can only describe data that is concentrated around one place. Data with several distinct groups needs a more flexible model, such as a mixture of several Gaussians.
›Why must the covariance have positive eigenvalues?
The eigenvalues are the spreads along the principal axes of the ellipse. If one of them were zero or negative, the distribution could not be normalised into a proper probability density. When one is exactly zero, the distribution collapses onto a lower-dimensional subspace and becomes singular. When a covariance matrix is estimated from too little data, it can come out with directions that are almost perfectly flat, which makes the model unstable. Practitioners therefore often add a small positive amount to every direction, which is a simple way of keeping all the spreads comfortably above zero.