Bayesian LASSO Regression

Statistics
Introduced by
Park & Casella
Year
2008
Type
Bayesian regularized regression
Family
Regression / GLM

What does it do?

Bayesian LASSO regression places independent double-exponential (Laplace) priors on the regression coefficients, the Bayesian counterpart of the classical LASSO penalty.

Conditional on the error variance σ² and the shrinkage parameter λ, the posterior mode equals the classical LASSO estimate, and the full posterior provides credible intervals for every coefficient. Shrinkage can therefore be assessed together with the uncertainty of each estimate.

The intuition behind the method

The classical LASSO adds an L1 penalty that can set some coefficients exactly to zero, which performs variable selection. The Bayesian LASSO reaches a similar result by treating each coefficient as drawn from a sharply peaked, heavy-tailed Laplace distribution, a prior that favors values near zero but allows a few coefficients to remain large. Instead of a single point estimate, the analysis yields a full posterior distribution for each coefficient, from which posterior means, medians and credible intervals can be reported. The strength of shrinkage is governed by a hyperparameter, which can be estimated from the data rather than fixed in advance.

History

Park and Casella (2008) showed that the classical LASSO estimate, introduced by Tibshirani (1996), can be interpreted as a posterior mode when the coefficients have independent Laplace priors. They also gave a Gibbs sampler based on an expanded hierarchy with conditionally normal priors on the coefficients and exponential priors on their variances. This provided a Bayesian interpretation of the LASSO together with credible intervals for its coefficients.

When to use it

Choose Bayesian LASSO when the outcome is continuous, there may be many candidate predictors relative to the sample size, and you want shrinkage together with interval estimates for each coefficient. It is well suited to analyses in which the shrinkage parameter should be estimated jointly with the coefficients. Avoid it when you need exact zero coefficients from a posterior summary, since the posterior mean and median are not exactly zero. It is also a poor choice when computation time is critical for very high-dimensional problems, because MCMC is much slower than the coordinate-descent algorithms used for the classical LASSO.

Limitations and considerations

  • The posterior mean and median are not exactly zero, so sparsity must be judged from credible intervals rather than read off summary point estimates.
  • MCMC computation is substantially slower than coordinate-descent algorithms for the classical LASSO, which limits scalability to very high-dimensional problems.
  • Results depend on the hyperprior for λ; a poorly specified hyperprior can lead to under- or over-shrinkage.
  • When predictors are strongly correlated, the sampler may mix slowly, so convergence diagnostics are needed before the posterior summaries are interpreted.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Provides full posterior distributions for all coefficients, so credible intervals reflect uncertainty that remains after shrinkage.
  • Performs shrinkage and variable selection in one model, without a separate selection step.
  • The Laplace prior is a normal scale mixture with exponential priors on the variances, which gives tractable full conditional distributions for Gibbs sampling (Park and Casella, 2008).
  • The shrinkage parameter can be estimated within the hierarchical model, using either Bayesian or likelihood-based methods (Park and Casella, 2008).
  • Park and Casella (2008) note that slight modifications of the same framework give Bayesian versions of related estimators, including bridge regression and a robust variant.

Applications

  • Genomics and bioinformatics: selecting relevant genetic variants among many candidate predictors while quantifying effect-size uncertainty.
  • Epidemiology and social science: modeling a continuous outcome when many correlated candidate predictors are available and interval estimates are wanted.

How it works

How it works

1

The outcome vector y is modeled as a Gaussian linear model y = Xβ + ε, where the errors are independent normal with variance σ². This defines the likelihood that updates the prior on the coefficients.

Formula
y \mid X, \beta, \sigma^2 \sim \mathcal{N}(X\beta,\, \sigma^2 I)
2

Conditional on σ and λ, each coefficient βⱼ receives an independent Laplace (double-exponential) prior with scale σ/λ, that is, density (λ/(2σ)) exp(−λ|βⱼ|/σ). Park and Casella (2008) show that this prior can be written as a normal scale mixture: βⱼ given τⱼ² is normal with mean 0 and variance σ²τⱼ², and the τⱼ² have independent exponential priors determined by λ. This expanded hierarchy gives tractable full conditional distributions, including a connection with the inverse-Gaussian distribution, and so makes Gibbs sampling possible.

Formula
\beta_j \mid \sigma, \lambda \sim \text{Laplace}(0,\, \sigma/\lambda), \quad p(\beta_j \mid \sigma, \lambda) = \frac{\lambda}{2\sigma}\exp\!\left(-\frac{\lambda|\beta_j|}{\sigma}\right)
3

