A multi-armed bandit is a sequential experiment that chooses among candidate system versions while learning which produces the highest business metric. Each version is an arm; each observed click, revenue event, or other measurement is feedback. The goal is not only to identify the best arm, but to route more measurements to it while the experiment runs. section 3.0 section 3.2
This reframes the cost of ordinary A/B testing. Equal randomization spends half its traffic on an underperforming version when one candidate is better. Simply stopping early can create false positives; a bandit instead changes the randomization procedure to preferentially select the arm with stronger realized results while continuing to explore alternatives. section 3.0 section 3.1.1
Epsilon-greedy is a practical bandit policy:
- Explore with probability epsilon by selecting an available arm at random. section 3.2
- Exploit otherwise by selecting the arm with the highest mean business metric observed so far. section 3.2
- Treat the current version and all proposed changes symmetrically; A, B, C, and later candidates are all arms. section 3.2
- Reduce epsilon over time and stop when it falls below a chosen threshold, balancing continued exploration against traffic cost. section 3.2
Choosing among click models
An ad selector can evaluate four click models with click-through rates increasing from 0.005 to 0.011. Under epsilon-greedy, random exploration still samples every model, but exploitation increasingly selects the model with the best observed mean CTR. In the simulation, arm 3 is learned as best and the overall achieved CTR reaches 0.0108, close to that arm’s 0.0110 CTR. section 3.2
Figure 3.11 The ad selector testing multiple click models—or “arms”—using epsilon-greedy. With probability 1-epsilon, the system chooses the model with the highest mean CTR so far. Otherwise (probability epsilon) the system chooses with equal probability from the available models.
This flow shows the operational decision at each measurement: choose the current highest-CTR model with probability 1 − epsilon, or explore uniformly with probability epsilon. section 3.2




