5 releases

0.2.1 Feb 21, 2022
0.2.0 Feb 20, 2022
0.1.3 Feb 20, 2022

#576 in Science

MIT/Apache

36KB
868 lines

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.

Dependencies

~8–17MB
~208K SLoC