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]:

toml bayestest = "0.1"

Getting Started

Binary Outcomes

```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

Count Data

```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

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:

sh git clone https://github.com/ankane/bayestest-rust.git cd bayestest-rust cargo test