Skip to main content

Simple package for Bayesian model comparison.

Project description

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.

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, e.g., samples from a simulation,
  • pe_samples samples from a Bayesian parameter estimation run,
  • pe_prior a function, prior evaluations, or prior samples corresponding to the original parameter estimation prior,
  • model_bounds optional parameter bounds for the new prior model,
  • pe_bounds optional parameter bounds for the original prior model,
  • prior_odds optional odds between the prior models, which defaults to unity.

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

popodds-0.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

popodds-0.0.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file popodds-0.0.4.tar.gz.

File metadata

  • Download URL: popodds-0.0.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for popodds-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7de1f3b7488bf912b27fe9a64e7fd79374d6abf23ab80549868971971731b4b7
MD5 8fb1888c8f0721224f3502e243a8c13f
BLAKE2b-256 2777334d600da640dc0119d9fbaebd4c210c6cf4e63bed6bace3fbeaead9571e

See more details on using hashes here.

File details

Details for the file popodds-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: popodds-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for popodds-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5972a5d926f87a0c7e6d46cfd54a3b48300f588e06d7e85a65c369973c48996f
MD5 55d758b4da6db1b6c5def4007a5c238f
BLAKE2b-256 956608e229161ad6a97564f1295eeae9c98b90804a8beb798c7dce6a1e906fbc

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