Preply — Study more efficiently by working with a personal tutor. Get 50% off.Affiliate

Wikipedia

Rao–Blackwell theorem

In statistics, the Rao–Blackwell theorem, sometimes referred to as the Rao–Blackwell–Kolmogorov theorem, is a result that characterizes the transformation of an arbitrarily crude estimator into an estimator that is optimal by the mean-squared-error criterion or any of a variety of similar criteria. The Rao–Blackwell theorem states that if δ ( X ) {\displaystyle \delta (X)} is any kind of estimator of a parameter θ {\displaystyle \theta } , then the conditional expectation of δ ( X ) {\displaystyle \delta (X)} given T ( X ) {\displaystyle T(X)} , where T {\displaystyle T} is a sufficient statistic, is typically a better estimator of θ {\displaystyle \theta } , and is never worse. Sometimes one can very easily construct a very crude estimator δ ( X ) {\displaystyle \delta (X)} , and then evaluate that conditional expected value to get an estimator that is in various senses optimal. The theorem is named after C.R. Rao and David Blackwell. The process of transforming an estimator using the Rao–Blackwell theorem can be referred to as Rao–Blackwellization. The transformed estimator is called the Rao–Blackwell estimator.

Definitions An estimator δ ( X ) {\displaystyle \delta (X)} is an observable random variable (i.e. a statistic) used for estimating some unobservable quantity. For example, one may be unable to observe the average height of all male students at some university, but one may observe the heights of a random sample of 40 of them. The average height of those 40—the "sample average"—may be used as an estimator of the unobservable "population average". A sufficient statistic T ( X ) {\displaystyle T(X)} is a statistic calculated from data X {\displaystyle X} to estimate some parameter θ {\displaystyle \theta } for which no other statistic which can be calculated from data X provides any additional information about θ {\displaystyle \theta } . It is defined as an observable random variable such that the conditional probability distribution of all observable data X {\displaystyle X} given T ( X ) {\displaystyle T(X)} does not depend on the unobservable parameter θ {\displaystyle \theta } , such as the mean or standard deviation of the whole population from which the data X {\displaystyle X} was taken. In the most frequently cited examples, the "unobservable" quantities are parameters that parametrize a known family of probability distributions according to which the data are distributed. In other words, a sufficient statistic T ( X ) {\displaystyle T(X)} for a parameter θ {\displaystyle \theta } is a statistic such that the conditional probability of the data X {\displaystyle X} , given T ( X ) {\displaystyle T(X)} , does not depend on the parameter θ {\displaystyle \theta } . A Rao–Blackwell estimator δ 1 ( X ) {\displaystyle \delta _{1}(X)} of an unobservable quantity θ {\displaystyle \theta } is the conditional expected value

E ⁡ [ δ ( X ) ∣ T ( X ) ] {\displaystyle \operatorname {E} \left[\delta (X)\mid T(X)\right]} of some estimator δ ( X ) {\displaystyle \delta (X)} given a sufficient statistic T ( X ) {\displaystyle T(X)} . Call δ ( X ) {\displaystyle \delta (X)} the "original estimator" and δ 1 ( X ) {\displaystyle \delta _{1}(X)} the "improved estimator". It is important that the improved estimator be observable, i.e. that it does not depend on θ {\displaystyle \theta } . Generally, the conditional expected value of one function of these data given another function of these data does depend on θ {\displaystyle \theta } , but the very definition of sufficiency given above entails that this one does not.

The mean squared error of an estimator is the expected value of the square of its deviation from the unobservable quantity being estimated of θ {\displaystyle \theta } .

The theorem

Mean-squared-error version One case of Rao–Blackwell theorem states:

The mean squared error of the Rao–Blackwell estimator does not exceed that of the original estimator. In other words,

E ⁡ [ ( δ 1 ( X ) − θ ) 2 ] ≤ E ⁡ [ ( δ ( X ) − θ ) 2 ] . {\displaystyle \operatorname {E} \left[(\delta _{1}(X)-\theta )^{2}\right]\leq \operatorname {E} \left[(\delta (X)-\theta )^{2}\right].}

The essential tools of the proof besides the definition above are the law of total expectation and the fact that for any random variable Y {\displaystyle Y} , E ⁡ [ Y 2 ] {\displaystyle \operatorname {E} \left[Y^{2}\right]} cannot be less than ( E ⁡ [ Y ] ) 2 {\displaystyle \left(\operatorname {E} [Y]\right)^{2}} . That inequality is a case of Jensen's inequality, although it may also be shown to follow instantly from the frequently mentioned fact that

