Skip to content
AI360Xpert
Beta

Sufficient Statistics

A sufficient statistic keeps everything the data says about the parameter and discards the rest. Ten flips compress to one head count with zero loss.

Ten ordered flips carrying 1024 possibilities compress into the head count k equals 6, which holds all information about the bias
Ten ordered flips carrying 1024 possibilities compress into the head count k equals 6, which holds all information about the bias

Why Does This Exist?

Datasets are huge and parameters are few. Storing every flip to estimate one bias pp wastes memory and invites overfitting to noise. Sufficiency says when compression is free: T(X)T(X) is sufficient for theta\\theta if the conditional law of XX given T(X)T(X) no longer depends on theta\\theta.

Then the leftover detail is pure noise for your purpose. The Fisher-Neyman theorem makes it checkable: TT is sufficient exactly when the likelihood splits as g(T(x),theta),h(x)g(T(x), \\theta)\\,h(x). It connects exponential family distributions to maximum likelihood estimation.

The one idea you need first

Likelihood is L(theta;x)=p(xmidtheta)L(\\theta; x) = p(x \\mid \\theta) viewed as a function of theta\\theta. If two datasets give likelihoods proportional in theta\\theta, they say the same thing about theta\\theta. Sufficiency keeps exactly that shape.

Think of It Like This

Election totals versus ballot order

Ten thousand ballots arrive in some order. To estimate vote share you need only the totals, not the sequence: every ordering with 6,000 for A says the same thing about A's support.

The count is sufficient; the order is noise given the count. Where it stops: order matters for fraud detection or time trends. Sufficiency is always for a parameter and a model; change the question and the "noise" becomes signal.

How It Actually Works

Fisher-Neyman: find gg and hh with p(xmidtheta)=g(T(x),theta),h(x)p(x \\mid \\theta) = g(T(x), \\theta)\\,h(x). Only gg mentions theta\\theta, through TT. Minimal sufficient statistics compress furthest without loss; complete ones additionally admit unique unbiased estimation. Rao-Blackwell improves any estimator by conditioning on a sufficient TT: hatthetaRB=mathbbE[hatthetamidT]\\hat\\theta_{RB} = \\mathbb{E}[\\hat\\theta \\mid T] never has larger mean-squared error.

Worked example

Ten i.i.d. Bernoulli(pp) flips with k=6k = 6 heads. Likelihood: p6(1−p)4p^6(1-p)^4, depending on data only through kk. Number of sequences mapping to k=6k = 6 is binom106=210\\binom{10}{6} = 210 out of 210=10242^{10} = 1024, yet all 210 give the same likelihood shape in pp. MLE: hatp=k/n=0.6\\hat p = k/n = 0.6 uses only kk. Given k=6k = 6, every one of the 210 orders is equally likely regardless of pp: the order is ancillary noise.

Code

import math
n, k = 10, 6print(math.comb(n, k))  # -> 210print(round(k / n, 2))  # -> 0.6

210 orders share the count 6, and the estimate 0.6 needs nothing else. The combinatorial factor absorbs the discarded order.

Watch Out For

Calling an estimator sufficient

hatp=0.6\\hat p = 0.6 is a number; sufficiency is a property of a statistic's sigma\\sigma-algebra. An estimator can be a function of a sufficient statistic without being sufficient itself, and conditioning on a bare estimate can lose information the full statistic kept.

Keep the statistic, derive the estimator from it. Compress to TT, then compute hattheta(T)\\hat\\theta(T).

Reusing sufficiency under a new model

Sufficiency is model-relative. The head count is sufficient for pp under i.i.d. Bernoulli, but not under a Markov chain where transition counts matter, nor for detecting a mid-stream change point. New likelihood, new factorization, possibly new TT.

Re-verify Fisher-Neyman after any model change. If the likelihood's data dependence changes shape, so does TT.

The Quick Version

  • T(X)T(X) is sufficient when XmidT(X)X \\mid T(X) forgets theta\\theta; the rest is noise for that question.
  • Fisher-Neyman: likelihood splits into g(T,theta)g(T, \\theta) times h(x)h(x).
  • Ten flips with 6 heads: 210 orders share one likelihood shape; hatp=0.6\\hat p = 0.6 needs only kk.
  • Rao-Blackwell conditions any estimator on TT and never hurts mean-squared error.
  • Sufficiency belongs to a statistic under a model, not to a bare estimate.
  • Change the model and re-derive TT; yesterday's compression may now lose signal.