Algorithm Search⌘K

Theoremcore

Rao-Blackwell theorem

Also called Rao-Blackwellization.

Conditioning an estimator on a sufficient statistic never increases its mean squared error, and strictly lowers it unless the estimator is already a function of that statistic.

The Rao-Blackwell theorem says that if δ(X)\delta(X) is an estimator and TT is a sufficient statistic, then the conditional expectation η(T)=E[δ(X)∣T]\eta(T) = \mathbb{E}[\delta(X) \mid T] is an estimator that is at least as good as δ\delta under every convex loss, and in particular has no larger mean squared error at any parameter value. The bias does not change, so an unbiased estimator stays unbiased and its variance can only go down. The step from δ\delta to η\eta is called Rao-Blackwellization. Rao (1945) and Blackwell (1947) proved it independently.

Statement

Let XX have distribution PθP_\theta, θ∈Θ\theta \in \Theta, let T=t(X)T = t(X) be sufficient for θ\theta, and let δ(X)\delta(X) be an estimator of ψ(θ)\psi(\theta) with Eθ∣δ(X)∣<∞\mathbb{E}_\theta \lvert \delta(X) \rvert < \infty for all θ\theta. Define

η(T)=E[δ(X)∣T].\eta(T) = \mathbb{E}[\delta(X) \mid T].

Theorem.

  1. η(T)\eta(T) is a statistic: it does not depend on θ\theta.
  2. Eθ η(T)=Eθ δ(X)\mathbb{E}_\theta\, \eta(T) = \mathbb{E}_\theta\, \delta(X) for every θ\theta, so η\eta and δ\delta have the same bias.
  3. Squared error. If Eθ δ(X)2<∞\mathbb{E}_\theta\, \delta(X)^2 < \infty, then for every θ\theta
Eθ(δ−ψ(θ))2=Eθ(η−ψ(θ))2+Eθ(δ−η)2 ≥ Eθ(η−ψ(θ))2,\mathbb{E}_\theta(\delta - \psi(\theta))^2 = \mathbb{E}_\theta(\eta - \psi(\theta))^2 + \mathbb{E}_\theta(\delta - \eta)^2 \ \ge\ \mathbb{E}_\theta(\eta - \psi(\theta))^2,

with equality at θ\theta if and only if δ(X)=η(T)\delta(X) = \eta(T) with PθP_\theta-probability 1. 4. Convex loss. Let L(θ,d)L(\theta, d) be a loss that is convex in dd for each θ\theta. Then R(θ,η)≤R(θ,δ)R(\theta, \eta) \le R(\theta, \delta) for every θ\theta, where R(θ,δ)=EθL(θ,δ(X))R(\theta, \delta) = \mathbb{E}_\theta L(\theta, \delta(X)). If LL is strictly convex in dd and R(θ,δ)<∞R(\theta, \delta) < \infty, the inequality is strict unless δ(X)=η(T)\delta(X) = \eta(T) with PθP_\theta-probability 1.

In plain words

Suppose you have some rough estimate, and a summary of the data that holds all the information about the unknown quantity. Replace your estimate by its average over all the data sets that have the same summary. Because the summary holds all the information, you can compute this average without knowing the unknown quantity. The new estimate is on average just as close to the target as the old one, and closer unless the old one already depended only on the summary. The averaging removes noise that carried no information. It does not change the systematic error.

Proof

Step 1: η\eta is a statistic. By sufficiency, the conditional distribution of XX given TT does not depend on θ\theta, so neither does the conditional expectation of δ(X)\delta(X) given TT. (Without sufficiency, η\eta would depend on the unknown θ\theta and could not be computed.)

Step 2: the mean. By the tower property of conditional expectation, Eθ η(T)=Eθ E[δ(X)∣T]=Eθ δ(X)\mathbb{E}_\theta\, \eta(T) = \mathbb{E}_\theta\, \mathbb{E}[\delta(X) \mid T] = \mathbb{E}_\theta\, \delta(X).

Step 3: squared error. Write δ−ψ=(η−ψ)+(δ−η)\delta - \psi = (\eta - \psi) + (\delta - \eta) and expand the square. The cross term is