0 ≤ Var ⁡ [ Y ] = E ⁡ [ ( Y − E ⁡ [ Y ] ) 2 ] = E ⁡ [ Y 2 ] − ( E ⁡ [ Y ] ) 2 . {\displaystyle 0\leq \operatorname {Var} [Y]=\operatorname {E} \left[(Y-\operatorname {E} [Y])^{2}\right]=\operatorname {E} \left[Y^{2}\right]-\left(\operatorname {E} [Y]\right)^{2}.}

More precisely, the mean square error of the Rao-Blackwell estimator has the following decomposition

E ⁡ [ ( δ 1 ( X ) − θ ) 2 ] = E ⁡ [ ( δ ( X ) − θ ) 2 ] − E ⁡ [ Var ⁡ [ δ ( X ) ∣ T ( X ) ] ] {\displaystyle \operatorname {E} [(\delta _{1}(X)-\theta )^{2}]=\operatorname {E} [(\delta (X)-\theta )^{2}]-\operatorname {E} \left[\operatorname {Var} [\delta (X)\mid T(X)]\right]}

Since E ⁡ [ Var ⁡ [ δ ( X ) ∣ T ( X ) ] ] ≥ 0 {\displaystyle \operatorname {E} \left[\operatorname {Var} [\delta (X)\mid T(X)]\right]\geq 0} , the Rao-Blackwell theorem immediately follows.

Convex loss generalization The more general version of the Rao–Blackwell theorem speaks of the "expected loss" or risk function:

E ⁡ [ L ( δ 1 ( X ) ) ] ≤ E ⁡ [ L ( δ ( X ) ) ] {\displaystyle \operatorname {E} [L(\delta _{1}(X))]\leq \operatorname {E} [L(\delta (X))]}

where the "loss function" L {\displaystyle L} may be any convex function. If the loss function is twice-differentiable, as in the case for mean-squared-error, then we have the sharper inequality

E ⁡ [ L ( δ ( X ) ) ] − E ⁡ [ L ( δ 1 ( X ) ) ] ≥ 1 2 E T ⁡ [ inf x L ″ ( x ) Var ⁡ [ δ ( X ) ∣ T ] ] . {\displaystyle \operatorname {E} [L(\delta (X))]-\operatorname {E} [L(\delta _{1}(X))]\geq {\frac {1}{2}}\operatorname {E} _{T}\left[\inf _{x}L''(x)\operatorname {Var} [\delta (X)\mid T]\right].}

Properties The improved estimator is unbiased if and only if the original estimator is unbiased, as may be seen at once by using the law of total expectation. The theorem holds regardless of whether biased or unbiased estimators are used. The theorem seems very weak: it says only that the Rao–Blackwell estimator is no worse than the original estimator. In practice, however, the improvement is often enormous.

Examples

A Poisson-distribution example Phone calls arrive at a switchboard according to a Poisson process at an average rate of λ per minute. This rate is not observable, but the numbers X 1 , … , X n {\displaystyle X_{1},\ldots ,X_{n}} of phone calls that arrived during n successive one-minute periods are observed. It is desired to estimate the probability e−λ that the next one-minute period passes with no phone calls. An extremely crude estimator of the desired probability is

