Machine learning assisted Bayesian model comparison: learnt harmonic mean estimator

11/24/2021
by   Jason D. McEwen, et al.
0

We resurrect the infamous harmonic mean estimator for computing the marginal likelihood (Bayesian evidence) and solve its problematic large variance. The marginal likelihood is a key component of Bayesian model selection since it is required to evaluate model posterior probabilities; however, its computation is challenging. The original harmonic mean estimator, first proposed in 1994 by Newton and Raftery, involves computing the harmonic mean of the likelihood given samples from the posterior. It was immediately realised that the original estimator can fail catastrophically since its variance can become very large and may not be finite. A number of variants of the harmonic mean estimator have been proposed to address this issue although none have proven fully satisfactory. We present the learnt harmonic mean estimator, a variant of the original estimator that solves its large variance problem. This is achieved by interpreting the harmonic mean estimator as importance sampling and introducing a new target distribution. The new target distribution is learned to approximate the optimal but inaccessible target, while minimising the variance of the resulting estimator. Since the estimator requires samples of the posterior only it is agnostic to the strategy used to generate posterior samples. We validate the estimator on a variety of numerical experiments, including a number of pathological examples where the original harmonic mean estimator fails catastrophically. In all cases our learnt harmonic mean estimator is shown to be highly accurate. The estimator is computationally scalable and can be applied to problems of dimension 𝒪(10^3) and beyond. Code implementing the learnt harmonic mean estimator is made publicly available.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/30/2023

Learned harmonic mean estimation of the marginal likelihood with normalizing flows

Computing the marginal likelihood (also called the Bayesian model eviden...
research
05/15/2023

Easily Computed Marginal Likelihoods from Posterior Simulation Using the THAMES Estimator

We propose an easily computed estimator of marginal likelihoods from pos...
research
05/25/2022

Removing the fat from your posterior samples with margarine

Bayesian workflows often require the introduction of nuisance parameters...
research
10/01/2020

The h-index and the Harmonic Mean

The Harmonic Mean between the number of papers and the citation number p...
research
09/26/2018

Mean and dispersion of harmonic measure

In this note, we provide and prove exact formulas for the mean and the t...
research
10/30/2020

The transport of images method: computing all zeros of harmonic mappings by continuation

We present a novel continuation method to compute all zeros of a harmoni...
research
03/21/2017

Targeting Bayes factors with direct-path non-equilibrium thermodynamic integration

Thermodynamic integration (TI) for computing marginal likelihoods is bas...

Please sign up or login with your details

Forgot password? Click here to reset