Gamma-exponential conjugacy
= Gamma-exponential conjugacy
{wiki}
A gamma prior with shape $\alpha$ and rate $\beta$ combined with $n$ independent observations from an <exponential distribution> of rate $\theta$ gives the posterior
$$
\theta\mid X_1,\ldots,X_n
\sim\operatorname{Gamma}\left(\alpha+n,\beta+\sum_{i=1}^nX_i\right).
$$
Under <squared-error loss>, the <Bayes estimator> is its posterior mean $(\alpha+n)/(\beta+\sum_iX_i)$.