Eθ[(η−ψ)(δ−η)]=Eθ[(η(T)−ψ) E[δ−η(T)∣T]]=0,\mathbb{E}_\theta[(\eta - \psi)(\delta - \eta)] = \mathbb{E}_\theta\big[(\eta(T) - \psi)\, \mathbb{E}[\delta - \eta(T) \mid T]\big] = 0,

because η(T)−ψ\eta(T) - \psi is a function of TT and E[δ∣T]=η(T)\mathbb{E}[\delta \mid T] = \eta(T). This gives the identity in part 3. The term Eθ(δ−η)2=EθVar⁡(δ∣T)\mathbb{E}_\theta(\delta - \eta)^2 = \mathbb{E}_\theta \operatorname{Var}(\delta \mid T) is zero exactly when δ=η(T)\delta = \eta(T) with probability 1. When δ\delta is unbiased, the identity reads Var⁡θ(δ)=Var⁡θ(η)+EθVar⁡(δ∣T)\operatorname{Var}_\theta(\delta) = \operatorname{Var}_\theta(\eta) + \mathbb{E}_\theta \operatorname{Var}(\delta \mid T), the law of total variance.

Step 4: convex loss. By the conditional form of Jensen's inequality, for each θ\theta,

L(θ,η(T))=L(θ,E[δ(X)∣T])≤E[L(θ,δ(X))∣T]L(\theta, \eta(T)) = L\big(\theta, \mathbb{E}[\delta(X) \mid T]\big) \le \mathbb{E}\big[L(\theta, \delta(X)) \mid T\big]

with probability 1. Taking Eθ\mathbb{E}_\theta of both sides gives R(θ,η)≤R(θ,δ)R(\theta, \eta) \le R(\theta, \delta). If L(θ,⋅)L(\theta, \cdot) is strictly convex, conditional Jensen is an equality only where the conditional distribution of δ(X)\delta(X) given TT is a point mass, that is, where δ(X)=η(T)\delta(X) = \eta(T); if this fails on a set of positive probability, and R(θ,δ)<∞R(\theta, \delta) < \infty, the expected inequality is strict. ■\blacksquare

Consequences

A recipe for good unbiased estimators. Start from any unbiased estimator, however crude, and condition on a sufficient statistic. The result is unbiased with no larger variance. If the sufficient statistic is also complete, the result does not depend on the starting point, and it is the minimum variance unbiased estimator; this is the Lehmann-Scheffé theorem.

Example: the Bernoulli variance, exact. Let X1,…,XnX_1, \ldots, X_n be iid Bernoulli(p)(p) and ψ(p)=p(1−p)\psi(p) = p(1-p). The estimator δ=X1(1−X2)\delta = X_1(1 - X_2) is unbiased, since Ep δ=p(1−p)\mathbb{E}_p\, \delta = p(1-p). Given T=∑iXi=tT = \sum_i X_i = t, the sample is a uniformly random 0-1 sequence with tt ones, so

η(T)=P(X1=1,X2=0∣T)=T(n−T)n(n−1).\eta(T) = P(X_1 = 1, X_2 = 0 \mid T) = \frac{T(n - T)}{n(n-1)}.

For n=3n = 3 the values of η\eta at t=0,1,2,3t = 0, 1, 2, 3 are 0,1/3,1/3,00, 1/3, 1/3, 0. An exact sum over all 8 outcomes gives:

pp ψ(p)\psi(p) Var⁡p(δ)\operatorname{Var}_p(\delta) Var⁡p(η)\operatorname{Var}_p(\eta)
1/31/3 2/92/9 14/8114/81 2/812/81
1/21/2 1/41/4 3/163/16 1/481/48

Both estimators have mean ψ(p)\psi(p). Conditioning cuts the variance by a factor of 7 at p=1/3p = 1/3 and of 9 at p=1/2p = 1/2.

Example: a Poisson probability. Let X1,…,XnX_1, \ldots, X_n be iid Poisson(λ)(\lambda) and ψ(λ)=Pλ(X1=0)=e−λ\psi(\lambda) = P_\lambda(X_1 = 0) = e^{-\lambda}. The indicator δ=1{X1=0}\delta = \mathbf{1}\{X_1 = 0\} is unbiased. Given T=∑iXi=tT = \sum_i X_i = t, X1X_1 is Binomial(t,1/n)(t, 1/n), so

