[Paper Review] Computing the Bayesian Factor from a Markov chain Monte Carlo Simulation of the Posterior Distribution
This paper proposes two robust, numerically stable algorithms—Nested Likelihood Approximation (NLA) and Volume-Weighted Approximation (VTA)—to compute the marginal likelihood from MCMC posterior samples, overcoming the instability of the harmonic mean approximation and the strong assumptions of the Laplace approximation. The key contribution is reliable Bayes factor estimation without restrictive shape assumptions on the posterior, validated through numerical tests showing superior performance over existing methods.
Computation of the marginal likelihood from a simulated posterior distribution is central to Bayesian model selection but is computationally difficult. I argue that the marginal likelihood can be reliably computed from a posterior sample by careful attention to the numerics of the probability integral. Posing the expression for the marginal likelihood as a Lebesgue integral, we may convert the harmonic mean approximation from a sample statistic to a quadrature rule. As a quadrature, the harmonic mean approximation suffers from enormous truncation error as consequence . In addition, I demonstrate that the integral expression for the harmonic-mean approximation converges slowly at best for high-dimensional problems with uninformative prior distributions. These observations lead to two computationally-modest families of quadrature algorithms that use the full generality sample posterior but without the instability. The first algorithm automatically eliminates the part of the sample that contributes large truncation error. The second algorithm uses the posterior sample to assign probability to a partition of the sample space and performs the marginal likelihood integral directly. This eliminates convergence issues. The first algorithm is analogous to standard quadrature but can only be applied for convergent problems. The second is a hybrid of cubature: it uses the posterior to discover and tessellate the subset of that sample space was explored and uses quantiles to compute a representive field value. Neither algorithm makes strong assumptions about the shape of the posterior distribution and neither is sensitive outliers. [abridged]
Motivation & Objective
- To address the instability and inaccuracy of the harmonic mean approximation (HMA) in estimating marginal likelihood from MCMC samples.
- To overcome the strong parametric assumptions of the Laplace approximation that limit its applicability to general posterior distributions.
- To develop numerically stable, general-purpose algorithms for marginal likelihood estimation that work across diverse models, including high-dimensional and non-elliptical posteriors.
- To provide a practical, consistent method for computing Bayes factors in Bayesian model selection using only posterior MCMC samples.
- To offer a framework for reliable model comparison in complex, real-world problems where traditional methods fail due to numerical instability.
Proposed method
- Formulates the marginal likelihood as a Lebesgue integral and reinterprets the harmonic mean approximation as a quadrature rule with inherent truncation error due to poor sample space coverage.
- Introduces the Nested Likelihood Approximation (NLA), which uses a binary space partitioning (BSP) tree, specifically a kd-tree, to identify a well-sampled subset Ωₛ of the parameter space where the posterior density is significant, and computes the integral only over Ωₛ to reduce truncation error.
- Develops the Volume-Weighted Approximation (VTA), a hybrid cubature method that partitions the parameter space based on the MCMC sample, assigns probabilities to cells via quantiles, and computes the marginal likelihood directly using volume-weighted field values.
- Uses the posterior sample to guide the tessellation of the parameter space, ensuring that regions of high posterior density are well-represented and reducing bias from sparse sampling.
- Employs a step function approximation to the indicator function in the integral (eq. 13–16), with potential for improvement via low-order polynomial fitting per cell to enhance accuracy.
- Recommends a combined use of NLA and VTA as a consistency check to validate marginal likelihood estimates, minimizing risk of failure in complex or high-dimensional problems.
Experimental results
Research questions
- RQ1Can the harmonic mean approximation be stabilized and improved by reinterpreting it as a quadrature rule with controlled truncation error?
- RQ2How can the marginal likelihood be reliably estimated from MCMC samples without assuming a specific parametric form for the posterior distribution?
- RQ3What role does the spatial coverage of the MCMC sample play in the accuracy of marginal likelihood estimation?
- RQ4Can adaptive, non-parametric integration techniques outperform traditional methods like the Laplace approximation in high-dimensional or multimodal posteriors?
- RQ5How do the proposed algorithms (NLA and VTA) compare in terms of bias, variance, and robustness across different model complexities and prior distributions?
Key findings
- The harmonic mean approximation fails due to high sensitivity to rare, low-likelihood samples with significant prior probability, which act as outliers and dominate the estimate.
- The NLA algorithm reduces truncation error by restricting integration to a well-sampled subset Ωₛ of the parameter space, identified via a kd-tree partitioning of the MCMC sample.
- The VTA algorithm performs direct integration over a tessellated parameter space using posterior-derived cell probabilities and representative field values, eliminating convergence issues present in HMA.
- Numerical tests show that both NLA and VTA outperform both the harmonic mean approximation and the Laplace approximation in terms of bias and variance across test problems.
- The VTA is preferred over NLA due to its lack of a truncation threshold h∗, intrinsic stability, and consistent performance even in high-dimensional spaces.
- The combined use of NLA and VTA is recommended as a robust consistency check to ensure reliable marginal likelihood estimation in practice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.