epsilon

Better than A/B testing. Allows you to test multiple versions of a page and select the best version automatically.

npm install epsilon
12 downloads in the last week
15 downloads in the last month

epsilon Build Status

JQuery and Node Implementation of the epsilon greedy algorithm.

This project is based on the blog post by Steve Hanov, 20 lines of code that will beat A/B testing every time.

Epsilon will keep a track of the conversion rate of elements of your page. You can include multiple versions of a div on your page. Epsilon will chose the version with the best conversion rate 90% of the time. The other 10% Epsilon will chose a random version.

Installation

npm install epsilon

Server Setup

var epsilon = require('epsilon');

app.configure(function(){
  app.use(epsilon.middleware());
  epsilon.bind(app);
});

Client Setup

Include the epsilon client script in your html. This script is exposed automatically in the epsilon middleware.

<script type='text/javascript' src='epsilon/epsilon_greedy.js'/>

Creating a test

<div class='epsilon-test' data-testname='h1-color-test'>
  <div class='epsilon-lever' data-levername='red-h1'>
    <h1 style="color:red;">Buy Some Stuff</h1>
  </div>
  <div class='epsilon-lever' data-levername='blue-h1'>
    <h1 style="color:blue;">Buy Some Stuff</h1>
  </div>
  <a class='epsilon-reward' href='/checkout'>Check out</a>
</div>

Thanks to @JacksonTian for giving us the module name, Epsilon.

npm loves you