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.1.0.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file popodds-0.1.0.tar.gz
.
File metadata
- Download URL: popodds-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d49c573f83b9bb6ed74a0f22dac47afd2dc5fe76c0224700657fb832b34dc7ca |
|
MD5 | 05b7984e607180084a31bbb3a48710a2 |
|
BLAKE2b-256 | 8d28f84d110c7b85e1bd4d2f03508e1efa53d4cbee31b615401606a30a01ac85 |
File details
Details for the file popodds-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: popodds-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 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 | 89e0175e95d25e7966580b2145daf852b6ce5ef3ddaf7faa9b56d7bccf4012d3 |
|
MD5 | 91dec4edcc9b7eebe99d95f221ce69a4 |
|
BLAKE2b-256 | faa26a8c393864986b47d8d838a6fb7f01ca9a04c33a4d962bef1fb2eb8bbe8e |