Discussion about this post

User's avatar
Fred Easey's avatar

As someone who has spent a lot of time working on A/B tests, the Bayesian approach sounds very appealing: "No more talk of p-values, confidence intervals, null hypotheses, power, minimum detectible effect, type one and type two errors. No more blank faces. No more embarrassing attempts to put the inexpressible into words!"

Where is a good place to start with that, could you recommend any good practical entry level books / courses to get started? (I'm more interested in the practicals than the hard maths)

Simon Raper's avatar

Hi Fred, it really is so worth it. I recently set up Bayesian A/B testing for an online fashion retailer and they were very happy.

The best place to start if you want a good but very accessible introduction to Bayesian statistics is chapter 11 of David Spiegelhalter's The Art of Statistics (the whole book is worth getting in any case.) Most of the effort involves understanding how the Bayesian approach differs from the frequentist approach (and why it is so much easier to explain). After that the code and the maths are relatively easy. I don't know what your preferred tools are but here's a link to a gist containing the python code for an A/B test for the difference between two proportions: https://gist.github.com/coppeliaMLA/9f2c0e4585e4fa88378cce9d09a14ba1

Shameless plug but I also do training and mentoring on this topic.

No posts

Ready for more?