Q-Learning & Exploration (epsilon-greedy)
In One Sentence
Learning the expected future value Q(s, a) of every state-action pair, using occasional random moves (epsilon) to discover better strategies.
ELI5 (Intuition)
Keep a scorecard of how good each move was in each situation. Usually pick the highest score, but sometimes (
epsilon) try a random door just in case there's a better prize behind it.ELI18 (Technical)
Off-policy temporal-difference update: \[Q(s,a) \leftarrow Q(s,a) + \alpha\big(r + \gamma \max_{a'} Q(s',a') - Q(s,a)\big).\] Watch out for initialization bias: if unvisited \(Q = 0\) while real rewards are negative,
argmax gets tricked into chasing unvisited bad actions.In Practice
Deep Q-Networks (DQN) power classic Atari agents and discrete ad-bidding / routing policies, while contextual bandits (1-step Q-learning) drive online recommendation and UI experimentation.