nestcheck Maintainability

Nested sampling is a popular numerical method for Bayesian computation, which simultaneously generates samples from the posterior distribution and an estimate of the Bayesian evidence for a given likelihood and prior. nestcheck provides Python utilities for analysing samples produced by nested sampling, and estimating uncertainties on nested sampling calculations (which have different statistical properties to calculations using other numerical methods). This includes implementations of the diagnostic tests and plots described in:

To get started, see the installation instructions and the quickstart demo. More examples of nestcheck’s use can be found in the code used to make the results and plots in Higson et al. (2018b) at

Compatible nested sampling software

Currently nestcheck.data_processing has functions to load results from:

You can easily add input functions for other nested sampling software packages. Note that nestcheck requires information about the iso-likelihood contours within which dead points were sampled (“born”), which is needed to split nested sampling runs into their constituent single live point runs (“threads”); see Higson et al. (2018a) for more details. nestcheck is fully compatible with dynamic nested sampling, in which the number of live points is varied to increase calculation accuracy.


If nestcheck is useful for your academic research, please cite the three papers introducing the software and the methods it implements. The BibTeX is:

title={nestcheck: diagnostic tests for nested sampling calculations},
author={Higson, Edward and Handley, Will and Hobson, Mike and Lasenby, Anthony},
journal={arXiv preprint arXiv:1804.06406},

title={Sampling Errors in Nested Sampling Parameter Estimation},
author={Higson, Edward and Handley, Will and Hobson, Mike and Lasenby, Anthony},
journal={Bayesian Analysis},

title={nestcheck: error analysis, diagnostic tests and plots for nested sampling calculations},
author={Higson, Edward},
journal={Journal of Open Source Software},


The changelog for each release can be found at


Contributions are welcome! Development takes place on github:

When creating a pull request, please try to make sure the tests pass and use numpy-style docstrings.

If you have any questions or suggestions please get in touch (

Authors & License

Copyright 2018 Edward Higson and contributors (MIT Licence).