Bayesian A/B testing calculations for Rust
Based on this post by Evan Miller
Also available in C++
Add this line to your application’s Cargo.toml
under [dependencies]
:
toml
bayestest = "0.1"
```rust use bayestest::BinaryTest;
let mut test = BinaryTest::new(); test.add(participantsa, conversionsa); test.add(participantsb, conversionsb); let probabilities = test.probabilities(); ```
Supports up to 4 variants
```rust use bayestest::CountTest;
let mut test = CountTest::new(); test.add(eventsa, exposurea); test.add(eventsb, exposureb); let probabilities = test.probabilities(); ```
Supports up to 3 variants
View the changelog
Everyone is encouraged to help improve this project. Here are a few ways you can help:
To get started with development:
sh
git clone https://github.com/ankane/bayestest-rust.git
cd bayestest-rust
cargo test