The Rao-Blackwell Theorem
Suppose two statisticians estimate the same unknown quantity from the same data. Both use unbiased estimators. Is there a systematic way to mechanically improve a merely reasonable unbiased estimator? Crucially, can this be done without seeing more data? This question sounds like it demands new information, but it does not. The raw data itself contains "extra noise" beyond what is needed to estimate the parameter. A sufficient statistic captures exactly the useful part. The Rao–Blackwell theorem shows that averaging an estimator over the data given a sufficient statistic never increases risk. It strictly decreases risk whenever the original estimator was not already a function of that statistic. This idea matters because it converts an abstract structural fact — sufficiency — into a concrete algorithmic improvement. It explains why good estimators in practice tend to be functions of sufficient statistics. It also gives a rigorous meaning to the folklore claim that "sufficient statistics are all you need." The theorem is also a bridge. It is the conceptual first step toward the Cramer-Rao Lower Bound. It also leads toward the theory of minimum-variance unbiased estimation. Finally, it leads toward the Lehmann–Scheffé characterization of best unbiased estimators via completeness. The big picture is a variance-reduction argument dressed up in conditional expectation. Rao–Blackwellization is not merely a theoretical curiosity. It is a working tool in Monte Carlo simulation, in Bayesian computation. It is also used in modern machine learning under the name "Rao–Blackwellized particle filtering." The same inequality — conditioning reduces variance — appears throughout probability. Here, though, it is harnessed specifically against the backdrop of Sufficiency and the Factorization Theorem. This article states the theorem with full hypotheses. It proves the theorem from first principles, using only the tower property. It also uses the conditional-variance decomposition. The article gives two asymmetric worked examples. Finally, it shows exactly which hypothesis is needed. It does this by constructing a case where the theorem fails.
- Rao–Blackwellization replaces an estimator by its conditional expectation given a sufficient statistic .
- The new estimator has the same bias as , because is sufficient and this conditional expectation does not depend on the unknown parameter.
- Mean squared error never increases: for every value of the parameter.
- The inequality is strict unless is already (almost surely) a function of .
- The proof is a direct application of the law of total variance / tower property, not a new inequality.
- Key idea: conditioning a statistic on a sufficient statistic averages away irrelevant randomness without losing information about the parameter, and averaging can only shrink variance.
Where this lives today
The Rao–Blackwell principle recurs across statistics and computation wherever an estimator can be improved "for free" by exploiting distributional structure. In classical parametric inference, it is the standard route to building good unbiased estimators once a sufficient statistic (via the Factorization Theorem) has been identified, and it is the conceptual predecessor to the Lehmann–Scheffé theorem for uniformly minimum variance unbiased estimation. In Monte Carlo statistics, Rao–Blackwellization is an explicit variance-reduction technique: if a Monte Carlo estimator can be written as and has closed form, replacing simulated draws of by the analytically averaged strictly reduces simulation variance for the same computational budget — a direct descendant of the theorem's inequality, now used in Gibbs samplers and importance sampling. In sequential Monte Carlo (particle filtering) for state-space models, "Rao–Blackwellized particle filters" analytically marginalize out a linear-Gaussian sub-state (via a Kalman filter) and use particles only for the nonlinear remainder, dramatically reducing the number of particles needed for a target accuracy — a computational-statistics workhorse in robotics (SLAM — simultaneous localization and mapping) and signal processing. In Bayesian statistics, the same conditioning idea underlies Rao–Blackwellized estimators of posterior functionals, where mixture representations allow closed-form conditional expectations to replace noisy posterior samples. In information theory and estimation theory more broadly, the theorem sits alongside the Cramer-Rao Lower Bound as one of the two central classical tools — one gives an achievable improvement path, the other gives a universal lower bound — for understanding how good an unbiased estimator can possibly be.
:::quiz[If is already a function of the sufficient statistic , what is ?]
- Always strictly smaller in MSE than
- Equal to almost surely, with no improvement ✓
- Undefined, since has no residual randomness
- Equal to exactly
Ask the tutor: Can you show how Rao–Blackwellization combined with a complete sufficient statistic pins down the unique minimum-variance unbiased estimator via Lehmann–Scheffé?
Let have a distribution depending on an unknown parameter , with joint density or mass function . A statistic is sufficient for if the conditional distribution of given does not depend on , for every value in the support of . Equivalently (Fisher–Neyman Factorization), for some functions and not depending on . Let be a real-valued quantity to be estimated (often itself), and let be an estimator of with for all . Given a sufficient statistic , define the Rao–Blackwell estimator
Because is sufficient, the conditional distribution of given is free of , so this conditional expectation is a genuine statistic — a function of the data alone, with no unknown parameter appearing in its formula.
Intuition
Think of the data as containing two ingredients: the part that is informative about , and pure noise that is irrelevant to once you know . Sufficiency is precisely the statement that, conditional on , the remaining randomness in carries no further information about — its distribution is the same no matter what truly is. Now imagine you have an unbiased estimator that uses the whole dataset, but perhaps clumsily — it might use only , say, ignoring entirely. If you replace by its average over all the data configurations compatible with the observed value of , you are averaging out exactly the "irrelevant noise" component, because that component's distribution does not depend on . Averaging cannot change what you are estimating (bias is preserved), but averaging over a family of numbers always produces something with variance at most the variance of a randomly chosen member of the family — this is nothing but Jensen's inequality applied to conditional expectation, or equivalently the law of total variance. The picture below shows a single unbiased but noisy estimator's sampling distribution (wide, gray) alongside the conditional-mean estimator's sampling distribution (narrow, colored), both centered at the true value .
Central theorem
Let have distribution , , and let be a sufficient statistic for . Let be an estimator of satisfying for every . Define
Then: 1. ( is a statistic.) is a well-defined function of alone (does not depend on ). 2. (Same bias.) for every . In particular if is unbiased for , so is . 3. (No worse MSE, at every .)
4. (Strictness.) The inequality in (3) is an equality at a given if and only if almost surely under . Consequently, if for some , then strictly at that .
We use only sufficiency (Definition above), the tower property of conditional expectation, and the elementary identity for conditional variance. No result depending on the theorem itself is used.
Step 1: is a statistic. By definition, is sufficient means the conditional law of given is a fixed distribution not depending on . Hence
is computed using only , a -free object, together with the fixed function . So is a genuine function of alone; no unknown parameter enters its formula, and is a bona fide estimator (statistic). This is the entire reason sufficiency is required: without it, would depend on and could not be computed from data, hence would not define a valid estimator. We must also check integrability so that all subsequent expectations exist. By the conditional Jensen inequality (applied to the convex function ),
and taking of both sides and using the tower property,
by hypothesis. So has finite second moment under every , and all expectations below are finite.
Step 2: Same bias. By the tower property of conditional expectation (valid since , which follows from by Cauchy–Schwarz),
This holds for every (the tower property is a statement about a single fixed probability measure , and we apply it separately at each ; sufficiency was already used in Step 1 to know that itself is -free — the tower property here does not need sufficiency, only that is computed under the law , which gives the same numerical function because of Step 1). Hence if for all , then for all : is unbiased whenever is.
Step 3: The MSE inequality, via the conditional variance decomposition. Fix and write , a constant (not random). Decompose
Square and take :
We claim the cross term vanishes. Condition on using the tower property:
Given , the factor is a (measurable) function of , hence is known given and pulls out of the inner conditional expectation:
But by definition, and since is already -measurable. So
and therefore the entire cross term is . We are left with
Rewriting,
since the right side is an expectation of a nonnegative random variable. This proves for every , establishing part 3. (Note: this decomposition is exactly the law of total variance applied to the "prediction error" , using as the conditional-mean predictor; it requires no sufficiency at all — sufficiency was needed only to make a legitimate, -free statistic.)
Step 4: Strictness. From Step 3,
The right-hand side is the expectation of a nonnegative random variable . A standard fact in measure theory states if and only if almost surely under (since , if then for a suitable small , by Markov's inequality applied to the event , contradicting ). Hence
Equivalently, if , then strictly, so strictly at that . This completes the proof.
∎Worked examples
Example 1: Bernoulli trials, a deliberately wasteful estimator. Let be i.i.d. , , and suppose we want to estimate . By the Factorization Theorem, since the joint pmf is
the statistic is sufficient for (the factorization holds with and ). This matches Sufficiency and the Factorization Theorem. Take the deliberately crude, wasteful estimator — using only the first observation. It is unbiased: . Its MSE is
Now compute the Rao–Blackwell estimator where . By exchangeability of (they are i.i.d.), conditional on each of the arrangements of ones among slots is equally likely, so
(Formally: , and by symmetry each is the same function of , so each equals .) Thus , the sample mean — the familiar MLE/moment estimator. Its MSE is
Indeed for all , with strict inequality whenever — exactly as guaranteed, since for , with positive probability under (e.g. if ). This is a clean numerical illustration: for , , while , a fourfold reduction, matching .
Example 2: Poisson data, estimating a nonlinear functional . Let be i.i.d. , . We want to estimate — a genuinely nonlinear function of , chosen to show the theorem's reach beyond estimating itself. The joint pmf is , which factors as a function of times a -free term; hence is sufficient. A simple, crude, unbiased estimator of is
since . Its MSE (it's an indicator, so variance is ):
Rao–Blackwellize: . Given , the conditional distribution of given their sum is is multinomial: each unit of "count" is independently assigned to one of the observations with equal probability (a standard fact for independent Poisson variables conditioned on their sum). Hence, conditionally, , so
Therefore the Rao–Blackwell estimator is
This is exactly the uniformly minimum variance unbiased estimator (UMVUE) of for the Poisson family — a fact usually derived via Lehmann–Scheffé, but here we obtain a genuinely improved unbiased estimator directly from Rao–Blackwellizing the crude indicator, with no need for completeness to see the improvement (only to see that it cannot be improved further).
Numerical check, (so ):
- .
- . Since , the probability generating function gives ; at : — confirming unbiasedness exactly, as the theorem guarantees.
- To see the variance shrink numerically: , so .
So : roughly a thirteen-fold variance reduction, illustrating that Rao–Blackwellization can produce dramatic gains, not just marginal ones, especially when the naive estimator is very wasteful (using one data point out of five).
The theorem's proof of Step 1 — that is a genuine, -free statistic — used sufficiency essentially. If is not sufficient, then genuinely depends on , and "conditioning on " no longer produces a computable estimator at all: it produces a different function of for each , which is not a legitimate estimator since is unknown. Concretely: let be i.i.d. . The full sufficient statistic for is (or equivalently ). Instead, take the insufficient statistic — the difference. Note regardless of : it carries zero information about , so it is about as far from sufficient as a statistic can be while still being a nontrivial function of the data. Let , an unbiased estimator of with for all . Attempt to "Rao–Blackwellize" using :
Since are jointly Gaussian with , and (standard fact: sum and difference of i.i.d. Gaussians are independent), we get
This depends explicitly on the unknown — it is not a statistic at all, since we cannot compute it without knowing . The entire construction collapses: there is no well-defined "" to compare in MSE, because it isn't an estimator. This is exactly what sufficiency was designed to prevent (Step 1 of the proof): only when the conditional law of given is free of does conditioning produce a legitimate, computable, improved estimator. Dropping sufficiency does not merely weaken the conclusion — it destroys the construction's meaning entirely.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| sufficient, already a function of | a.s.; no improvement (theorem's equality case) |
| sufficient, not a function of | Strict MSE improvement at every where with positive probability |
| not sufficient | depends on ; not a statistic; theorem inapplicable |
| biased | has exactly the same bias function as ; MSE inequality still holds (proof never assumed unbiasedness) |
| for some | Tower property / conditional Jensen step breaks down; need to restrict attention to those or verify integrability first |
| minimal sufficient vs. merely sufficient | Theorem holds for any sufficient ; using a non-minimal sufficient statistic still yields improvement, but typically less than using the minimal one |
The mathematician behind it
Origins · 1 minCalyampudi Radhakrishna Rao and how this was discovered
C. R. Rao proved the estimator-improvement inequality in 1945, in the same landmark paper that introduced the Cramér–Rao inequality, while working at the Indian Statistical Institute under P. C. Mahalanobis. David Blackwell independently proved essentially the same variance-reduction fact in 1947 in the context of sequential analysis and decision theory, unaware of Rao's earlier work; the combined result is now universally known by both names. Rao went on to found much of modern estimation theory — Cramér–Rao bounds, Rao distances, orthogonal arrays — and remained mathematically active into his nineties, receiving the U.S. National Medal of Science in 2002.
Does Rao–Blackwellization always require the original estimator to be unbiased?
No. The proof never uses unbiasedness of ; it only uses finiteness of the second moment. The theorem shows that has exactly the same bias function as (Step 2 of the proof), and its MSE is never larger, for every , whether or not is unbiased. Unbiasedness is usually assumed in textbook statements because the classical goal is to find the best unbiased estimator, and Rao–Blackwellizing an unbiased estimator keeps you within the unbiased class while improving MSE (which then coincides with variance). But the inequality itself is a general MSE-reduction fact, valid for biased estimators too.
Can Rao–Blackwellization make a bad estimator perfect?
No — it can only improve MSE relative to the starting estimator, not achieve some absolute optimum. If is a poor estimator, will typically still be an improvement, but there is no guarantee it approaches the best possible unbiased estimator unless is complete, in which case Lehmann–Scheffé shows is the unique minimum-variance unbiased estimator regardless of which unbiased you started from. Without completeness, different starting estimators can Rao–Blackwellize to different final answers, and none is guaranteed globally optimal.
What if the sufficient statistic is not "minimal" — does the theorem still work?
Yes. The theorem holds for any sufficient statistic, minimal or not, because the entire proof only uses that the conditional law of given is free of . Using a non-minimal sufficient statistic (e.g. the whole data vector itself is trivially sufficient) is degenerate: conditioning on all of gives back itself, no improvement. In general, conditioning on a coarser sufficient statistic (closer to minimal) tends to produce a bigger variance reduction, because there is more "irrelevant noise" left to average out, though this is not something the basic theorem itself quantifies — it is a heuristic borne out by the tower-property structure of nested conditioning.
Is Rao–Blackwellization the same as taking the posterior mean in Bayesian statistics?
They are related but not identical. Rao–Blackwellization conditions on a sufficient statistic under the sampling distribution , holding fixed, and the resulting estimator has no unknown parameters in its formula because sufficiency makes parameter-free. The Bayesian posterior mean instead conditions on the observed data given a prior on , and averages over itself. Both are instances of "conditioning to reduce variance / achieve optimality," and in fact the posterior mean also solves a minimum-MSE problem (as the Bayes estimator under squared-error loss), but the underlying conditioning structures — conditioning on a statistic of the data vs. conditioning to integrate out the parameter — are distinct constructions.
Why is the cross term in the proof exactly zero, intuitively?
Because is precisely the "best -measurable predictor" of in mean-square, the residual is, in a precise sense, "orthogonal" to any function of — this is the orthogonal projection property of conditional expectation in the Hilbert space . Concretely, says the residual has conditional mean zero given , so multiplying by any -measurable quantity and taking expectation still gives zero, by the tower property. This is the same geometric fact that underlies least-squares regression: residuals are uncorrelated with (indeed, conditionally mean-zero given) the predictors used to form the fit.
Does Rao–Blackwellization work for vector-valued or multivariate parameters ?
Yes, componentwise. Apply the theorem to each coordinate and each corresponding component separately; each component's MSE is improved (or unchanged) by the same argument. For a vector estimator one often tracks the covariance matrix rather than scalar MSE, and Rao–Blackwellization reduces the covariance matrix in the Loewner (positive semi-definite) order: is positive semi-definite, which follows from applying the scalar theorem to every linear combination , .
How does Rao–Blackwell foreshadow the Cramér–Rao bound?
Both results address "how good can an unbiased estimator be," but from opposite directions. Rao–Blackwell gives a constructive improvement: starting from any unbiased estimator, it manufactures one that is at least as good, using only the structure of sufficiency. The Cramer-Rao Lower Bound instead gives a universal floor: no unbiased estimator, however cleverly constructed, can have variance below , the reciprocal Fisher information. Used together, they bracket the problem: Rao–Blackwellization pushes candidate estimators toward the good end, while the Cramér–Rao bound tells you when you cannot push any further, and (in regular exponential families) both bounds are often attained by the same complete sufficient statistic.