popodds
Simple package for Bayesian model comparison.
Given samples from a posterior distribution inferred under some default prior, compute the Bayes factor or odds in favour of a new prior model.
Installation
pip install popodds
Usage
The package consists of the ModelComparison class to compute Bayes factors, and a wrapper function log_odds for simplicity.
The computation only requires a few ingredients:
modela new prior model or samples from it,priorthe original parameter estimation prior or samples from itsamplessamples from a parameter estimation run.
Optional:
model_boundsparameter bounds for the new prior model,prior_boundsparameter bounds for the original prior model,logcompute probability densities in log space,prior_oddsodds between the prior models, which defaults to unity,second_modelmodel to compute odds against instead of prior,second_boundsparameter bounds for the second model,detectablecompare between detectable rather than intrinsic populations.
Metadata
Release files for popodds 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| popodds-0.7.1.tar.gz | 6.3 kB | Without provenance | Details for popodds-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| popodds-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for popodds-0.7.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / popodds-0.7.1.tar.gz
| Download URL | popodds-0.7.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f1b80f548ef2d30950da3f1046899c45962c720bf5e6498e06fea6f5cc3ad71
|
|
BLAKE2b-256 checksum How to use checksums |
a8001d758e7c27a8d72377cb3076f232777247d0a504ce4fb13ef398929c07e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.18
|
Release files / popodds-0.7.1-py3-none-any.whl
| Download URL | popodds-0.7.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2067e249461f21e72a12397540bcc3cfbeefdd126d0847b1b2ee96a01dd7571
|
|
BLAKE2b-256 checksum How to use checksums |
52c8b916262fa4710651d976b4d5835232c6a7be46c79337a8ca8b70802283ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.18
|
Security for popodds 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.