Chib Marginal Likelihood Estimator
Chib's estimator computes the marginal likelihood from Gibbs sampler output through the identity log p(y) = log f(y | theta*) + log p(theta*) - log p(theta* | y), estimating the posterior ordinate at a high-density point by Rao-Blackwellisation over the draws.
치브 추정량은 log p(y) = log f(y | θ*) + log p(θ*) - log p(θ* | y) 항등식을 써서 깁스 표집 결과로 주변우도를 계산하며, 고밀도 지점의 사후밀도는 표본에 대한 라오-블랙웰 평균으로 추정합니다.
I fit a Gibbs-sampled regression and need its marginal likelihood for a Bayes factor; is there a way to get it from the draws I already have?
깁스 표집으로 회귀모형을 적합했는데 베이즈 인자를 위해 주변우도가 필요합니다. 이미 뽑은 표본으로 구할 방법이 있나요?
The likelihood and prior are evaluated at the posterior mean and the posterior density there is estimated by averaging closed-form conditional densities over the Gibbs draws, which gives log p(y) with a numerical standard error. Doing the same for a comparison model gives the log Bayes factor.
When to use Chib Marginal Likelihood Estimator
- The model is estimated by Gibbs sampling with closed-form full conditionals (normal linear, probit)
- You need a Bayes factor between nested covariate sets
- You want a numerical standard error for log p(y)
When to use something else
- Posterior draws come from HMC or a sampler without closed-form conditionals: use Bridge Sampling Marginal Likelihood
- Several models must be ranked jointly: use Carlin-Chib Product-Space Model Selection
- A quick large-sample approximation is enough: use Bayesian ANOVA (BIC Bayes Factor)
Assumptions and requirements
- Proper priors (results depend on prior scales)
- Converged Gibbs output
- The evaluation point lies in a high-posterior-density region
What the analysis reports
- log p(y) and numerical SE for the full and comparison models
- Likelihood, prior and posterior ordinate at theta*
- log Bayes factor with SE and evidence category
How to report it
Chib's estimator gave log p(y) = [value] (NSE [value]) for the full model and [value] for the comparison model; log BF = [value], BF = [value].
Related methods
- Bridge Sampling Marginal Likelihood
- Carlin-Chib Product-Space Model Selection
- Bayesian Probit Regression
- Bayesian Linear Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 2건 통과.
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 Chib Marginal Likelihood Estimator 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.