Statistical decision theory: a decision-theoretic approach to the estimation of an unknown parameter $\theta$ introduces the loss function $L(\theta, a)$ which, loosely speaking, gives the cost of deciding that the parameter has the value $a$, when it is in fact equal to $\theta$. The estimate $a$ can be chosen to minimize the posterior expected loss,
$$
\mathrm{E}(L(a \mid y))=\int L(\theta, a) p(\theta \mid y) d \theta
$$
This optimal choice of $a$ is called a Bayes estimate for the loss function $L$. Show that:
(a) If $L(\theta, a)=(\theta-a)^2$ (squared error loss), then the posterior mean, $\mathrm{E}(\theta \mid y)$, if it exists, is the unique Bayes estimate of $\theta$.
(b) If $L(\theta, a)=|\theta-a|$, then any posterior median of $\theta$ is a Bayes estimate of $\theta$.
(c) If $k_0$ and $k_1$ are nonnegative numbers, not both zero, and
$$
L(\theta, a)= \begin{cases}k_0(\theta-a) & \text { if } \quad \theta \geq a \\ k_1(a-\theta) & \text { if } \quad \theta<a\end{cases}
$$
then any $\frac{k_0}{k_0+k_1}$ quantile of the posterior distribution $p(\theta \mid y)$ is a Bayes estimate of $\theta$.