Skip to main content

No project description provided

Project description

qp

Quantile parametrization for probability distribution functions.

GitHub release (latest SemVer) GitHub Workflow Status Read the Docs

Motivation

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.

Examples

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

People

License, Contributing etc

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qp_prob-0.9.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

qp_prob-0.9.1-py3-none-any.whl (122.8 kB view details)

Uploaded Python 3

File details

Details for the file qp_prob-0.9.1.tar.gz.

File metadata

  • Download URL: qp_prob-0.9.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for qp_prob-0.9.1.tar.gz
Algorithm Hash digest
SHA256 d7c1b325d8a28f5f0270b278edbb14e21853ec041e471c75563c2821f8a62268
MD5 930398aa54ad0c804437015a01af899e
BLAKE2b-256 440e4471476dde1937cf3598803cfe2b06471494554e391ceaa6666c4a192a64

See more details on using hashes here.

File details

Details for the file qp_prob-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: qp_prob-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 122.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for qp_prob-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dbdf74d5b300cce9a37db74259ceaa42f5accb57a3184959a62a9b843f9e715e
MD5 e255582a6dc8bb4b7efdda84d66aa9d7
BLAKE2b-256 06e53de9a8ea5a0f6293c7000d4dfb17e6f7b167b68e23afd308c80b3f09bf0d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page