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
Release history Release notifications | RSS feed
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.6.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file popodds-0.0.6.tar.gz
.
File metadata
- Download URL: popodds-0.0.6.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e96ff6ff650a5c7a9fd6282e9435dcb57de817f256265dd8c4727845887987db |
|
MD5 | 0aa43b15d938366009ea23db4a3a0abc |
|
BLAKE2b-256 | b7d505f4f1ca3c7e7481f40d5033ffab88ac0d168ec82197cdf75281b0a259c1 |
File details
Details for the file popodds-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: popodds-0.0.6-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2618bda74335e2c63ebc5a6972370c6478c62bd08d1edcb62cfda7a15539d799 |
|
MD5 | 58e2d6e207ca3d3d8b3efe9e1b2e076e |
|
BLAKE2b-256 | 215acc6a09b81cb11565d4798908e1f6b7c0c8a3574d4505d802b4fee4a92de1 |