Bandits Lab

Watch strategies learn which slot machine pays best, and what each loses while learning. Or plan an A/B test: see whether a fixed 50/50 split or shifting traffic to the winner costs fewer sales.

Race the strategies

Lower is better. The dashed line is the best any strategy can do in the long run.

Machines

Strategies

Strategy settings

Same algorithms as the Python library, run in your browser. The random numbers differ, so results match the Python on average, not run for run.

    Regret is how many wins you gave up compared with always playing the best arm (± is the standard error over runs). The slope is fitted over the last 90% of rounds; an optimal strategy's slope approaches C as the rounds grow.

    Plan an A/B test

    Simulates the next few weeks hundreds of times and runs three ways of splitting your traffic on each.

    How much better are the variants?
    Test settings

    “Auto” uses the smallest positive lift you entered (or half the ± range). Defaults are the Python tool's defaults.