- Bayes estimator
In

decision theory andestimation theory , a**Bayes estimator**is anestimator or decision rule that maximizes the posteriorexpected value of autility function or minimizes the posterior expected value of aloss function (also called**posterior expected loss**).**Definition**Suppose an unknown parameter θ is known to have a

prior distribution $pi$. Let $delta$ be an estimator of θ (based on some measurements), and let $R(\; heta,delta)$ be arisk function , such as themean squared error . The**Bayes risk**of $delta$ is defined as $E\_pi\; \{\; R(\; heta,\; delta)\; \}$, where the expectation is taken over the probability distribution of $heta$. An estimator $delta$ is said to be a "Bayes estimator" if it minimizes the Bayes risk among all estimators. The estimator which minimizes the posterior expected loss "for each x" also minimizes the Bayes risk and therefore is a Bayes estimator.If the prior is improper then an estimator which minimizes the posterior expected loss "for each x" is called a

**generalized Bayes estimator**.**Examples****Minimum mean square error estimation**The most common risk function used for Bayesian estimation is the

mean square error (MSE), also called squared error risk. The MSE is defined by:$mathrm\{MSE\}\; =\; Eleft\; [\; (widehat\{\; heta\}(x)\; -\; heta)^2\; ight]$,where the expectation is taken over the joint distribution of $heta$ and $x$.Using the MSE as risk, the Bayes estimate of the unknown parameter is simply the mean of the

posterior distribution ,:$widehat\{\; heta\}(x)\; =\; E\; [\; heta\; |X]\; =int\; heta\; f(\; heta\; |x),d\; heta.$This is known as the "minimum mean square error" (MMSE) estimator. The Bayes risk, in this case, is the posterior variance.**Bayes estimators for conjugate priors**If there is no inherent reason to prefer one prior probability distribution over another, a

conjugate prior is sometimes chosen for simplicity. A conjugate prior is defined as a prior distribution belonging to someparametric family , for which the resulting posterior distribution also belongs to the same family. This is an important property, since the Bayes estimator, as well as its statistical properties (variance, confidence interval, etc.), can all be derived from the posterior distribution.Conjugate priors are especially useful for sequential estimation, where the posterior of the current measurement is used as the prior in the next measurement. In sequential estimation, unless a conjugate prior is used, the posterior distribution typically becomes more complex with each added measurement, and the Bayes estimator cannot usually be calculated without resorting to numerical methods.

Following are some examples of conjugate priors.

- If x|θ is normal, x|θ ~ N(θ,σ
^{2}), and the prior is normal, θ ~ N(μ,τ^{2}), then the posterior is also normal and the Bayes estimator under MSE is given by:$widehat\{\; heta\}(x)=frac\{sigma^\{2\{sigma^\{2\}+\; au^\{2mu+frac\{\; au^\{2\{sigma^\{2\}+\; au^\{2x.$ - If x
_{1},...,x_{n}areiid Poisson random variables x_{i}|θ ~ P(θ), and if the prior is Gamma distributed θ ~ G(a,b), then the posterior is also Gamma distributed, and the Bayes estimator under MSE is given by:$widehat\{\; heta\}(X)=frac\{noverline\{X\}+a\}\{n+frac\{1\}\{b.$ - If x
_{1},...,x_{n}are iid uniformly distributed x_{i}|θ~U(0,θ), and if the prior is Pareto distributed θ~Pa(θ_{0},a), then the posterior is also Pareto distributed, and the Bayes estimator under MSE is given by:$widehat\{\; heta\}(X)=frac\{(a+n)max\{(\; heta\_0,x\_1,...,x\_n)\{a+n-1\}.$

**Alternative risk functions**Risk functions are chosen depending on how one measures the distance between the estimate and the unknown parameter. The MSE is the most common risk function in use, primarily due to its simplicity. However, alternative risk functions are also occasionally used. The following are several examples of such alternatives. We denote the posterior generalized distribution function by $F$.

- A "linear" loss function, with $a>0$, which yields the
posterior median as the Bayes' estimate: :$L(\; heta,widehat\{\; heta\})\; =\; a|\; heta-widehat\{\; heta\}|$:$F(widehat\{\; heta\; \}(x)|X)\; =\; frac\{1\}\{2\}$ - Another "linear" loss function, which assigns different "weights" $a,b>0$ to over or sub estimation. It yields a
quantile from the posterior distribution, and is a generalization of the previous loss function: :$L(\; heta,widehat\{\; heta\})\; =\; left\{egin\{matrix\}\; a|\; heta-widehat\{\; heta\}|\; mbox\{for\; \}\; heta-widehat\{\; heta\}\; ge\; 0\; \backslash \; b|\; heta-widehat\{\; heta\}|\; mbox\{for\; \}\; heta-widehat\{\; heta\}\; 0\; end\{matrix\}\; ight.$:$F(widehat\{\; heta\; \}(x)|X)\; =\; frac\{a\}\{a+b\}$ - The following loss function is trickier: it yields either the
posterior mode , or a point close to it depending on the curvature and properties of the posterior distribution. Small values of the parameter $K>0$ are recommended, in order to use the mode as an approximation ($L>0$): :$L(\; heta,widehat\{\; heta\})\; =\; left\{egin\{matrix\}\; 0\; mbox\{for\; \}|\; heta-widehat\{\; heta\}|\; K\; \backslash \; L\; mbox\{for\; \}|\; heta-widehat\{\; heta\}|\; ge\; K\; end\{matrix\}\; ight.$

Other loss functions can be conceived, although the

mean squared error is the most widely used and validated.**Generalized Bayes estimators**The prior distribution $pi$ has thus far been assumed to be a true probability distribution, in that :$int\; pi(\; heta)\; d\; heta\; =\; 1.$However, occasionally this can be a restrictive requirement. For example, there is no distribution for which every real number is equally likely. Yet, in some sense, such a "distribution" seems like a natural choice for a

non-informative prior , i.e., a prior distribution which does not imply a preference for any particular value of the unknown parameter. One can still define a function $pi(\; heta)\; =\; 1$, but this would not be a proper probability distribution since it has infinite mass,:$int\{pi(\; heta)d\; heta\}=infty.$Such measures $pi(\; heta)$, which are not probability distributions, are referred to asimproper prior s.The use of an improper prior typically results in infinite Bayes risk. As a consequence, it is no longer meaningful to speak of an estimator which minimizes the Bayes risk. Nevertheless, in many cases, one can define the posterior distribution:$pi(\; heta|x)\; =\; frac\{p(x|\; heta)\; pi(\; heta)\}\{int\; p(x|\; heta)\; pi(\; heta)\; d\; heta\}.$This is a definition, and not an application of

Bayes' theorem , since Bayes' theorem can only be applied when all distributions are proper. However, it is not uncommon for the resulting "posterior" to be a valid probability distribution. In this case, the posterior expected loss:$int\{L(\; heta,a)pi(\; heta|x)d\; heta\}$is typically well-defined and finite. Recall that, for a proper prior, the Bayes estimator minimizes the posterior expected loss. When the prior is improper, an estimator which minimizes the posterior expected loss is referred to as a**generalized Bayes estimator**.**Example**A typical example concerns the estimation of a

location parameter with a loss function of the type $L(a-\; heta)$. Here $heta$ is a location parameter, i.e., $p(x|\; heta)\; =\; f(x-\; heta)$.It is common to use the improper prior $pi(\; heta)=1$ in this case, especially when no other more subjective information is available. This yields:$pi(\; heta|x)\; =\; frac\{p(x|\; heta)\; pi(\; heta)\}\{p(x)\}\; =\; frac\{f(x-\; heta)\}\{p(x)\}$so the posterior expected loss equals:$E\; [L(a-\; heta)]\; =\; int\{L(a-\; heta)\; pi(\; heta|x)\; d\; heta\}\; =\; frac\{1\}\{p(x)\}\; int\; L(a-\; heta)\; f(x-\; heta).$The generalized Bayes estimator is the value $a(x)$ which minimizes this expression for all $x$. This is equivalent to minimizing :$int\; L(a-\; heta)\; f(x-\; heta)$ for all $x$. (1)

It can be shown that, in this case, the generalized Bayes estimator has the form $x+a\_0$, for some constant $a\_0$. To see this, let $a\_0$ be the value minimizing (1) when $x=0$. Then, given a different value $x\_1$, we must minimize:$int\; L(a-\; heta)\; f(x\_1-\; heta)\; d\; heta\; =\; int\; L(a-x\_1-\; heta\text{'})\; f(-\; heta\text{'})\; d\; heta\text{'}.$ (2)This is identical to (1), except that $a$ has been replaced by $a-x\_1$. Thus, the expression minimizing is given by $a-x\_1\; =\; a\_0$, so that the optimal estimator has the form:$a(x)\; =\; a\_0\; +\; x.,!$

**Empirical Bayes estimators**A Bayes estimator derived through the

empirical Bayes method is called an "empirical Bayes estimator". Empirical Bayes methods enable the use of auxiliary empirical data, from observations of related parameters, in the development of a Bayes estimator. This is done under the assumption that the estimated parameters are obtained from a common prior. For example, if independent observations of different parameters are performed, then the estimation performance of a particular parameter can sometimes be improved by using data from other observations.There are parametric and non-parametric approaches to empirical Bayes estimation. Parametric empirical Bayes is usually preferable since it is more applicable and more accurate on small amounts of data. [

*Berger (1980), section 4.5.*]**Example**The following is a simple example of parametric empirical Bayes estimation. Given past observations $x\_1,ldots,x\_n$ having conditional distribution $f(x\_i|\; heta\_i)$, one is interested in estimating $heta\_\{n+1\}$ based on $x\_\{n+1\}$. Assume that the $heta\_i$'s have a common prior $pi$ which depends on unknown parameters. For example, suppose that $pi$ is normal with unknown mean $mu\_pi,!$ and variance $sigma\_pi,!.$ We can then use the past observations to determine the mean and variance of $pi$ in the following way.

First, we estimate the mean $mu\_m,!$ and variance $sigma\_m,!$ of the marginal distribution of $x\_1,\; ldots,\; x\_n$ using the

maximum likelihood approach::$widehat\{mu\}\_m=frac\{1\}\{n\}sum\{x\_i\},$:$widehat\{sigma\}\_m^\{2\}=frac\{1\}\{n\}sum\{(x\_i-widehat\{mu\}\_m)^\{2.$Next, we use the relation: $mu\_m=E\_pi\; [mu\_f(\; heta)]\; ,!,$: $sigma\_m^\{2\}=E\_pi\; [sigma\_f^\{2\}(\; heta)]\; +E\_pi\; [mu\_f(\; heta)-mu\_m]\; ,$where $mu\_f(\; heta)$ and $sigma\_f(\; heta)$ are the moments of the conditional distribution $f(x\_i|\; heta\_i)$, which are assumed to be known. In particular, suppose that $mu\_f(\; heta)\; =\; heta$ and that $sigma\_f(\; heta)\; =\; K$; we then have: $mu\_pi=mu\_m\; ,!,$: $sigma\_pi^\{2\}=sigma\_m^\{2\}-sigma\_f^\{2\}=sigma\_m^\{2\}-K\; .$Finally, we obtain the estimated moments of the prior,: $widehat\{mu\}\_pi=widehat\{mu\}\_m,$: $widehat\{sigma\}\_pi^\{2\}=widehat\{sigma\}\_m^\{2\}-K.$For example, if $x\_i|\; heta\_i\; sim\; N(\; heta\_i,1)$, and if we assume a normal prior (which is aconjugate prior in this case), we conclude that $heta\_\{n+1\}sim\; N(widehat\{mu\}\_pi,widehat\{sigma\}\_pi^\{2\})$, from which the Bayes estimator of $heta\_\{n+1\}$ based on $x\_\{n+1\}$ can be calculated.**Properties****Admissibility**Bayes rules having finite Bayes risk are typically admissible. The following are some specific examples of admissibility theorems.

* If a Bayes rule is unique then it is admissible. [*Lehmann and Casella (1998), Theorem 5.2.4.*] For example, as stated above, under mean squared error (MSE) the Bayes rule is unique and therefore admissible.

* If θ belongs to adiscrete set, then all Bayes rules are admissible.

* If θ belongs to a continuous (non-discrete set), and if the risk function R(θ,δ) is continuous in θ for every δ, then all Bayes rules are admissible.By contrast, generalized Bayes rules usually have infinite Bayes risk. These are often inadmissible and the verification of their admissibility can be difficult. For example, the generalized Bayes estimator of a location parameter θ based on Gaussian samples (described in the "Generalized Bayes estimator" section above) is inadmissible for $p>2$; this is known as

Stein's phenomenon .**Asymptotic efficiency**Let θ be an unknown random variable, and suppose that $x\_1,x\_2,ldots$ are

iid samples with density $f(x\_i|\; heta)$. Let $delta\_n\; =\; delta\_n(x\_1,ldots,x\_n)$ be a sequence of Bayes estimators of θ based on an increasing number of measurements. We are interested in analyzing the asymptotic performance of this sequence of estimators, i.e., the performance of $delta\_n$ for large "n".To this end, it is customary to regard θ as a deterministic parameter whose true value is $heta\_0$. Under specific conditions, [

*Lehmann and Casella (1998), section 6.8*] for large samples (large values of "n"), the posterior density of θ is approximately normal. In other words, for large "n", the effect of the prior probability on the posterior is negligible. Moreover, if δ is the Bayes estimator under MSE risk, then it isasymptotically unbiased and it converges in distribution to thenormal distribution ::$sqrt\{n\}(delta\_n\; -\; heta\_0)\; o\; Nleft(0\; ,\; frac\{1\}\{I(\; heta\_0)\}\; ight),$

where "I"(θ

_{0}) is thefisher information of θ_{0}.It follows that the Bayes estimator δ_{"n"}under MSE is asymptotically efficient.Another estimator which is asymptotically normal and efficient is the

maximum likelihood estimator (MLE). The relations between the maximum likelihood and Bayes estimators can be shown in the following simple example.Consider the estimator of θ based on binomial sample "x"~b(θ,"n") where θ denotes the probability for success. Assuming θ is distributed according to the

conjugate prior , which in this case is theBeta distribution B("a","b"), the posterior distribution is known to be B(a+x,b+n-x). Thus, the Bayes estimator under MSE is:$delta\_n(x)=E\; [\; heta|x]\; =frac\{a+x\}\{a+b+n\}$The MLE in this case is x/n and so we get,:$delta\_n(x)=frac\{a+b\}\{a+b+n\}E\; [\; heta]\; +frac\{n\}\{a+b+n\}delta\_\{MLE\}$The last equation implies that, for "n" → ∞, the Bayes estimator (in the described problem) is close to the MLE. On the other hand, when "n" is small, the prior information is still relevant to the decision problem and affects the estimate.**See also***

Recursive Bayesian estimation

*Empirical Bayes method

*Conjugate prior **Notes****References*** cite book

last = Lehmann

first = E. L.

coauthors = Casella, G.

title = Theory of Point Estimation

date = 1998

publisher = Springer

isbn = 0-387-98502-6

pages = 2nd ed

* cite book

last = Berger

first = J.O.

title= Statistical Decision Theory and Bayesian Analysis

date = 1985

pages = Second Edition.

publisher = Springer Verlag, New York

isbn = ISBN 0-387-96098-8 and also ISBN 3-540-96098-8**External links*** [

*http://cnx.org/content/m11660/latest/ Bayesian estimation on cnx.org*]- If x|θ is normal, x|θ ~ N(θ,σ

*Wikimedia Foundation.
2010.*