Epsilon-Greedy Algorithm

mechanism

An epsilon-greedy strategy exploits the best-known option most of the time while permanently reserving a fixed share of choices for random exploration. It protects discovery from being crowded out by an early winner.

After finding your best option, you deliberately ignore it once in every five choices—and pick something at random. The apparent waste is intentional: an 80/20 epsilon-greedy policy spends 80% of its choices exploiting the leader and 20% searching elsewhere.

E1

Keep a discovery budget alive

The mechanism separates repeated decisions into two modes. Exploitation collects value from what currently looks best; exploration samples alternatives that might overturn that ranking. Epsilon fixes the probability of exploring, so success cannot quietly eliminate experimentation. Unlike an epsilon-decreasing strategy, the discovery budget does not automatically shrink with time.

That standing budget matters because “best-known” is not the same as best. Your observations may be incomplete, and a current winner can remain unchallenged simply because competing options receive no further trials. Random exploration keeps producing information, while the larger exploit share prevents learning from consuming the whole decision process.

E1

A fixed percentage can become the wrong percentage

Epsilon-greedy fixes the exploration rate instead of adapting it to consequences or accumulated knowledge. Twenty percent may be too timid when little is known, wasteful after the field is well understood, or dangerous when a random choice has serious downside. The mechanism supplies discipline, not the correct epsilon; that still depends on the cost of exploration.

Pre-commit the next ten choices

Choose one repeated, low-cost decision you normally make by habit. For its next ten occurrences, assign eight to your current best option and reserve two in advance for randomly selected alternatives. Record the result of every choice so exploration produces evidence rather than novelty alone.

Episodes that teach this