DeepLLM Quiz
Statistics and Probability

The Gaussian distribution and the likelihood function

10 questions on the Gaussian distribution, mean, variance, precision, i.i.d. data, likelihood and why we maximise the log likelihood.

  • 10 questions
  • Stopwatch
  • Instant feedback

Shown publicly with your score. Don’t use your full real name.

Sample questions

Play now ↑

Answers stay hidden. Start the quiz to play them.

  1. Sample 1

    You have only a handful of observations and want to estimate the distribution they came from. Why is this problem ill-posed unless you restrict the kind of distribution?

    • Because observations can't be trusted
    • Because computers can't handle probabilities
    • Because infinitely many different distributions could have produced the same finite data set
  2. Sample 2

    A programmer multiplies the probabilities of a thousand data points and the computer returns zero. What is the standard remedy?

    • Drop most of the data points
    • Work with the logarithm of the likelihood, which turns the product into a sum and gives the same best parameters
    • Round all probabilities up to one

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

The bell curve is the most famous shape in statistics. Heights, measurement errors, the noise in an image sensor and the random jitter in a stock price all tend to look roughly like it, and machine learning uses it constantly as a model for noise and as a building block for richer distributions. It is called the Gaussian or the normal distribution, and a single one is completely described by just two numbers. Understanding what those numbers mean and how to find them from data is a small step that unlocks a large part of the field.

This quiz begins with the curve itself. It asks what the two parameters mean, how a third quantity called the precision relates to them, and where the peak sits. It also touches on why the Gaussian appears so often, which has to do with two deep results: it is the least committal distribution you can choose when you know only an average and a spread, and sums of many small independent effects tend to settle into this shape.

The second half concerns fitting. Given a handful of observations, infinitely many curves could have produced them, so some restriction is needed before the question even makes sense. You will learn what it means for data to be independent and drawn from the same distribution, and how that lets you write the probability of the whole data set as a product. That product, viewed as a function of the parameters, is the likelihood. Choosing the parameters that make the observed data most probable is maximum likelihood, and the quiz asks why people almost always maximise its logarithm instead, and what answer comes out for the Gaussian.

Errors to watch for are widespread. People confuse the likelihood with the probability of the parameters, which is a different thing. They think that a larger variance means a larger average. They treat the precision as if it were the spread, when it is the reciprocal of the variance. Or they are surprised that the best-fitting average is simply the average of the data. The quiz uses short scenarios to clear up these points, and every answer is explained. Once these ideas feel natural, the next step in this series is to see what happens to them when a model is fitted to data, since the likelihood turns out to be the loss function behind a large share of modern training procedures.

It suits students, analysts and engineers who meet normal distributions regularly but want the logic behind the usual recipes. You need no calculus. There are 10 questions, with an explanation after each, and the whole 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 the formula of the Gaussian?

No. The quiz never asks you to write or evaluate the formula. It only asks what its parameters mean, what the curve looks like and what the idea of likelihood is used for, all of which can be understood from the picture of a bell curve.

›What are the mean and variance of a Gaussian?

The mean is the centre of the bell, where the curve peaks and where the average value sits. The variance describes how widely the values spread around it: a small variance gives a narrow, tall bell and a large one gives a wide, flat bell. The square root of the variance is the standard deviation.

›What is the precision of a Gaussian?

The precision is the reciprocal of the variance, which means one divided by it. High precision means a narrow bell and values that are tightly bunched. It is convenient in some calculations, and the name reflects that it measures how precisely the values are pinned down around the mean.

›Why does the Gaussian appear in so many places?

Partly because of the central limit theorem, which says that the combined effect of many small independent influences tends to look Gaussian. Partly because, among all distributions with a given mean and variance, it is the one that assumes the least beyond those two facts. It is a sensible default, though not a universal truth.

›What is a likelihood?

It is the probability of the observed data, thought of as a function of the model's parameters. You hold the data fixed, vary the parameters, and see how well each setting explains what was seen. It is not a probability distribution over the parameters, and it does not have to add up to one.

›What does independent and identically distributed mean?

It means that each data point is drawn on its own, without influence from the others, and from the same underlying distribution. This assumption allows the probability of the whole data set to be written as the product of the probabilities of the individual points, which makes the likelihood simple.

›What is maximum likelihood estimation?

It is the method of choosing parameter values that make the observed data as probable as possible. For a Gaussian, the answer for the mean is the average of the data, and the answer for the variance is the average squared distance from that average. It is a foundation of most machine learning training procedures. In everyday practice you will rarely compute these quantities by hand. Statistical software does it for you, but knowing what is behind the numbers helps you to spot when a fitted spread looks implausibly small, or when a single odd observation has pulled the estimated average away from where most of the data lie.

More quizzes