Skip to content

Bayesian A/B testing calculations for Rust

License

Notifications You must be signed in to change notification settings

ankane/bayestest-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BayesTest Rust

Bayesian A/B testing calculations for Rust

Based on this post by Evan Miller

Also available in C++

Build Status

Installation

Add this line to your application’s Cargo.toml under [dependencies]:

bayestest = "0.2"

Getting Started

Binary Outcomes

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

Count Data

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

History

View the changelog

Contributing

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

About

Bayesian A/B testing calculations for Rust

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages