Quantile parametrization for probability distribution functions.
In a scientific inference we typically seek to characterize the posterior probability density function (PDF) for our parameter(s), which means we need to find a suitable, calculable approximation to it. Popular choices include an ensemble of samples, a histogram estimator based on those samples, or (in 1 dimensional problems) a tabulation of the PDF on a regular parameter grid. qp is a python package that supports these approximations, as well as the “quantile parameterization” from which the package gets its name.
The scipy.stats package provides an interface to many probability distributions for parameterized analytic forms (e.g., Gaussians, LogNormal Distributions, etc...) qp
extends that functionality to numerically-evaluated forms, such as the histograms and interpolated grids mentioned above.
Here are some example notebooks to help new users explore qp
functionality.
Also the read the docs page has significantly more information: Read the Docs
- Alex Malz (NYU)
- Phil Marshall (SLAC)
- Eric Charles (SLAC)
- Sam Schmidt (UC Davis)
The code in this repo is available for re-use under the MIT license, which means that you can do whatever you like with it, just don't blame us. If you end up using any of the code or ideas you find here in your academic research, please cite us as Malz et al, ApJ 156 1 35
. If you are interested in this project, please do drop us a line via the hyperlinked contact names above, or by writing us an issue. To get started contributing to the qp
project, just fork the repo - pull requests are always welcome!