Multi-armed bandit
Also called: multi-armed bandit testing, bandit test, MAB
Last updated:
A multi-armed bandit is a test that moves traffic toward whichever variation is performing best while the test is still running. The name comes from a gambler facing a row of slot machines, the old one-armed bandits, and deciding which ones to play. Sticking with the machine that has paid best so far is called exploitation. Every pull spent on a different machine to learn what it pays is exploration, and a bandit algorithm is a rule for dividing pulls between them. In a product test the arms are variations. Each visitor is one pull, and the payout is whatever you count as success, a signup or a purchase, say. Herbert Robbins wrote down the version of the problem still analyzed today in 1952.
Multi-armed bandit vs A/B test
How bandit algorithms decide
When a bandit beats an A/B test
Running a bandit on feature flags
What a reweight does to your users
Want the full picture? Read the concept guide: Analytics & experimentation integration →
Related terms
A/B testing
A/B testing serves two variations to randomly assigned groups of users and measures which one performs better on a chosen metric, turning a product decision into a controlled experiment instead of a guess.
Experimentation
Experimentation is the practice of making product decisions from controlled experiments: running A/B and multivariate tests, measuring outcomes against a hypothesis, and shipping the version the data supports rather than the one with the loudest advocate.
Multivariate testing
Multivariate testing compares more than two variations at once (often combinations of several changes) to find which performs best, extending an A/B test beyond a single either/or split.
Try it in your own app
The Free plan covers 10 flags and 2 environments. No credit card, no demo call — sign up and ship.