Probability densities and simple distributions
10 questions on probability density, area under a curve, the cumulative distribution and uniform, exponential, Laplace and delta distributions.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
How do you obtain the probability that a variable lies between two values from its probability density?
- Measure the area under the density curve between those two values
- Read the height of the curve halfway between them
- Subtract the height at the lower value from the height at the upper value
Sample 2
A quantity is equally likely to lie anywhere between 0 and 0.5, and never outside. What is its probability density inside that range?
- 0.5
- 1
- 2
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
Ask for the probability that tomorrow's temperature is exactly 21.3702 degrees, to infinite precision, and the honest answer is zero. Ask for the probability that it is between 21 and 22, and the answer is a perfectly sensible number. That small puzzle is the doorway to probability densities, the tool that statistics and machine learning use whenever a quantity can take any value on a scale: heights, prices, doses, sensor readings, pixel intensities and the outputs of a neural network.
This quiz explains what a density is and what it is not. A density is a curve, and probabilities come from areas under it, not from its height at a point. It must never go below zero, and the total area under it must be exactly one. Its running total, the cumulative distribution, answers the question « how likely is it that the value is at most this? », and the density is the slope of that running total. You will also see that the old rules for adding and multiplying probabilities carry over unchanged, with sums replaced by areas.
The second half of the quiz introduces a small gallery of simple densities that appear again and again as building blocks. One is flat across a range. One falls away steeply from a peak at zero. A cousin of that one lets the peak sit anywhere you like and falls away on both sides. There is also a mathematically peculiar one, an infinitely narrow spike with a total area of exactly one, which turns out to be exactly what you need to describe a list of observed data points as a distribution of their own.
Typical mistakes are easy to make. People read the height of a density as a probability, and are surprised when it exceeds one. They assume any curve that stays above zero can be a distribution, forgetting the requirement that its area can be made to equal one. Or they think a continuous variable must take each value with a small but non-zero probability. Walking through these cases builds an intuition that helps later with the Gaussian, with likelihoods and with the loss functions used to train networks. These ideas return in later quizzes on the Gaussian, on likelihoods and on how generative models transform simple distributions into complicated ones, so a firm picture of area, height and total probability pays off repeatedly.
The quiz suits students and practitioners who have used histograms and averages but never quite settled what a density really measures. No calculus is required, only the picture of area under a curve. There are 10 questions, each explained as you go, and it 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 calculus?
No. Whenever the word area appears, you can read it as the area under a curve on a graph. The quiz never asks you to compute one by hand, only to understand what it means and when it is equal to a probability.
›What is a probability density?
It is a curve that describes how probability is spread over a continuous variable. The probability that the variable lands in a given interval is the area under the curve over that interval. The height of the curve at a single point tells you how concentrated probability is there, not the probability of that point itself.
›Can a probability density be greater than one?
Yes. Probabilities can never exceed one, but a density is not a probability. If all the probability is squeezed into a very narrow range, the curve has to be tall for the area to reach one. A distribution that is flat over a very narrow range, for example, has to be tall there.
›What is the cumulative distribution function?
It gives, for each value, the probability that the variable is at most that value. It starts at zero on the far left and rises to one on the far right. The density is its slope, so steep stretches of the cumulative curve correspond to regions where probability is concentrated.
›What is an improper distribution?
It is a curve that cannot be scaled so that its total area equals one. A constant height over an unbounded range is the standard example, because its area is infinite. Such curves are sometimes used as convenient approximations, but they are not true probability distributions.
›What is the Dirac delta function used for?
It describes all of the probability sitting at one exact point: an infinitely narrow and infinitely tall spike with area one. Placing one at each observed data value gives the empirical distribution, the simplest possible description of a data set as a distribution. Because most real data sets are finite, the empirical distribution is also the starting point for many estimation methods, which smooth it into a more useful continuous curve.
›Do the rules for adding and multiplying probabilities work for densities?
Yes. The sum rule and product rule, and Bayes' theorem, apply to densities, as well as to mixtures of discrete and continuous variables, with sums replaced by integrals. The justification needs a branch of mathematics called measure theory, but the intuition is to slice the variable into tiny intervals and let their width shrink. A good habit is to ask of any curve you meet whether you are being shown a probability, a density or a cumulative total, because plots in papers and dashboards often use all three without labelling them clearly.