Skip to content

Command line utility for performing Bayesian inference

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

ChosunOne/ask-bayes

Ask Bayes

License docs.rs docs

Built with 🦀

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

From Cargo

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.