popodds 0.6.2
pip install popodds==0.6.2
Newer version available (0.7.1)
Released:
Simple package for Bayesian model comparison.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT
- Author: Matthew Mould
- Requires: Python >=3.7
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.
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 itsamples
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.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT
- Author: Matthew Mould
- Requires: Python >=3.7
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
Built Distribution
File details
Details for the file popodds-0.6.2.tar.gz
.
File metadata
- Download URL: popodds-0.6.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db208c8010f470c79879bfd6ca9116dde2f0abf151ae0a926bbab8ffa73462cb |
|
MD5 | c8963dc243d10dacbbe255f697f024b2 |
|
BLAKE2b-256 | d2a137becd6feeac2d9a474a9881f060bc55d0fe4ef02731d00e1800c4895620 |
File details
Details for the file popodds-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: popodds-0.6.2-py3-none-any.whl
- Upload date:
- Size: 5.0 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 | 2a6700af347d35359a577b5107baf346d9b9f5a25dfcc2324c6dba87a36fb294 |
|
MD5 | db349c77c19a13be792208e2c2f4de0d |
|
BLAKE2b-256 | 8c62d479438984c4a00e6add8da37bfacfbb449c6a20f66120507106c580d68a |