Solving the multi-armed bandit problem in WordPress
A static A/B test keeps sending half your traffic to the losing variation until someone stops the test. Thompson sampling moves the traffic as the numbers come in. Here is the Beta distribution behind it and how to store the state in WordPress.