Homepage › Solution manuals › Kevin P. Murphy › Machine Learning: a Probabilistic Perspective › Exercise 3.11 - Bayesian analysis of the exponential distribution
Exercise 3.11 - Bayesian analysis of the exponential distribution
Answers
The exponential distribution is also crucial for the queueing theory. The log-likelihood for an exponential distribution with density:
is:
whose derivative is:
Thus for question (a), we have:
For question (b), .
For question (c), we begin with an exponential prior distribution:
whose expectation is:
Integration by parts (or resort to the nomarlization term of the Gamma distribution) yields:
So
For question (d), the posterior distribution is:
Hence the posterior is a Gamma distribution with hyperparameters:
The evidence is given by: , a function of and . Hence the exponential distribution is not the conjugate distribution of itself, answering question (e).
For question (f), the posterior mean is the mean of the Gamma distribution:
Compared with the MLE, the posterior mean has additional terms for both the numerator and the denominator as basic knowledge when is relatively small. The influence of using this prior is tantamount to introducing a prior sample with value .