MontePython 3: boosted MCMC sampler and other features
Thejs Brinckmann, Julien Lesgourgues
TL;DR
MontePython 3 introduces two key enhancements for cosmological parameter inference: an adaptive jumping-factor mechanism (superupdate) and an inverse Fisher-mmatrix-based proposal. Together, these substantially accelerate Metropolis-Hastings convergence, especially in high-dimensional or poorly constrained problems, while maintaining robustness across a wide range of datasets and likelihoods. The work demonstrates significant runtime savings in forecast scenarios and offers practical guidance on when to use Fisher-based initializations versus covariance updates, along with extensive documentation of new parametrisations, plotting options, and likelihoods to broaden applicability. Overall, these features streamline efficient, reliable cosmological parameter estimation and forecasting, with practical implications for large, complex likelihoods.
Abstract
MontePython is a parameter inference package for cosmology. We present the latest development of the code over the past couple of years. We explain, in particular, two new ingredients both contributing to improve the performance of Metropolis-Hastings sampling: an adaptation algorithm for the jumping factor, and a calculation of the inverse Fisher matrix, which can be used as a proposal density. We present several examples to show that these features speed up convergence and can save many hundreds of CPU-hours in the case of difficult runs, with a poor prior knowledge of the covariance matrix. We also summarise all the functionalities of MontePython in the current release, including new likelihoods and plotting options.
