Skip to content

Bayesian A/B testing calculations for C++

License

Notifications You must be signed in to change notification settings

ankane/bayestest-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BayesTest C++

Bayesian A/B testing calculations for C++

Based on this post by Evan Miller

Also available in Rust

Build Status

Installation

Include the header in your project

#include "bayestest.hpp"

Getting Started

Binary Outcomes

auto test = bayestest::BinaryTest();
test.add(participants_a, conversions_a);
test.add(participants_b, conversions_b);
auto probabilities = test.probabilities();

Supports up to 4 variants

Count Data

auto test = bayestest::CountTest();
test.add(events_a, exposure_a);
test.add(events_b, exposure_b);
auto 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-cpp.git
cd bayestest-cpp
g++ -std=c++11 -Wall -Wextra -Werror -o test/main test/main.cpp
test/main

About

Bayesian A/B testing calculations for C++

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages