Skip to main content

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:

  • model a new prior model or samples from it,
  • prior the original parameter estimation prior or samples from it
  • samples samples from a parameter estimation run.

Optional:

  • model_bounds parameter bounds for the new prior model,
  • prior_bounds parameter bounds for the original prior model,
  • log compute probability densities in log space,
  • prior_odds odds between the prior models, which defaults to unity,
  • second_model model to compute odds against instead of prior,
  • second_bounds parameter bounds for the second model,
  • detectable compare 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)

Source distribution for popodds 0.7.1
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)

Table of built distributions (wheels) for popodds 0.7.1
File Interpreter ABI Platform Actions
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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page