Spike-and-Slab Prior

bayesianvariable-selectionmodel-selectionregressionmcmcgibbs-samplershrinkagesparsity

Definition

A spike-and-slab prior is a two-component mixture prior on a parameter βi\beta_i that simultaneously models inclusion uncertainty and coefficient magnitude. The "spike" component concentrates mass near zero (either a point mass δ0\delta_0 or a tight Gaussian N(0,τ2)\mathcal{N}(0, \tau^2) with small τ\tau); the "slab" component is a diffuse Gaussian N(0,c2τ2)\mathcal{N}(0, c^2\tau^2) with c1c \gg 1 that allows βi\beta_i to take large values. A latent binary indicator γi{0,1}\gamma_i \in \{0,1\} selects the component. The marginal prior is βiγi(1γi)N(0,τi2)+γiN(0,ci2τi2)\beta_i \mid \gamma_i \sim (1-\gamma_i)\mathcal{N}(0,\tau_i^2) + \gamma_i\mathcal{N}(0,c_i^2\tau_i^2).

Key Ideas

How It Works

Given current draws (βj,σ2j)(\beta^j, \sigma^{2j}), the indicator γi\gamma_i is updated via:

P(γi=1βj,σ2j)=piϕ(βij;0,ci2τi2)piϕ(βij;0,ci2τi2)+(1pi)ϕ(βij;0,τi2)P(\gamma_i=1 \mid \beta^j, \sigma^{2j}) = \frac{p_i \cdot \phi(\beta^j_i; 0, c_i^2\tau_i^2)}{p_i \cdot \phi(\beta^j_i; 0, c_i^2\tau_i^2) + (1-p_i) \cdot \phi(\beta^j_i; 0, \tau_i^2)}

where ϕ(;μ,σ2)\phi(\cdot\,;\mu,\sigma^2) is the Normal density. The ratio of the two terms is the Bayes factor for inclusion. When the current βij\beta^j_i is large relative to τi\tau_i, the slab dominates and γi=1\gamma_i = 1 is likely; when βij\beta^j_i is small, the spike dominates. After all γi\gamma_i are updated, βγ,σ2\beta \mid \gamma, \sigma^2 is multivariate Normal and σ2β,γ\sigma^2 \mid \beta, \gamma is Inverse-Gamma — both conjugate.

Posterior summaries: the frequency with which γi=1\gamma_i = 1 across Gibbs iterations estimates the marginal posterior inclusion probability (PIP) for variable ii. High-probability models are those visited frequently by the sampler.

Why It Matters

Spike-and-slab priors convert model selection — an inherently combinatorial 2p2^p search — into a continuous Bayesian computation tractable by Gibbs sampling. The latent γ\gamma indicator acts as a data-augmentation device: conditional on γ\gamma, all blocks are standard conjugate families. The resulting PIPs are interpretable as posterior model-averaging weights and are more honest about uncertainty than classical step-wise selection or Lasso point estimates. The conjugate version's analytical marginalization over β\beta and σ2\sigma^2 (George-McCulloch 1997) dramatically improves mixing when information is weak.

Open Questions

Related