Why does the posterior mode under a Laplace prior give exact sparsity while the posterior mean does not?
Last updated
The mode (lasso) comes from optimization: the L1 kink at zero has subgradient [−1, 1], so
w = 0is optimal over a whole range of data (soft thresholding).The posterior mean integrates over a continuous density with no point mass at 0, so it averages nonzero values. It is shrunk toward 0 but almost never exactly 0.
Lasso sparsity is a property of the point estimate, not the prior. For truly sparse Bayesian inference, use a spike-and-slab prior, or a horseshoe prior plus thresholding.