Crates.io | bayestest |
lib.rs | bayestest |
version | 0.2.0 |
source | src |
created_at | 2021-10-15 20:28:56.261655 |
updated_at | 2024-07-11 05:29:50.069572 |
description | Bayesian A/B testing calculations for Rust |
homepage | |
repository | https://github.com/ankane/bayestest-rust |
max_upload_size | |
id | 465631 |
size | 20,003 |
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]
:
bayestest = "0.2"
use bayestest::BinaryTest;
let mut test = BinaryTest::new();
test.add(participants_a, conversions_a);
test.add(participants_b, conversions_b);
let probabilities = test.probabilities();
Supports up to 4 variants
use bayestest::CountTest;
let mut test = CountTest::new();
test.add(events_a, exposure_a);
test.add(events_b, exposure_b);
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:
git clone https://github.com/ankane/bayestest-rust.git
cd bayestest-rust
cargo test