= Solution
{c}
A simple choice is an independent <Laplace distribution> at each pixel, giving a <Laplace prior for sparse images>:
$$
\boxed{\pi_0(u)=\left(\frac\lambda2\right)^d
\exp\left(-\lambda\sum_{j=1}^d|u_j|\right),\qquad\lambda>0.}
$$
Its negative log density penalizes the <L1 norm>. Relative to a <normal distribution>, it combines a sharp peak at zero with heavier tails, allowing most pixels to lie near the background level while a few have appreciable intensity. Quantitatively, $\mathbb P(|u_j|>\tau)=e^{-\lambda\tau}$, so the expected number of appreciable pixels is $de^{-\lambda\tau}$. Choosing $\lambda\tau$ large makes this small. This is a simple sparsity model: it does not enforce that nearby active pixels form connected objects, nor does its continuous density give exact zero pixels positive probability. Additional spatial modelling would be needed to insist on contiguous shapes.
To sample, draw independent $U_j\sim\mathcal U(0,1)$ and use <inverse transform sampling>:
$$
\boxed{u_j=\begin{cases}
\lambda^{-1}\log(2U_j),&0<U_j\leq\tfrac12,\\
-\lambda^{-1}\log(2(1-U_j)),&\tfrac12<U_j<1.
\end{cases}}
$$
The endpoint events have probability zero and can be assigned arbitrary finite values. To justify the rule, the <cumulative distribution function> of a centered <Laplace distribution> is
$$
F(x)=\begin{cases}
\tfrac12e^{\lambda x},&x\leq0,\\
1-\tfrac12e^{-\lambda x},&x\geq0.
\end{cases}
$$
The displayed rule is $F^{-1}(U_j)$, so $\mathbb P(u_j\leq x)=\mathbb P(U_j\leq F(x))=F(x)$. <Independence of random variables> then gives the stated product <prior distribution>.
Back to article page