ask-bayes

Crates.ioask-bayes
lib.rsask-bayes
version0.2.1
sourcesrc
created_at2022-02-19 20:49:30.281033
updated_at2022-02-21 04:50:18.45692
descriptionCLI tool for Bayesian inference
homepage
repositoryhttps://github.com/ChosunOne/ask-bayes
max_upload_size
id535383
size73,037
ChosunOne (ChosunOne)

documentation

https://docs.rs/ask-bayes

README

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.

Commit count: 15

cargo fmt