Definitionadvanced
Spike-and-slab prior
Also called spike and slab variable selection.
A prior that gives each coefficient a probability of being exactly zero (the spike) and otherwise spreads it out (the slab). The posterior gives each variable a probability of inclusion.
A spike-and-slab prior is a prior for variable selection. Each coefficient is either zero, with some prior probability, or drawn from a wide distribution, the slab. The point mass at zero is the spike. The posterior then gives each variable a posterior inclusion probability, and it is the same as Bayesian model averaging over all subsets of the variables, written as one model.
Definition
Let be the coefficients of a model, for example a Bayesian linear regression . Introduce indicators . The spike-and-slab prior with inclusion probability and slab density is
Here is the point mass at 0. A common slab is , or when is unknown. Mitchell and Beauchamp (1988) used a flat slab on a bounded interval.
The continuous form of George and McCulloch (1993) replaces the point mass by a narrow normal, with . Then no coefficient is exactly zero, but the Gibbs updates are simple.
The posterior inclusion probability of variable is . The vector names a model (the set of included variables), and is its posterior probability, with the marginal likelihood of the regression on the included columns.
The normal means case, exact. Let for one coefficient, with slab . The marginal law of is under the spike and under the slab, so
Proof. The first formula is Bayes's theorem for , with the two marginal laws as likelihoods. Given , the normal prior and likelihood give ; given , . Average the two conditional means with weights and .
The posterior odds of inclusion are the prior odds times the Bayes factor of the slab against the spike. With , exactly when .
Examples and non-examples
Example: selective shrinkage. With and in the normal means case, at , and:
| 0 | 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|---|
| 0.232 | 0.322 | 0.650 | 0.947 | 0.998 | 1.000 | |
| , spike and slab | 0 | 0.293 | 1.182 | 2.584 | 3.628 | 4.545 |
| , horseshoe () | 0 | 0.380 | 1.063 | 2.210 | 3.448 | 4.579 |
| , prior | 0 | 0.909 | 1.818 | 2.727 | 3.636 | 4.545 |
Small observations are pulled hard toward 0 and large ones are left almost alone, at the factor of the slab. A single normal prior cannot do both: it shrinks every by the same factor. The horseshoe prior does a similar thing with a continuous prior. The posterior mean is never exactly 0 for ; the posterior median is 0 whenever , so the median is a thresholding rule.
Example: the two-groups model. In large-scale testing, each -value is null with probability and has a slab density otherwise. This is a spike-and-slab prior on the effects, and is the local false discovery rate.
Example: regression. For regressors, the posterior over is a posterior over the subsets, and the posterior mean of is the model average of the subset estimates. The median probability model keeps the variables with ; Barbieri and Berger (2004) show that it is the best single model for prediction in some normal linear models.
Non-example: the Laplace prior. The lasso estimate is the posterior mode under independent Laplace priors, and it has exact zeros. But the Laplace prior has no point mass, so every coefficient has posterior probability 0 of being 0, and its posterior mean is never sparse. The sparsity of the lasso is a property of the mode, not of the prior.
Non-example: a normal prior. Ridge regression is the posterior mean under , the slab alone. It shrinks all coefficients by the same factor in the orthogonal case and selects nothing.
Non-example: the horseshoe. The horseshoe prior is a continuous scale mixture of normals with a pole at 0. It mimics the spike and slab in its posterior mean, but it has no indicator and no inclusion probability.
Related definitions
- Bayesian model averaging. The spike-and-slab posterior is BMA over subsets with the prior .
- The prior on and multiplicity. With fixed, adding more noise variables does not make the prior more cautious. A prior Beta makes the model size beta-binomial, and Scott and Berger (2010) show that this gives an automatic multiplicity correction. Estimating by maximizing the marginal likelihood is empirical Bayes and behaves similarly for large , but it can collapse to .
- Slab width and the Lindley paradox. As the Bayes factor for the slab goes to 0, and every PIP goes to 0. At with , is , , and for , , and . This is the Lindley paradox for one coefficient, so the slab must be proper and of a sensible width.
- Savage-Dickey density ratio. The Bayes factor of the spike against the slab for one coefficient is the posterior density of at 0 under the slab alone, divided by the slab density at 0, when the other coefficients have the same prior in both models.
- Computation. With the point mass, a Gibbs sampler must update with integrated out, because given the indicator cannot change. With conjugate normal slabs, has a closed form and the sampler can work on alone. The continuous form of George and McCulloch updates given directly.
- Spike-and-slab lasso. Ročková and George (2018) use a narrow Laplace spike and a wide Laplace slab, so that the posterior mode is sparse and can be found quickly, as for the lasso.
- Rescaled spike and slab. Ishwaran and Rao (2005) study continuous spike and slab priors with a hypervariance and their frequentist behaviour.
References
- Mitchell and Beauchamp 1988, the prior with a point mass at zero and a flat slab, and the name spike and slab (general locator)
- George and McCulloch 1993, stochastic search variable selection with a narrow normal spike and a wide normal slab, sampled by Gibbs sampling (general locator)
- Ishwaran and Rao 2005, rescaled spike and slab models and their selective shrinkage (general locator)
- Scott and Berger 2010, a prior on the inclusion probability and the multiplicity correction it gives, compared with empirical Bayes (general locator)
- Barbieri and Berger 2004, the median probability model (general locator)
- Ročková and George 2018, Laplace spike and slab densities and the fast posterior mode (general locator)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag R7P8PD Edit this page History Report an error Markdown