η(T)=(1−1n)T,Var⁡λ(η)=e−2λ(eλ/n−1).\eta(T) = \Big(1 - \frac{1}{n}\Big)^{T}, \qquad \operatorname{Var}_\lambda(\eta) = e^{-2\lambda}(e^{\lambda/n} - 1).

At n=5n = 5 and λ=1\lambda = 1, Var⁡(δ)=e−1(1−e−1)≈0.2325\operatorname{Var}(\delta) = e^{-1}(1 - e^{-1}) \approx 0.2325 and Var⁡(η)≈0.0300\operatorname{Var}(\eta) \approx 0.0300.

Monte Carlo. The same identity reduces variance in simulation. If a Monte Carlo estimate averages h(Y)h(Y) and E[h(Y)∣Z]\mathbb{E}[h(Y) \mid Z] has a closed form, then averaging E[h(Y)∣Z]\mathbb{E}[h(Y) \mid Z] instead has no larger variance. Here the model is known, so no sufficiency is needed: the conditional expectation is computable anyway. This is used in Gibbs sampling, Monte Carlo integration and the Rao-Blackwellized particle filter.

Tightness

Convexity of the loss is needed. Let X1,X2X_1, X_2 be iid Bernoulli(p)(p), δ=X1\delta = X_1, T=X1+X2T = X_1 + X_2 and η=T/2\eta = T/2. Take the loss L(p,d)=1{∣d−p∣>0.3}L(p, d) = \mathbf{1}\{\lvert d - p \rvert > 0.3\}, which is not convex in dd. At p=0.1p = 0.1, δ\delta has risk P(X1=1)=1/10P(X_1 = 1) = 1/10, but η\eta is 0.50.5 or 11 whenever T≥1T \ge 1, so its risk is P(T≥1)=19/100P(T \ge 1) = 19/100. Rao-Blackwellization made the estimator worse.

Sufficiency is needed. If TT is not sufficient, E[δ∣T]\mathbb{E}[\delta \mid T] can depend on θ\theta. With X1,X2X_1, X_2 iid Bernoulli(p)(p) and T=X2T = X_2, E[X1∣X2]=p\mathbb{E}[X_1 \mid X_2] = p, which is not an estimator.

The improvement can be zero. If δ\delta is already a function of TT, then η=δ\eta = \delta. Conditioning twice on the same TT gives nothing more.

The result need not be admissible. Rao-Blackwellization gives an improvement, not an optimum. Under squared error, S2S^2 (divisor n−1n - 1) is the conditioned version of many unbiased estimators of σ2\sigma^2 in the normal model, and yet ∑i(Xi−Xˉ)2/(n+1)\sum_i (X_i - \bar X)^2 / (n + 1) has smaller mean squared error for every (μ,σ2)(\mu, \sigma^2): σ4/3\sigma^4/3 against σ4/2\sigma^4/2 at n=5n = 5. See admissible estimator.

History

Rao (1945), in the same paper that gave the Cramér-Rao bound, showed that conditioning an unbiased estimator on a sufficient statistic does not increase its variance. Blackwell (1947) proved the result independently, with conditional expectation as the main tool, and extended it to sequential sampling. Lehmann and Scheffé (1950) combined it with completeness to obtain unique minimum variance unbiased estimators. The extension to convex loss is standard; Lehmann and Casella, Section 1.7, give it.

References

  1. George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 7.3.3, Theorem 7.3.17 (Rao-Blackwell)
  2. E. L. Lehmann and George Casella, Theory of Point Estimation, second edition, Springer, 1998, Chapter 1, Section 1.7 (convex loss functions and the Rao-Blackwell theorem)
  3. Rao 1945, the improvement of an unbiased estimator by conditioning on a sufficient statistic
  4. David Blackwell, Conditional expectation and unbiased sequential estimation, Annals of Mathematical Statistics 18(1) (1947), pages 105 to 110, the conditional expectation given a sufficient statistic, with the sequential case

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/VFVYTG/text.yaml