Thermodynamic Integration Marginal Likelihood (Power Posteriors)
Thermodynamic integration computes the log marginal likelihood as the integral over a temperature t from 0 to 1 of the expected log-likelihood under the power posterior, which is proportional to the prior times the likelihood raised to t.
열역학적 적분은 사전분포에 우도를 t 제곱하여 곱한 거듭제곱 사후분포에서의 기대 로그우도를 온도 t 에 대해 0 부터 1 까지 적분하여 로그 주변우도를 계산합니다.
What is the marginal likelihood (evidence) of my regression model, so that I can compare models with Bayes factors?
베이즈 인자로 모형을 비교하기 위해 회귀모형의 주변우도(증거)는 얼마일까요?
The posterior is sampled at a ladder of temperatures concentrated near zero, the mean log-likelihood is computed at each, and the curve is integrated with the trapezoid rule plus a variance-based correction for the discretisation. The Monte Carlo SE of the estimate is reported. For the normal linear model the exact evidence is shown alongside.
When to use Thermodynamic Integration Marginal Likelihood (Power Posteriors)
- You need the log marginal likelihood of a normal linear or logistic regression for Bayes factors
- You want a stable evidence estimate that does not rely on a single posterior sample
- You want to see how the expected log-likelihood changes from prior to posterior
When to use something else
- You already have posterior draws and want a cheaper evidence estimate: use Bridge Sampling Marginal Likelihood
- You want a Bayes factor for one nested coefficient: use Savage-Dickey Density Ratio Bayes Factor
- You also want posterior draws from the same run: use Sequential Monte Carlo Sampler (Adaptive Tempering)
Assumptions and requirements
- Proper priors (the stated priors scaled to the data)
- Enough temperatures near t = 0 where the curve is steep
- Each power posterior is sampled well (check acceptance for the logistic model)
What the analysis reports
- Log marginal likelihood with Monte Carlo SE
- Trapezoid estimate and discretisation correction
- Mean and variance of the log-likelihood at each temperature
- Exact evidence (linear model)
How to report it
Thermodynamic integration over [value] power posteriors estimated log p(y) = [value] (Monte Carlo SE [value]) for the model with [predictors], versus [value] for the reduced model, giving log BF = [value].
Related methods
- Bridge Sampling Marginal Likelihood
- Chib Marginal Likelihood Estimator
- Sequential Monte Carlo Sampler (Adaptive Tempering)
- Savage-Dickey Density Ratio Bayes Factor
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 Thermodynamic Integration Marginal Likelihood (Power Posteriors) 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.