The posterior combines the Gaussian likelihood with the Laplace priors, and its log-density contains an L1 penalty on the coefficients. Conditional on σ² and λ, its mode coincides with the classical LASSO estimate, whose penalty is determined by λ and σ; this estimate can contain exact zeros (Tibshirani, 1996). The full joint posterior over (β, σ², λ) is not the LASSO solution. The posterior distribution is continuous, so its mean and median are not exactly zero. Sparsity should therefore be judged from the spread of the posterior, such as credible intervals, rather than from summary point estimates.

Formula
p(\beta \mid y, X, \sigma^2, \lambda) \propto \exp\!\left(-\frac{1}{2\sigma^2}\|y - X\beta\|^2 - \frac{\lambda}{\sigma}\|\beta\|_1\right)
4

The shrinkage parameter λ is not known in advance. It can be given its own prior and estimated jointly with the other parameters, or chosen by other means. Park and Casella (2008) note that the hierarchical structure provides both Bayesian and likelihood-based methods for selecting λ. The form of the prior on λ is a modeling choice that you should justify and check, because it affects how strongly coefficients are shrunk.

Formula
\beta_j \mid \tau_j^2, \sigma^2 \sim \mathcal{N}(0,\, \sigma^2\tau_j^2), \quad \tau_j^2 \mid \lambda \sim \text{Exp}(\lambda^2/2)
5

Inference is usually carried out by Gibbs sampling from the hierarchical representation. The sampler cycles through the full conditional distributions: β given the other parameters is multivariate normal, σ² has a tractable conditional, and the inverse of each τⱼ² has an inverse-Gaussian conditional; λ is updated too when it is treated as unknown. Early draws are discarded as burn-in, and convergence should be checked (for example with trace plots) before summarizing. Posterior means, medians and 95% credible intervals are computed from the retained draws. Park and Casella (2008) note that credible intervals can guide variable selection; an interval that excludes zero is a heuristic, not a formal test with controlled error rates.

Common pitfalls

  • Treating the posterior mode as equivalent to the classical LASSO estimate and reporting no uncertainty — use posterior credible intervals instead.
  • Assuming near-zero posterior means indicate true zeros; check posterior distributions and consider spike-and-slab priors for hard variable selection.
  • Fixing λ at a single value without sensitivity analysis when the hyperprior specification is uncertain.
  • Neglecting MCMC convergence diagnostics (Gelman-Rubin R̂, trace plots) and reporting results from a non-converged chain.

Frequently asked questions

Does the Bayesian LASSO set coefficients exactly to zero?

Not in the posterior mean or median. The posterior distribution of each coefficient is continuous, so these summaries are never exactly zero. Small coefficients are strongly shrunk toward zero but retain residual uncertainty. Conditional on σ² and λ, the posterior mode coincides with the classical LASSO estimate, which can contain exact zeros. For hard variable selection, examine credible intervals (a heuristic, not a formal test) or consider spike-and-slab priors.

How does the Bayesian LASSO differ from Bayesian ridge regression?

Bayesian ridge regression places Gaussian priors on coefficients; the posterior mode is an L2-penalized estimate that shrinks all coefficients proportionally toward zero without producing exact zeros. The Bayesian LASSO uses Laplace priors, which are more peaked at zero and heavier-tailed. This induces stronger shrinkage for small coefficients while allowing large coefficients to remain relatively unshrunk, the Bayesian analogue of the L1 versus L2 penalty contrast.

How is the shrinkage parameter λ chosen?

λ can be given a prior and estimated from the data within the MCMC. Park and Casella (2008) describe both Bayesian and likelihood-based methods for selecting it. Alternatively, λ can be fixed by cross-validation, as is common for the classical LASSO.

When should I prefer classical LASSO or Elastic Net over Bayesian LASSO?

If you need a fast, sparse solution with exact zero coefficients and do not need posterior credible intervals, classical LASSO or Elastic Net computed by coordinate descent is much faster and scales to very high dimensions. Prefer Bayesian LASSO when uncertainty quantification or prior specification is important.

Can Bayesian LASSO be applied to generalized linear models?

The Laplace prior can in principle be placed on coefficients in other regression models, such as logistic or Poisson models, but inference then requires methods other than the Gaussian-likelihood Gibbs sampler described above, such as general MCMC or variational approximations. Check the documentation of the software you intend to use for the models it supports.

Related methods

Sources

  1. Park, T., & Casella, G. (2008). The Bayesian Lasso. Journal of the American Statistical Association, 103(482), 681–686.

    Open DOI reference
  2. Tibshirani, R. (1996). Regression Shrinkage and Selection via the Lasso. Journal of the Royal Statistical Society: Series B, 58(1), 267–288.

    Open DOI reference