Skip to content

Instantly share code, notes, and snippets.

# create figure form matplotlib.pyplot
fig = plt.figure()
# make global min/max for the whole array,
# so colour scale will be consistent between the frames
data_min = np.nanmin(full_data_panel.values)
data_max = np.nanmax(full_data_panel.values)
# create iterator
data_frames_iterator = full_data_panel.iteritems()
@stucchio
stucchio / bayesian_ab_test.py
Last active April 2, 2023 03:17
Bayesian A/B test code
from matplotlib import use
from pylab import *
from scipy.stats import beta, norm, uniform
from random import random
from numpy import *
import numpy as np
import os
# Input data