Definition (Bayes estimator)
Given some loss function $L: Θ\times Θ \to \R$, the Bayes risk of an estimator $\tilde θ$ for $θ$ is $$ \begin{align*} R_X(\tilde θ) = \expect_π(L(θ, \tilde θ)\mid X) = \int_{Θ} L(θ, \tilde θ(X))\, π(θ\mid X) \d θ. \end{align*} $$
The Bayes estimator is $$ \begin{align*} \hat θ(X) = \arg\min_{\tilde θ} R_X(\tilde θ). \end{align*} $$
-
The Bayes estimator with the quadratic loss $L(θ, \tilde θ) = (θ - \tilde θ)^2$ is the posterior mean. (Derivation)
-
The Bayes estimator with the absolute loss $L(θ, \tilde θ) = |\tilde θ - θ|$ is the posterior median. (Derivation)