https://doi.org/10.1140/epjp/s13360-020-00390-z
Regular Article
Information gains from Monte Carlo Markov Chains
Department of Physics, Bu-Ali Sina University, Hamedan, Iran
* e-mail: mehrabi@ipm.ir
Received:
2
October
2019
Accepted:
7
April
2020
Published online:
2
May
2020
In this paper, we present a novel method to compute the relative entropy as well as the expected relative entropy using an MCMC chain. The relative entropy from information theory can be used to quantify differences in posterior distributions of a pair of experiments. In cosmology, the relative entropy has been proposed as an interesting tool for model selection, experiment design, forecasting and measuring information gain from subsequent experiments. In contrast to Gaussian distributions, these quantities are not available analytically and one needs to use numerical methods to estimate them which are computationally very expensive. We propose a method and provide its python package to estimate the relative entropy as well as expected relative entropy from an MCMC sample. We consider the linear Gaussian model to check the accuracy of our code. Our results indicate that the relative error is below 0.2% for sample size larger than in the linear Gaussian model. In addition, we study the robustness of our code in estimating the expected relative entropy in the Gaussian case.
© Società Italiana di Fisica and Springer-Verlag GmbH Germany, part of Springer Nature, 2020