RL · demo
A little exploration beats pure greed on a 10-armed bandit
Sample demo. Pick ε and watch average reward diverge from the greedy policy on the classic 10-armed testbed.
Each run draws 10 arm means from ; rewards are the arm mean plus noise. The agent keeps sample-average estimates and acts greedily with probability .
Fig. 1Even ε = 0.1 overtakes greedy within a few hundred steps
source: in-browser simulation
Greedy locks onto whichever arm looked good first. Small ε keeps sampling the others often enough to find the best one.