Stochastic Search Variable Selection (Spike-and-Slab Gibbs)
Stochastic search variable selection is a Bayesian method that gives each regression coefficient a spike-and-slab mixture prior and uses Gibbs sampling to estimate posterior inclusion probabilities for every predictor.
확률적 탐색 변수선택은 회귀계수마다 스파이크·슬랩 혼합 사전분포를 주고 깁스 표집으로 각 설명변수의 사후 포함확률을 추정하는 베이즈 방법입니다.
Which of my ten predictors should stay in the regression model, and how sure can I be about each one being included?
설명변수 10개 중 어떤 것을 회귀모형에 남겨야 하고, 각 변수가 들어가야 한다는 것을 얼마나 확신할 수 있나요?
Give each coefficient a narrow spike and a wide slab normal prior with an indicator for which component it comes from, and run a Gibbs sampler over coefficients, indicators and the error variance. The share of draws in which each indicator is on is its posterior inclusion probability; the predictors above 0.5 form the median probability model.
When to use Stochastic Search Variable Selection (Spike-and-Slab Gibbs)
- You want a probability that each predictor belongs in the model.
- The number of predictors is moderate (up to a few dozen).
- You want to average over model uncertainty instead of picking one model by stepwise selection.
When to use something else
- There are hundreds of predictors or strong collinearity makes the sampler mix poorly; use horseshoe shrinkage or penalised regression.
- The outcome is not continuous; use Bayesian model averaging for generalised linear models.
Assumptions and requirements
- The outcome is linear in the predictors with normal, constant-variance errors.
- The spike SD reflects an effect too small to matter and the slab SD a plausible effect size, on the standardised scale.
- The chain is long enough for the indicators to mix.
What the analysis reports
- Posterior inclusion probability per predictor
- Median probability model and the most frequently visited models
- Model-averaged posterior means and credible intervals
- Effective sample size of the inclusion indicators
How to report it
Stochastic search variable selection (spike SD [value], slab SD [value]; [value] retained draws) gave the median probability model {[predictors]}; the highest posterior inclusion probability was [value] for [predictor].
Related methods
- Bayesian Shrinkage Regression (Horseshoe Prior)
- Bayesian Model Averaging for Linear Regression
- Stepwise Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Stochastic Search Variable Selection (Spike-and-Slab Gibbs) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.