δ 0 = { 1 if X 1 = 0 , 0 otherwise, {\displaystyle \delta _{0}=\left\{{\begin{matrix}1&{\text{if}}\ X_{1}=0,\\0&{\text{otherwise,}}\end{matrix}}\right.}

i.e., it estimates this probability to be 1 if no phone calls arrived in the first minute and zero otherwise. Despite the apparent limitations of this estimator, the result given by its Rao–Blackwellization is a very good estimator. The sum

S n = ∑ i = 1 n X i = X 1 + ⋯ + X n {\displaystyle S_{n}=\sum _{i=1}^{n}X_{i}=X_{1}+\cdots +X_{n}}

can be readily shown to be a sufficient statistic for λ, i.e., the conditional distribution of the data X 1 , … , X n {\displaystyle X_{1},\ldots ,X_{n}} , depends on λ only through this sum. Therefore, we find the Rao–Blackwell estimator

δ 1 = E ⁡ [ δ 0 ∣ S n = s n ] . {\displaystyle \delta _{1}=\operatorname {E} \left[\delta _{0}\mid S_{n}=s_{n}\right].}

After doing some algebra we have

δ 1 = E ⁡ [ 1 { X 1 = 0 } | ∑ i = 1 n X i = s n ] = P [ X 1 = 0 | ∑ i = 1 n X i = s n ] = P [ X 1 = 0 , ∑ i = 2 n X i = s n ] × P [ ∑ i = 1 n X i = s n ] − 1 = e − λ ( ( n − 1 ) λ ) s n e − ( n − 1 ) λ s n ! × ( ( n λ ) s n e − n λ s n ! ) − 1 = ( ( n − 1 ) λ ) s n e − n λ s n ! × s n ! ( n λ ) s n e − n λ = ( 1 − 1 n ) s n {\displaystyle {\begin{aligned}\delta _{1}&=\operatorname {E} \left[\mathbf {1} _{\{X_{1}=0\}}{\Bigg |}\sum _{i=1}^{n}X_{i}=s_{n}\right]\\&=P\left[X_{1}=0{\Bigg |}\sum _{i=1}^{n}X_{i}=s_{n}\right]\\&=P\left[X_{1}=0,\sum _{i=2}^{n}X_{i}=s_{n}\right]\times P\left[\sum _{i=1}^{n}X_{i}=s_{n}\right]^{-1}\\&=e^{-\lambda }{\frac {\left((n-1)\lambda \right)^{s_{n}}e^{-(n-1)\lambda }}{s_{n}!}}\times \left({\frac {(n\lambda )^{s_{n}}e^{-n\lambda }}{s_{n}!}}\right)^{-1}\\&={\frac {\left((n-1)\lambda \right)^{s_{n}}e^{-n\lambda }}{s_{n}!}}\times {\frac {s_{n}!}{(n\lambda )^{s_{n}}e^{-n\lambda }}}\\&=\left(1-{\frac {1}{n}}\right)^{s_{n}}\end{aligned}}}

Since the expected total number of calls arriving during the first n minutes is nλ, one might not be surprised if this estimator has a fairly high probability (if n is big, by WLLN, the sample average converges in probability to the parameter λ) of being close to

( 1 − 1 n ) n λ ≈ e − λ . {\displaystyle \left(1-{1 \over n}\right)^{n\lambda }\approx e^{-\lambda }.}

So δ 1 {\displaystyle \delta _{1}} is clearly a very much improved estimator of that last quantity. In fact, since S n {\displaystyle S_{n}} is complete and δ 0 {\displaystyle \delta _{0}} is unbiased, δ 1 {\displaystyle \delta _{1}} is the unique minimum variance unbiased estimator by the Lehmann–Scheffé theorem.

A uniform-distribution example Suppose n independent positive samples are taken from a uniform distribution with an unknown upper bound

θ {\displaystyle \theta } , that is, X 1 , … , X n ∼ U ( 0 , θ ) i.i.d. , {\displaystyle X_{1},\ldots ,X_{n}\sim U(0,\theta ){\text{ i.i.d.}},}

and the aim is to estimate this parameter θ {\displaystyle \theta } . This is a continuous (and thus simpler) version of the German tank problem. In this setting, the maximal value statistic

M ≜ T ( X ) ≜ max i X i {\displaystyle M\triangleq T(X)\triangleq \max \nolimits _{i}X_{i}}

is sufficient, as given M {\displaystyle M} , one (random) sample would equal it, and the others would be uniformly and independently distributed between 0 and M {\displaystyle M} ; this statistic is also complete. There are two natural estimators for the upper bound θ {\displaystyle \theta } , which improve as n grows. The first is twice the sample mean. This is unbiased (as E ⁡ [ X i ] = θ / 2 {\displaystyle \operatorname {E} [X_{i}]=\theta /2} for each i {\displaystyle i} ), but is not necessarily consistent - it may even be lower than the observed maximum M {\displaystyle M} , and then clearly also lower than θ {\displaystyle \theta } . Thus it cannot be optimal (i.e., of lowest variance). The second natural estimator is M {\displaystyle M} itself, but it is obviously too low and thus biased; intuitively, it should be "inflated". The factor by which it may be inflated in order to become unbiased can be found using the beta distribution of the uniform order statistics, but just doing that is unmotivated and has no further guarantees. We can then apply the Rao-Blackwell procedure using the first of the suggestions above as the crude estimator. Actually, as the procedure is linear, we can even just use δ ( X ) ≜ 2 X 1 {\displaystyle \delta (X)\triangleq 2X_{1}} - it would be a bad estimator by itself (not using the whole information, its error does not improve with n), but that is perfectly fine for Rao-Blackwellization. Moving from the mean of the samples to just picking one of them keeps the logic the same, only casting it in the language of probabilities rather than expectations. So, what is the conditional expectation of X 1 {\displaystyle X_{1}} given M {\displaystyle M} ? It has a probability of 1/n to be the maximal observed value M {\displaystyle M} itself, otherwise it is uniformly distributed in [ 0 , M ] {\displaystyle [0,M]} and thus has an expectation of M / 2 {\displaystyle M/2} . Hence, finally, the Rao-Blackwell estimator is

δ 1 ( X ) = E ⁡ [ δ ( X ) ∣ T ( X ) ] = E ⁡ [ 2 X 1 ∣ M ] = 2 ( 1 n ⋅ M + n − 1 n ⋅ M 2 ) = n + 1 n M {\displaystyle \delta _{1}(X)=\operatorname {E} [\delta (X)\mid T(X)]=\operatorname {E} [2X_{1}\mid M]=2\left({\frac {1}{n}}\cdot M+{\frac {n-1}{n}}\cdot {\frac {M}{2}}\right)={\frac {n+1}{n}}M} . This is indeed the correctly-inflated version of M {\displaystyle M} we were hoping for (inflating less and less as the number of samples n grows). It is unbiased, and again, by the Lehmann–Scheffé theorem, it is the (unique) minimum-variance such estimator.

Idempotence Rao–Blackwellization is an idempotent operation. Using it to improve the already improved estimator does not obtain a further improvement, but merely returns as its output the same improved estimator.

Completeness and Lehmann–Scheffé minimum variance If the conditioning statistic is both complete and sufficient, and the starting estimator is unbiased, then the Rao–Blackwell estimator is the unique "best unbiased estimator": see Lehmann–Scheffé theorem. An example of an improvable Rao–Blackwell improvement, when using a minimal sufficient statistic that is not complete, was provided by Galili and Meilijson in 2016. Let X 1 , … , X n {\displaystyle X_{1},\ldots ,X_{n}} be a random sample from a scale-uniform distribution X ∼ U ( ( 1 − k ) θ , ( 1 + k ) θ ) , {\displaystyle X\sim U\left((1-k)\theta ,(1+k)\theta \right),} with unknown mean E [ X ] = θ {\displaystyle E[X]=\theta } and known design parameter k ∈ ( 0 , 1 ) {\displaystyle k\in (0,1)} . In the search for "best" possible unbiased estimators for θ , {\displaystyle \theta ,} it is natural to consider X 1 {\displaystyle X_{1}} as an initial (crude) unbiased estimator for θ {\displaystyle \theta } and then try to improve it. Since X 1 {\displaystyle X_{1}} is not a function of T = ( X ( 1 ) , X ( n ) ) {\displaystyle T=\left(X_{(1)},X_{(n)}\right)} , the minimal sufficient statistic for θ {\displaystyle \theta } (where X ( 1 ) = min ( X i ) {\displaystyle X_{(1)}=\min(X_{i})} and X ( n ) = max ( X i ) {\displaystyle X_{(n)}=\max(X_{i})} ), it may be improved using the Rao–Blackwell theorem as follows:

θ ^ R B = E θ [ X 1 | X ( 1 ) , X ( n ) ] = X ( 1 ) + X ( n ) 2 . {\displaystyle {\hat {\theta }}_{RB}=E_{\theta }\left[X_{1}|X_{(1)},X_{(n)}\right]={\frac {X_{(1)}+X_{(n)}}{2}}.}

However, the following unbiased estimator can be shown to have lower variance:

θ ^ L V = 1 2 ( k 2 n − 1 n + 1 + 1 ) [ ( 1 − k ) X ( 1 ) + ( 1 + k ) X ( n ) ] . {\displaystyle {\hat {\theta }}_{LV}={\frac {1}{2\left(k^{2}{\frac {n-1}{

Tags

  • Estimation theory
  • Theorems in statistics