Sequential Monte Carlo Sampler (Adaptive Tempering)
A sequential Monte Carlo sampler moves a population of particles from the prior to the posterior through a sequence of tempered distributions, reweighting, resampling and jittering the particles at each step, and estimates the marginal likelihood as a by-product.
순차 몬테카를로 표본기는 입자 집단을 사전분포에서 출발해 점차 온도를 올린 분포들을 거쳐 사후분포로 옮기며, 단계마다 가중치 재계산, 재표집, 이동을 반복하고 그 부산물로 주변우도를 추정합니다.
Can I sample the posterior of my regression and get its marginal likelihood in one run, without tuning a single long Markov chain?
긴 마르코프 연쇄 하나를 조율하지 않고도 한 번의 실행으로 회귀모형의 사후분포와 주변우도를 함께 얻을 수 있을까요?
Particles start as prior draws. At each stage the likelihood exponent is raised just enough to keep the effective sample size at the target, particles are resampled, and Metropolis moves restore diversity. Posterior summaries come from the final particles, and the product of the average incremental weights gives log p(y). For the normal linear model the exact value is shown alongside as a check.
When to use Sequential Monte Carlo Sampler (Adaptive Tempering)
- You want posterior summaries and the log marginal likelihood of a normal linear or logistic regression together
- The posterior may be multimodal or poorly suited to a single MCMC chain
- You want to compare models by their evidence
When to use something else
- You only need posterior summaries of a conjugate normal linear model: use Bayesian Linear Regression
- You want an evidence estimate from existing posterior draws: use Bridge Sampling Marginal Likelihood
- You need a fast deterministic approximation: use Variational Bayesian Inference (Mean-Field Linear and Logistic Regression)
Assumptions and requirements
- The stated priors (scaled to the data) are acceptable
- Enough particles and move steps to keep particle diversity
- Normal errors (linear) or a binary outcome (logistic)
What the analysis reports
- Posterior means, SDs and credible intervals of coefficients
- Log marginal likelihood (with exact value for the linear model)
- Tempering schedule, acceptance rates and particle diversity
How to report it
An adaptive-tempering SMC sampler with [value] particles reached the posterior in [value] stages and estimated log p(y) = [value]; the posterior mean of [predictor] was [value] (95% CrI [value] to [value]).
Related methods
- Thermodynamic Integration Marginal Likelihood (Power Posteriors)
- Bridge Sampling Marginal Likelihood
- Tempered Transitions MCMC (Robust Student-t Regression)
- Bayesian Linear Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 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 Sequential Monte Carlo Sampler (Adaptive Tempering) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 900 credits for one analysis up to 10,000 rows (complexity level 5); larger or wider data costs more. Optional methodologist review: 3600 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.