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:

p ( x | 𝜃 ) = 𝜃 exp ( 𝜃 x )

is:

ln p ( 𝒟 | 𝜃 ) = N ln 𝜃 𝜃 n = 1 N x n ,

whose derivative is:

∂𝜃 ln p ( 𝒟 | 𝜃 ) = N 𝜃 n = 1 N x n

Thus for question (a), we have:

𝜃 MLE = N n = 1 N x n .

For question (b), 𝜃 MLE = 5 .

For question (c), we begin with an exponential prior distribution:

p ( 𝜃 | λ ) = λ exp ( λ 𝜃 ) ,

whose expectation is:

0 λ 𝜃 exp ( λ 𝜃 ) d 𝜃 .

Integration by parts (or resort to the nomarlization term of the Gamma distribution) yields:

𝔼 ( 𝜃 ) = 1 λ .

So λ ^ = 3 .

For question (d), the posterior distribution is:

p ( 𝜃 | 𝒟 , λ ) = p ( 𝒟 | 𝜃 ) p ( 𝜃 | λ ) p ( 𝒟 | λ ) = 1 p ( 𝒟 | λ ) 𝜃 N exp ( 𝜃 n = 1 N x n ) λ exp ( λ 𝜃 ) = 𝜃 N λ p ( 𝒟 | λ ) exp ( 𝜃 ( λ + n = 1 N x n ) ) .

Hence the posterior is a Gamma distribution with hyperparameters:

a = N + 1 ,

b = λ + n = 1 N x n .

The evidence is given by: λ Γ ( a ) b a , 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:

a b = N + 1 λ + n = 1 N x n .

Compared with the MLE, the posterior mean has additional terms for both the numerator and the denominator as basic knowledge when N is relatively small. The influence of using this prior is tantamount to introducing a prior sample with value λ .

User profile picture
2021-03-24 13:42
Comments