Open Access
September 2012 Computing the Bayes Factor from a Markov Chain Monte Carlo Simulation of the Posterior Distribution
Martin D. Weinberg
Bayesian Anal. 7(3): 737-770 (September 2012). DOI: 10.1214/12-BA725

Abstract

Determining the marginal likelihood from a simulated posterior distribution is central to Bayesian model selection but is computationally challenging. The often-used harmonic mean approximation (HMA) makes no prior assumptions about the character of the distribution but tends to be inconsistent. The Laplace approximation is stable but makes strong, and often inappropriate, assumptions about the shape of the posterior distribution. Here, I argue that the marginal likelihood can be reliably computed from a posterior sample using Lebesgue integration theory in one of two ways: 1) when the HMA integral exists, compute the measure function numerically and analyze the resulting quadrature to control error; 2) compute the measure function numerically for the marginal likelihood integral itself using a space-partitioning tree, followed by quadrature. The first algorithm automatically eliminates the part of the sample that contributes large truncation error in the HMA. Moreover, it provides a simple graphical test for the existence of the HMA integral. The second algorithm uses the posterior sample to assign probability to a partition of the sample space and performs the marginal likelihood integral directly. It uses the posterior sample to discover and tessellate the subset of the sample space that was explored and uses quantiles to compute a representative field value. When integrating directly, this space may be trimmed to remove regions with low probability density and thereby improve accuracy. This second algorithm is consistent for all proper distributions. Error analysis provides some diagnostics on the numerical condition of the results in both cases.

Citation

Download Citation

Martin D. Weinberg. "Computing the Bayes Factor from a Markov Chain Monte Carlo Simulation of the Posterior Distribution." Bayesian Anal. 7 (3) 737 - 770, September 2012. https://doi.org/10.1214/12-BA725

Information

Published: September 2012
First available in Project Euclid: 28 August 2012

zbMATH: 1330.62159
MathSciNet: MR2981634
Digital Object Identifier: 10.1214/12-BA725

Keywords: algorithm , Bayes factors , Bayesian computation , marginal likelihood , Model selection

Rights: Copyright © 2012 International Society for Bayesian Analysis

Vol.7 • No. 3 • September 2012
Back to Top