Log inStart free
LESSON 15.C2 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

The bandit race

Watch four bandit strategies race on the same 5 arms.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 15.C2 · BANDIT BAY5 ARMS · BEST ARM 3 (0.7) · RUN 1
01
Stage 1 of 6 · Same luck
Four racers pull the same 5 arms of a multi-armed bandit. Each arm's k-th pull pays the same for all.
Explain it simply

The dashed marks are the hidden chances, and arm 3 is best at 0.7. Each row of squares is that arm's reward tape, and a filled square pays 1. Every racer reads the same tape in run 1. So the race is fair: only the choices differ, not the luck.

Five arms with hidden chances 0.2, 0.5, 0.7, 0.4, 0.6. Arm 3 is best. Run 1: four racers read one reward tape.

dashed box: hidden chancepullssettings, cursorregretmean of 3 runs
arm 10.2arm 20.5arm 30.7arm 40.4arm 50.6hidden chance (dashed)reward tape: pulls 1–20 of each arm15101520greedyε-greedyUCBThompsonthe 5 arms and the reward taperun 1arm 10.2arm 20.5arm 30.7arm 40.4arm 50.6hidden chance (dashed)reward tape: pulls 1–20 of each arm15101520greedyε-greedyUCBThompsonthe 5 arms and the reward taperun 1
Toy: 5 arms, 1,000 pulls, 3 seeded runs
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
P(r=1∣a)=μaP(\sy{r}{data}{r} = 1 \mid a) = \sy{mu}{ink}{\mu_a}
μ=(0.2,0.5,0.7,0.4,0.6),μ∗=μ3=0.7\mu = (0.2, 0.5, 0.7, 0.4, 0.6), \quad \mu^* = \mu_{3} = 0.7

A pull of arm a pays 1 with its hidden chance mu.

Common mix-ups

MYTHThe leader after 100 pulls wins the race.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01In run 1 with start guess 1, does greedy beat Thompson after 1,000 pulls?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.