Crates.io | ask-bayes |
lib.rs | ask-bayes |
version | 0.2.1 |
source | src |
created_at | 2022-02-19 20:49:30.281033 |
updated_at | 2022-02-21 04:50:18.45692 |
description | CLI tool for Bayesian inference |
homepage | |
repository | https://github.com/ChosunOne/ask-bayes |
max_upload_size | |
id | 535383 |
size | 73,037 |
About
Ask Bayes is a simple command line tool for performing Bayesian inference. You can save your updates locally to preserve the latest priors for your hypotheses.
Installation
cargo install ask-bayes
Usage
Ask Bayes can be invoked like so:
ask-bayes -n Hypothesis-name -p 0.75 -l 0.75
which will output:
+-----------------------+-----------------------+--------------------+
| Name | Probability | Value |
+-----------------------+-----------------------+--------------------+
| Prior | P(Hypothesis-name) | 0.75 |
| Likelihood | P(E|Hypothesis-name) | 0.75 |
| Likelihood Null | P(E|¬Hypothesis-name) | 0.5 |
| Marginal Likelihood | P(E) | 0.6875 |
| Posterior Probability | P(Hypothesis-name|E) | 0.8181818181818182 |
+-----------------------+-----------------------+--------------------+
see ask-bayes --help
for more information.
License
This project is licensed under either of
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.