DeepLLM Quiz
Statistics and Probability

The exponential family and sufficient statistics

10 questions on the exponential family, natural parameters, sigmoid and softmax, sufficient statistics and what you really need to store from data.

  • 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

    Writing the Bernoulli distribution in the standard form of the family, its probability turns out to be a function of the natural parameter. Which function?

    • The square root
    • The logistic sigmoid
    • The softmax with more than two classes
  2. Sample 2

    To fit a Gaussian by maximum likelihood, which two summaries of the data are sufficient?

    • The sum of the values and the sum of their squares
    • The median and the mode
    • The smallest and the largest value

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

Statisticians love to find patterns that unite many different things, and one of the most useful ones in probability is the exponential family. Despite the name, it has nothing to do with exponential growth. It is a broad class of distributions, including many you already know, that can all be written in one standard form. Writing them that way pays off: members of the family share a method for estimating their parameters, a way of finding their averages and spreads, and a surprising answer to the question of how much of your data you really need to keep.

The quiz introduces the idea in an applied way. It asks which familiar distributions belong to the family and which famous exception does not. It explores the so-called natural parameters, and shows where two functions that you meet at the end of almost every classification network, one that squashes a score into a probability for two classes and one that does the same for many classes, come from. They are not invented for convenience: they fall out of the standard form.

The second theme is sufficient statistics. When you estimate the parameters of a member of the family by maximum likelihood, the answer depends on the data only through a small summary, such as a sum or a sum of squares. Everything else about the data is irrelevant for that purpose. The quiz asks what the summaries are in a few concrete cases, and what that means for storage and for updating an estimate as data arrive. It also asks how, in principle, you can obtain the averages and spreads of a member by a simple operation on its normalising function.

Common misconceptions are worth watching for. People assume the name refers to growth, or that every distribution belongs to the family. They treat the sigmoid and the softmax as arbitrary design choices. And they believe that one must keep every data point to estimate a parameter exactly, when often a couple of numbers are enough. Seeing that familiar models share one structure is a useful habit. It explains why code libraries can offer one general routine for fitting many distributions, and why the final stage of so many classification models looks the same, a linear score followed by a squashing function that turns it into probabilities. Even a reader who never uses the family directly benefits from knowing that it exists, because it tells you when a pleasant shortcut, such as a tiny summary or an exact formula, is likely to be available.

The quiz suits students in statistics and machine learning who want to see the connections behind the formulas. No mathematics beyond the idea of a sum is required. There are 10 questions, each with an explanation shown 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 the standard form of the family?

No. The quiz never asks you to write it or manipulate it. It describes what the form allows in words and asks about the consequences: which distributions belong, what the natural parameters do, and what has to be stored.

›What is the exponential family?

It is a large class of probability distributions that share one general form. It covers distributions for binary, categorical and continuous data, and many more. Because of the shared form, results proved once for the family apply to all of its members. Another consequence is that fitting a member of the family by maximum likelihood is a well-behaved problem, because the log likelihood has a single best answer. That is part of why these models are the workhorses of generalised linear modelling and of the output layers of neural networks. Whenever a new distribution is proposed for a model, one of the first questions practitioners ask is whether it belongs to this family, since membership brings these tools with it.

›What are natural parameters?

They are the parameters that appear in the standard form of the family. They are often related to the more familiar parameters, such as a probability, by a simple transformation. Working in terms of natural parameters makes the general results of the family easy to state.

›Where do the sigmoid and softmax functions come from?

They arise when the usual parameters of two common distributions are expressed through their natural parameters. That explains why they appear so naturally at the output of classification models, where a network's scores have to be turned into probabilities.

›What is a sufficient statistic?

It is a summary of a data set that holds all the information the data carry about the parameters of a distribution. Once it has been computed, the original data are no longer needed for estimating those parameters. Which summary applies depends on the distribution.

›Why do sufficient statistics matter in practice?

They save memory and allow estimates to be updated cheaply. A running summary can be updated as each new observation arrives, and the observation can then be forgotten. They also tell you which features of the data a model actually uses.

›Can I always find the mean and variance of a member of the family?

In principle, yes, as long as the distribution can be normalised. The averages of the key summaries of the data, and the spreads around them, can be obtained by differentiating the normalising function. For families where that function is simple, the mean and variance come out almost for free.

More quizzes