Why does the posterior mode under a Laplace prior give exact sparsity while the posterior mean does not?

Last updated 3 November 2026

  • The mode (lasso) comes from optimization: the L1 kink at zero has subgradient [−1, 1], so w = 0 is 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.

  • https://metricgate.com/blogs/horseshoe-prior-vs-laplace-prior/
All Regularization interview questions