Skip to content
/ abba Public

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

Notifications You must be signed in to change notification settings

infiton/abba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages