Project

abba

0.0
No commit activity in last 3 years
No release in over 3 years
Bayesian A/B Testing
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.8
~> 10.0
 Project Readme

ABBA(yesian Testing) - A/B Testing with Bayesian inference

Quick Start

gem install abba

Basic usage:

require 'abba'

ab_test = ABBA::ABTest.new(
  variant_a: {successes: 10, failures: 10},
  variant_b: {successes: 10, failures: 10}
)

# get the probability that A is the best variant
ab_test.choose_a? # => 0.5

# get the probability that B is the best variant
ab_test.choose_b? # => 0.5

# get both probabilities [prob_a, prob_b] that A or B is the best variant
ab_test.probabilities # => [0.5, 0.5]