TL;DR
A sufficient statistic is a function of the data that carries all the information the data contain about an unknown parameter. Once you know its value, the rest of the sample adds nothing to the question of what the parameter is. Many familiar summaries, such as a total count or a sample mean, are sufficient for the parameters of common models, which is why they can replace the full dataset in estimation.
Builds on: Likelihood Function, Point Estimator · Leads to: Exponential Family, maximum likelihood estimation from summaries
This lesson is about the mathematics of inference. It is not advice on any particular study.
Where it's used
- Quality control. A factory tests 200 parts and records how many fail. If each part fails independently with the same unknown chance, the count of failures is sufficient for that chance. The order in which the failures appeared carries nothing extra about the rate, so the count is all that needs to be stored.
- Web traffic. A server logs how many requests arrive in each minute. If arrivals follow a steady rate, the total number of requests over a window is sufficient for the rate, and the timestamps within the window add no information about it.
- Measurement error. Readings from a sensor with known noise level are summarised by their average. Under the usual Gaussian model the average is sufficient for the true value, so the individual readings can be discarded once the average is computed.
How it works
Take three coin flips, , each 1 for heads and 0 for tails. The chance of heads is an unknown . Each specific sequence has probability , where is the number of heads in it. Ask whether knowing only the count is enough.
-
List the sequences with two heads. They are , and . Each has two heads and one tail, so each has probability . Check: at each has probability , and the three together give , the usual chance of two heads in three flips.
-
Compute the chance of one sequence given the count. The total chance of is . So the chance of, say, given is
Check: the three sequences with two heads each get , which sums to 1.
-
Notice that has cancelled. The conditional chance does not depend on . Once you know there are two heads, the order of the flips tells you nothing about . Check: try . The numerator is and the denominator is , giving again.
-
Repeat for every count. With the only sequence is , so its conditional chance is 1. With each of the three single-head sequences has conditional chance . In every case the answer is free of . Check: for each value of , the conditional probabilities add to 1.
-
Conclude that is sufficient. The count captures everything about . The factorization in the math section gives the same result in one line.
- chance of two heads in three flips
The math
Definition
Let be data from a model with parameter . A statistic is sufficient for if the conditional distribution of given does not depend on .
Read it as: once the value of is fixed (the conditional distribution is then fixed too), the data are spread over their possible values in a way that involves no parameter. Any further information about would have to come from the within-group detail, and there is none.
Step 1 in symbols: the conditional chance
In the walkthrough, , is the count, and the claim is that is free of . Writing , the joint chance is . The chance of is . Dividing,
which has no in it. Here is the number of sequences with heads.
Step 2 in symbols: the factorization criterion
The conditional-distribution definition is awkward to check directly, so the factorization theorem gives a practical test. A statistic is sufficient for if and only if the likelihood can be written as
where depends on the data only through , and does not depend on at all. For the coin, , so and .
Step 3 in symbols: the Gaussian with known variance
Let be independent (Gaussian with variance 1). Expanding the square in the exponent,
The first factor depends on the data only through , so is sufficient. The second and third factors do not involve , so they go into . The sample mean is therefore sufficient for as well.
Maximum likelihood depends only on the summary
Because the likelihood is times a constant in , maximising it over uses alone. This is why maximum likelihood estimates for exponential-family models are functions of the sufficient statistic. The exponential family is the class of models where the factorization is especially clean.
Worked examples
Compare and for three flips. Both have one head, so both have likelihood .
- At , each sequence has likelihood .
- At , each has likelihood .
- The ratio of the two likelihoods is at both values, and in fact at every , because the two expressions are identical.
- So swapping which flip was the head changes nothing about .
Interpretation: the count of heads captures all the information, and the position of the heads is irrelevant to .
Let be independent Poisson counts with rate . The likelihood of a sample is .
- Take the sample . The sum is .
- Multiply the factors: .
- Take a different sample, . Its sum is also 5, and its likelihood is .
- The ratio of the two likelihoods is , the same for every .
- So is sufficient: , and carries the rest.
Interpretation: the two samples differ, but they say the same thing about up to a constant that does not depend on . The total count is what matters.
Three readings of a quantity have known noise variance 1: . These numbers are chosen to show the arithmetic.
- The sum is .
- The sum of squares is .
- The likelihood is proportional to . The first factor uses only . The second factor does not depend on .
- The maximum likelihood estimate is .
Interpretation: the average of the three readings is sufficient for , so the individual readings can be replaced by and the count with no loss for estimating .
Try it: a second sample has the same sum but a different sum of squares, . Does it give a different estimate of , and does the ratio of its likelihood to the first sample's depend on ? Answer: its estimate is also , because the sums match. The ratio of likelihoods is , and this does not depend on , so the two samples agree about .
Common mistakes and tradeoffs
It is tempting to think a sufficient statistic is automatically the best estimator. In fact sufficiency is about keeping information, not about being accurate. An estimator built from a sufficient statistic can still be biased or noisy, and it still has to be judged, for example by its mean squared error.
It is tempting to think the sample mean is always sufficient. In fact it is sufficient for the Gaussian mean with known variance, and for the Poisson rate and Bernoulli chance, but not for every family. For the Cauchy distribution, no summary much shorter than the whole sample keeps all the information about the location.
It is tempting to think a sufficient statistic lets you throw the data away entirely. In fact it is only sufficient for the parameter in the model. Checking whether the model fits, or estimating something outside the model, can need the full data.
When to use it: whenever the model belongs to a family with a clean summary, which makes storage cheap and estimation simple. When not to use it: when the model is not well specified and you need to examine residuals or outliers, which the summary hides. Alternatives: a minimal sufficient statistic is the shortest possible summary, and for families outside the exponential class the order statistics may be the only option.
History
Ronald Fisher introduced the idea of sufficiency in his 1922 work on the foundations of statistics, when he argued that a good estimator should use all the information in the data about the parameter. Jerzy Neyman gave a factorization criterion in 1935, and later work by Paul Halmos and Leonard Savage in 1949 gave the general form used today. The factorization test is useful because it turns a conceptual definition into a calculation.
The idea caught on because it explains why summaries such as averages and counts are so common in applied work. It gives a principled reason to store less and still lose nothing about the parameter, and it is the starting point for the exponential family, where the summary has a fixed form.
Recap
- A sufficient statistic keeps all the information the data contain about a parameter.
- The test is the factorization: the likelihood equals a function of times a function of the data alone.
- The count of successes is sufficient for a Bernoulli chance, the total count for a Poisson rate, and the sum for a Gaussian mean with known variance.
- Sufficiency does not make an estimator accurate, and it does not license discarding data for model checking.
- Read next: Exponential Family, where sufficient statistics take a standard form, and Maximum Likelihood Estimation, which uses them to estimate parameters.
Check yourself
QuestionRecall: what does it mean for a statistic to be sufficient for ?Show answer
It means the conditional distribution of the data given does not depend on . Equivalently, the likelihood can be written as a function of and times a function of the data that does not involve . Knowing leaves nothing further about to be learned from the detail of the data.
QuestionCompute: five [[bernoulli-distribution|Bernoulli]] flips give the sequence . What is the sufficient count , and what is the likelihood at ?Show answer
The count of heads is . The likelihood is . Any other sequence with three heads gives the same value at .
QuestionWhy: why does the Cauchy distribution not admit a short sufficient statistic for its location, when the Gaussian does?Show answer
The Gaussian likelihood depends on the data through the sum and the sum of squares, which are fixed-length summaries whatever the sample size (for Gaussian data, see the Step 3 derivation above). The Cauchy likelihood has a form that does not factor into a function of a short summary times a data-only term, so no such summary keeps all the information. The whole sample, through its order statistics, is needed.
QuestionApplied: a clinic records how many of 40 patients respond to a treatment, with the same unknown response chance for each patient. A colleague wants to keep the full list of responses. What would you tell them?Show answer
Under the assumption of independent patients with the same chance, the number of responders is sufficient for the response chance. The list of which patients responded adds nothing about that chance, so the count is enough for estimation. The full list is still useful for other questions, such as whether patients differ, which the summary would hide.
Sources
- Sufficient statistic (Wikipedia)
- Exponential family (Wikipedia)
- Bishop, Pattern Recognition and Machine Learning, §2.4: https://www.microsoft.com/en-us/research/publication/pattern-recognition-machine-learning/