Skip to content
GabineteTools for thinking

No. 1000Product discovery and validation

Multi-Armed Bandit

Herbert Robbins · 1952

A rod of tilting brass pours almost all the beads into an overflowing amber cup, while a few blue beads continue to fall into the other three.

The table / Model card · No. 1000 · Product discovery and validation

Multi-Armed Bandit

An adaptive testing approach that shifts traffic toward better-performing options while still sampling the others.

The essentials

What it is

What it solves

How to pick the best of several options while testing, without wasting traffic on clearly inferior ones.

When to use it

Optimising ad creatives or email subject lines where the cost of showing a poor variant is real. Short-lived campaigns where a fixed A/B test would end too late. Many variants with a clear single metric. Recommendation slots that keep changing.

Where it comes from

The sequential allocation problem was studied earlier by William R. Thompson in 1933, and Herbert Robbins formalised the modern bandit problem in a 1952 paper on the sequential design of experiments. The name comes from slot machines, nicknamed one-armed bandits. It was developed in statistics and later used in clinical trials, advertising and web optimisation.

Herbert Ellis Robbins · 1952

How it works

Each option is an arm with an unknown payoff rate. The algorithm balances exploration, trying arms to learn their rates, against exploitation, giving more trials to the arm that looks best. Epsilon-greedy picks the leader most of the time and a random arm occasionally; UCB adds a bonus for uncertain arms; Thompson sampling draws from each arm's posterior and picks the highest draw. As evidence accumulates, traffic concentrates on the winner, which lowers the cost of testing but weakens classical significance statements.

You need

Several variants, one reward metric that arrives quickly, a traffic source and an algorithm choice.

You get

A traffic allocation that converges on the best variant, with estimated reward rates per arm.

Case

Illustrative case

Tidal Shoes wants to choose a Black Friday banner from four candidates. A fixed A/B/n test would give 25 percent of 200,000 visitors to each for a week. Instead the team runs Thompson sampling on click-to-cart rate with a daily update. After two days banner C leads at 4.1 percent against 2.9, 3.0 and 3.3 percent, and gets 62 percent of traffic. By day five it gets 85 percent. Compared with equal allocation the team estimates about 1,900 extra carts. They record that the p-value is not the same as in a classic test and confirm the winner with a short holdout the following week.

A fictional company used to explain the model.

Caution

When to avoid it

  • When you need clean causal estimates or confidence intervals for a decision.
  • When the metric arrives with long delay.
  • When behaviour drifts through time, unless the algorithm is built for it.

Common mistakes

  • Using it when the metric is slow or noisy.
  • Stopping too early on a lucky arm.
  • Reading results as a standard significance test.
  • Ignoring novelty effects or day-of-week patterns.

Known weaknesses

  • Weaker inference than a fixed randomised test
  • Needs a fast, reliable reward signal
  • Sensitive to time effects and drift
  • Harder to explain to stakeholders than A/B testing

How to apply it in 5 steps

How to apply it

Multi-Armed Bandit

5 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 5 steps
  1. Define the reward

    Pick one fast, measurable success metric.

  2. Set up the arms

    List variants and the initial traffic split.

  3. Choose an algorithm

    Select epsilon-greedy, UCB or Thompson sampling.

  4. Run and update

    Update estimates and reallocate traffic regularly.

  5. Validate the winner

    Check stability and confirm with a holdout before rolling out.

Which decisions it helps with

Decision profile

A tool to choose between options.

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIdentity

Type of tool
Other formatDoes not fit neatly into the available categories
Decision stage
Choose between existing options
Discipline
Marketing and sales

IIIResources required

  • TimeSeveral days
  • PeopleA small group (2 to 8)
  • DataQuantitative analysis
  • ExpertiseWorks best with a facilitator
  • Time horizonDays or weeks
  • ScopeA unit or department
  • FrequencyOccasionally

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionExecution
  • Top-downmixedBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsA flexible framework
  • Protect what we haveTake a risk
  • Improve what we haveFundamental change
  • Inside the organisationmixedOutside the organisation
  • Understand firstAct now

IVUseful when

  • The future is uncertain, and our plans keep falling apart
  • We have too many options and can’t decide which to choose

Applicable traits

  • How it compares optionsScores each option against criteria and adds up the scores
  • CriteriaUses one criterion or an overall impression
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

Thinking space

Product discovery and validation

They create product under uncertainty: discovery, design sprints, A/B experiments and small bets before building.

Membership: 38 % · also “Prioritising options” (33 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Verified sources

Use the arrow keys to move between sources.

Original work

  1. Thompson, W. R. (1933). On the likelihood that one unknown probability exceeds another in view of the evidence of two samples. Biometrika 25(3-4).Earliest treatment of allocating trials between two options from accumulating evidence; the 'multi-armed bandit' framing is usually dated to Robbins 1952, so the origin is partly disputed.View source: On the likelihood that one unknown probability exceeds another in view of the evidence of two samples (opens in a new tab) ↗

Key development

  1. Robbins, H. (1952). Some aspects of the sequential design of experiments. Bulletin of the American Mathematical Society 58(5).Formalised the modern multi-armed bandit problem.View source: Some aspects of the sequential design of experiments (opens in a new tab) ↗
  2. Lattimore, T. and Szepesvári, C. (2020). Bandit Algorithms. Cambridge University Press.Standard modern textbook on bandit algorithms.View source: Bandit Algorithms (opens in a new tab) ↗

Critique

  1. Wason, S. S. V. J. B. J. (2015). Multi-armed Bandit Models for the Optimal Design of Clinical Trials: Benefits and Challenges. Statistical Science 30(2).Shows bandit allocation assigns more patients to the better arm but has severe limitations in statistical power, and notes that little bandit theory has ever been used in real trial design.View source: Multi-armed Bandit Models for the Optimal Design of Clinical Trials: Benefits and Challenges (opens in a new tab) ↗

Wikipedia article (opens in a new tab) ↗