Definitioncore
Bayes estimator
Also called posterior mean estimator.
The estimator that minimizes posterior expected loss: the posterior mean for squared loss, the median for absolute loss. It minimizes the Bayes risk.
A Bayes estimator for a prior and a loss function is an estimator that minimizes the Bayes risk, the risk averaged over the prior. It can be found one data set at a time: for each observed , take the value that minimizes the posterior expected loss . Under squared error this is the posterior mean, under absolute error a posterior median, and the posterior mode is the limit under 0-1 losses with a shrinking window. The prior and the loss together decide the estimator; the data enter only through the posterior.
Definition
Use the notation of statistical decision theory. Data have density , has a prior , the posterior is and the marginal law of is . A rule has risk and Bayes risk .
- The posterior expected loss of an action is .
- A Bayes estimator (Bayes rule) for is a rule with .
- By Fubini's theorem . So a rule with a minimizer of for -almost every is a Bayes estimator. Its values on a set of with -probability 0 do not matter.
- A generalized Bayes estimator minimizes when is an improper prior with a proper posterior. It need not be a Bayes rule, because its Bayes risk against an infinite measure is usually infinite.
Squared error: the posterior mean. Let and let the posterior have a finite second moment. Then
which is smallest at , with value . So , and its Bayes risk is , the expected posterior variance. For a vector and the loss the Bayes estimator is the vector of posterior means. For the weighted loss it is .
Absolute error: a posterior median. Let and let the posterior have a finite first moment. Then is convex in , with right derivative and left derivative . A convex function is smallest at exactly when its left derivative is at most 0 and its right derivative at least 0, that is when . This is the definition of a posterior median, so every posterior median minimizes . With the asymmetric loss the same argument gives the posterior quantile of order .
0-1 loss: the mode as a limit. Let . The Bayes action maximizes the posterior probability of . If the posterior density is continuous with a unique maximum, these actions tend to the posterior mode as . The mode is the maximum a posteriori estimate; it is a limit of Bayes estimators, and it is not a Bayes estimator for a fixed loss in general.
An unbiased Bayes estimator has Bayes risk 0. Under squared error, let be a Bayes estimator for a proper prior with and . If is unbiased, for every , then . Proof: compute in two ways under the joint law of . Given , , so . Given , , so . Then . The result is older than the paper of Bickel and Blackwell (1967), who extend it to other losses. A Bayes risk of 0 means the data determine with prior probability 1, so in every non-trivial problem a Bayes estimator under squared error is biased (see estimator bias).
Examples and non-examples
Three losses, one posterior. With trials, successes and the uniform prior, the posterior of is Beta. Its mean is , its median 0.3238 and its mode . The posterior expected squared loss at the mean is the posterior variance ; the expected absolute loss at the median is 0.10571. A direct search over , with the posterior written as a sum over 20000 equal cells, finds the minimum of the expected squared loss at 0.3335 (the grid point next to ) and of the expected absolute loss at 0.3240 (next to 0.3238). The 0-1 loss with window , 0.05 and 0.01 gives 0.3065, 0.3015 and 0.3000, which approach the mode.
Bayes risk against the MLE. In the same model, Binomial with the uniform prior, the posterior mean is . Its risk is , and the average over the uniform prior is exactly . This equals , which is , because is uniform on under this prior. The MLE has Bayes risk , larger, as it must be. Both values are exact rational numbers.
A normal mean. Let be iid with known and . The posterior is normal, so its mean, median and mode agree: with . It is biased, , as the theorem above requires. For the data 9.8, 10.4, 10.1, 9.6, 10.6 with and prior , and .
An unbiased rule that is Bayes. For Binomial and a prior that puts mass 1/2 on each of and , the data are all 0 or all 1, and gives the right answer with probability 1. It is unbiased and Bayes, with Bayes risk 0, as the theorem allows.
Non-example: the sample mean of normal data. is unbiased for with risk at every , so by the theorem it is not a Bayes estimator under squared error for any proper prior. It is the generalized Bayes estimator for the flat improper prior, and a limit of the Bayes estimators above as . In one dimension it is still admissible and minimax.
Non-example: the mode after a change of scale. The posterior median is invariant under strictly monotone maps: the median of is the log-odds of the median of . The mode is not. On the log-odds scale the Beta posterior has density proportional to , whose maximum is at , not at the mode on the scale. The posterior mean is not invariant either: for a nonlinear .
Related definitions
- Statistical decision theory. The framework of loss, risk and Bayes risk; a Bayes rule with constant risk is minimax.
- Admissible estimator. A unique Bayes estimator with finite Bayes risk is admissible; Bayes and generalized Bayes rules are the main source of admissible rules.
- Maximum a posteriori estimate. The posterior mode, a limit of Bayes estimators under 0-1 loss.
- Empirical Bayes. The prior is estimated from the data, and the Bayes estimator for the fitted prior is used; the James-Stein estimator is the classic case.
- Credible interval. The interval summary of the same posterior that gives the point summary here.
- Mean squared error. The risk under squared error; the Bayes risk is its average over the prior.
References
- Christian P. Robert, The Bayesian Choice, 2nd edition, Springer, 2007, Chapter 2 (decision-theoretic foundations, Bayes risk and Bayes estimators) and Chapter 4 (Bayesian point estimation under squared, absolute and 0-1 losses)
- P. J. Bickel and D. Blackwell, A note on Bayes estimates, Annals of Mathematical Statistics 38(6), 1967, pages 1907 to 1911 (an unbiased Bayes estimate under squared error has Bayes risk 0, and the extension to more general losses)
- Andrew Gelman, John B. Carlin, Hal S. Stern, David B. Dunson, Aki Vehtari and Donald B. Rubin, Bayesian Data Analysis, 3rd edition, CRC Press, 2013, Chapter 2 (posterior summaries for the binomial and normal models) and Chapter 9 (decision analysis)
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag HC9Z9C Edit this page History Report an error Markdown