Solved – Posterior computation for Laplace distribution

bayesiangibbslaplace-distributionposteriorprior

I am dealing with being Bayesian and looking for a closed form for a posterior for the scale parameter $\tau$ of a Laplace distribution, such that I can derive a full conditional in my Gibbs sampler.

I do not think I could exploit conjugacy for the Laplace, but any closed-form computation for the posterior would be useful.
Any ideas on how to choose the prior and obtain a closed form posterior from which it is known how to sample from?

Best Answer

The likelihood for $n$ iid observations looks like:

$ f(x_1,...x_n|\lambda,\mu) \propto \frac{1}{\lambda^n} exp(-\frac{1}{\lambda}\sum_{i=1}^n|x_i-\mu|)$

Hence a conjugate prior for $\lambda$ with $\mu, x$ known must (thinking only about the algebra) look like:

$ f(\lambda) \propto \frac{1}{\lambda^a} exp(-\frac{b}{\lambda})$

As suggested by marmle, this is an Inverse Gamma, although to be nice we'd need to change $a\rightarrow a-1$ and let $a>0, b>0$.

EDIT: To get the updated parameters for $\lambda$:

$ f(\lambda|x_1,...x_n, \mu) \propto f(\lambda)f(x_1,...x_n|\lambda,\mu) $

$ \propto \frac{1}{\lambda^{a-1}} exp(-\frac{b}{\lambda}) \frac{1}{\lambda^n} exp(-\frac{1}{\lambda}\sum_{i=1}^n|x_i-\mu|)$

$ \propto \frac{1}{\lambda^{n+a-1}} exp(-\frac{1}{\lambda}(b+\sum_{i=1}^n|x_i-\mu|)) $

Related Question