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 is any kind of estimator of a parameter , then the conditional expectation of given , where is a sufficient statistic, is typically a better estimator of , and is never worse. Sometimes one can very easily construct a very crude estimator , 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.[1][2][3]
Definitions
- An estimator 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 is a statistic calculated from data to estimate some parameter for which no other statistic which can be calculated from data X provides any additional information about . It is defined as an observable random variable such that the conditional probability distribution of all observable data given does not depend on the unobservable parameter , such as the mean or standard deviation of the whole population from which the data 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 for a parameter is a statistic such that the conditional probability of the data , given , does not depend on the parameter .
- A Rao–Blackwell estimator of an unobservable quantity is the conditional expected value
of some estimator given a sufficient statistic . Call the "original estimator" and the "improved estimator". It is important that the improved estimator be observable, i.e. that it does not depend on . Generally, the conditional expected value of one function of these data given another function of these data does depend on , 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 .
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,
The essential tools of the proof besides the definition above are the law of total expectation and the fact that for any random variable , cannot be less than . That inequality is a case of Jensen's inequality, although it may also be shown to follow instantly from the frequently mentioned fact that
More precisely, the mean square error of the Rao-Blackwell estimator has the following decomposition[4]
Since , 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:
where the "loss function" 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[4]
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.[5]
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 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
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
can be readily shown to be a sufficient statistic for λ, i.e., the conditional distribution of the data , depends on λ only through this sum. Therefore, we find the Rao–Blackwell estimator
After doing some algebra we have
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
So is clearly a very much improved estimator of that last quantity. In fact, since is complete and is unbiased, 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 , that is, and the aim is to estimate this parameter . This is a continuous (and thus simpler) version of the German tank problem.
In this setting, the maximal value statistic is sufficient, as given , one (random) sample would equal it, and the others would be uniformly and independently distributed between 0 and ; this statistic is also complete.
There are two natural estimators for the upper bound , which improve as n grows. The first is twice the sample mean. This is unbiased (as for each ), but is not necessarily consistent - it may even be lower than the observed maximum , and then clearly also lower than . Thus it cannot be optimal (i.e., of lowest variance).
The second natural estimator is 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 - 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 given ? It has a probability of 1/n to be the maximal observed value itself, otherwise it is uniformly distributed in and thus has an expectation of . Hence, finally, the Rao-Blackwell estimator is
- .
This is indeed the correctly-inflated version of 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.[6] Let be a random sample from a scale-uniform distribution with unknown mean and known design parameter . In the search for "best" possible unbiased estimators for it is natural to consider as an initial (crude) unbiased estimator for and then try to improve it. Since is not a function of , the minimal sufficient statistic for (where and ), it may be improved using the Rao–Blackwell theorem as follows:
However, the following unbiased estimator can be shown to have lower variance:
And in fact, it could be even further improved when using the following estimator:
The model is a scale model. Optimal equivariant estimators can then be derived for loss functions that are invariant.[7]
See also
- Basu's theorem — Another result on complete sufficient and ancillary statistics
References
- ↑ "Conditional expectation and unbiased sequential estimation". Annals of Mathematical Statistics 18 (1): 105–110. 1947. doi:10.1214/aoms/1177730497.
- ↑ "Unbiased estimates". Izvestiya Akad. Nauk SSSR. Ser. Mat. 14: 303–326. 1950.
- ↑ Rao, C. Radhakrishna (1945). "Information and accuracy attainable in the estimation of statistical parameters". Bulletin of the Calcutta Mathematical Society 37 (3): 81–91.
- ↑ 4.0 4.1 J. G. Liao; A. Berg (22 June 2018). "Sharpening Jensen's Inequality". The American Statistician 73 (3): 278–281. doi:10.1080/00031305.2017.1419145.
- ↑ Carpenter, Bob (January 20, 2020). "Rao-Blackwellization and discrete parameters in Stan". https://statmodeling.stat.columbia.edu/2020/01/29/rao-blackwellization-and-discrete-parameters-in-stan/. ""The Rao-Blackwell theorem states that the marginalization approach has variance less than or equal to the direct approach. In practice, this difference can be enormous.""
- ↑ Tal Galili; Isaac Meilijson (31 Mar 2016). "An Example of an Improvable Rao–Blackwell Improvement, Inefficient Maximum Likelihood Estimator, and Unbiased Generalized Bayes Estimator". The American Statistician 70 (1): 108–113. doi:10.1080/00031305.2015.1100683. PMID 27499547.
- ↑ Taraldsen, Gunnar (2020). "Micha Mandel (2020), "The Scaled Uniform Model Revisited," The American Statistician, 74:1, 98–100: Comment". The American Statistician 74 (3): 315. doi:10.1080/00031305.2020.1769727. ISSN 0003-1305. https://doi.org/10.1080/00031305.2020.1769727.
External links
- Hazewinkel, Michiel, ed. (2001), "Rao–Blackwell–Kolmogorov theorem", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=R/r077550
