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
Sheet 2/4
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.
Sheet 3/4
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.
Sheet 4/4
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
01of 5
Step 1 of 5: Define the reward
Pick one fast, measurable success metric.
01
02of 5
Step 2 of 5: Set up the arms
List variants and the initial traffic split.
02
03of 5
Step 3 of 5: Choose an algorithm
Select epsilon-greedy, UCB or Thompson sampling.
03
04of 5
Step 4 of 5: Run and update
Update estimates and reallocate traffic regularly.
04
05of 5
Step 5 of 5: Validate the winner
Check stability and confirm with a holdout before rolling out.
05
Click to unfold
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
01
Define the reward
Pick one fast, measurable success metric.
02
Set up the arms
List variants and the initial traffic split.
03
Choose an algorithm
Select epsilon-greedy, UCB or Thompson sampling.
04
Run and update
Update estimates and reallocate traffic regularly.
05
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
The questionWhat kind of tool is it?Assessment · Other format · 57 %
Decision stage
Choose between existing optionsvery likely
The questionWhat stage of the decision are you at?Assessment · Choose between existing options · 100 %
Discipline
Marketing and salespossible
The questionWhich discipline does it come from?Assessment · Marketing and sales · 44 %
IIIResources required
TimeSeveral daysThe questionHow much time can you spend on this?Assessment · Several days · confidence 68 %
PeopleA small group (2 to 8)The questionHow many people will take part?Assessment · A small group (2 to 8) · confidence 62 %
DataQuantitative analysisThe questionWhat data do you have available?Assessment · Quantitative analysis · confidence 79 %
ExpertiseWorks best with a facilitatorThe questionDoes anyone have experience with methods like these?Assessment · Works best with a facilitator · confidence 73 %
Time horizonDays or weeksThe questionHow far ahead do you need to plan?Assessment · Days or weeks · confidence 99 %
ScopeA unit or departmentThe questionWho will this decision affect?Assessment · A unit or department · confidence 50 %
FrequencyOccasionallyThe questionIs this a one-off decision or something you expect to repeat?Assessment · Occasionally · confidence 91 %
IITen axes
The dot shows which end the model favours. A hollow dot means no clear preference.
DirectionExecutionThe questionAre you setting direction or improving day-to-day operations?Assessment · Execution · confidence 90 %
Top-downmixedBottom-upThe questionShould leadership set the direction, or should the answer come from the people doing the work?Assessment · no clear preference (probability is spread across several levels)
PeopleProcessesThe questionIs this mainly a people problem or a process problem?Assessment · Processes · confidence 97 %
Generate optionsNarrow down optionsThe questionDo you need to generate more options or narrow them down?Assessment · Mostly narrow down options · confidence 65 %
Step-by-step analysisIntuition and experienceThe questionWould you rather work through the evidence step by step or draw on the group’s experience?Assessment · Mostly analysis · confidence 65 %
A strict sequence of stepsA flexible frameworkThe questionWould you prefer a precise set of steps or a framework you can adapt?Assessment · Mostly a flexible framework · confidence 68 %
Protect what we haveTake a riskThe questionDo you need to protect what you have or take a chance on something new?Assessment · Mostly take risks · confidence 61 %
Improve what we haveFundamental changeThe questionDo you want to improve what you have or change it fundamentally?Assessment · Mostly incremental improvements · confidence 33 %
Inside the organisationmixedOutside the organisationThe questionWhere do you expect to find the answer, inside your organisation or in the market?Assessment · no clear preference (probability is spread across several levels)
Understand firstAct nowThe questionDo you need to understand the situation first or act now and learn as you go?Assessment · Mostly act now · confidence 67 %
IVUseful when
The future is uncertain, and our plans keep falling apartThe questionWhich of these situations sounds familiar?Assessment · a situation I face → useful · 97 %
We have too many options and can’t decide which to chooseThe questionWhich of these situations sounds familiar?Assessment · a situation I face → useful · 86 %
Applicable traits
How it compares optionsScores each option against criteria and adds up the scoresThe questionHow does it compare options?Assessment · Scores each option against criteria and adds up the scores · 67 %
CriteriaUses one criterion or an overall impressionThe questionDo you need to weigh several criteria at once?Assessment · Uses one criterion or an overall impression · 97 %
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.