An agent has four actions with estimated values Q=(1,3,2,0) and uses ε-greedy with ε=0.2, where the random choice is uniform over all four actions. What is the probability of each action, and what is the expected estimated value of the chosen action?

Reinforcement learning, Exploration
Level L2 Elementary. Length Short. Nature Mat Mathematical.

What's being asked

Whether you know that the greedy action also gets a share of the random exploration probability.

Key idea

With ε-greedy over ∣A∣ actions, the greedy action has probability 1−ε+ε/∣A∣ and every other action has probability ε/∣A∣.

Steps

  1. Identify the greedy action: Q=(1,3,2,0), so it is action 2 (value 3).
  2. Exploration probability per action: ε/∣A∣=0.2/4=0.05.
  3. Greedy action probability: 1−0.2+0.05=0.85. The others each get 0.05. Check: 0.85+3×0.05=1.
  4. Expected value of the chosen action: 0.85×3+0.05 (1+2+0)=2.55+0.15=2.7.
  5. Cross-check with the mixture view: (1−ε)×3+ε×mean(Q)=0.8×3+0.2×1.5=2.4+0.3=2.7.

Common mistakes

How long your answer should be

4–5 lines.

Last checked on 4 December 2026.

Read this

Previous in Reinforcement learning: An agent receives reward +2 at every step forever, with γ=0.9. What is its return? How many steps does it take to collect at least 90% of that return, and what does this say about the "effective horizon" 1/(1−γ)?
Next in Reinforcement learning: An arm gives rewards 4, 2, 9 in its first three pulls. Compute the estimate Q3 using (a) the sample-average update with step 1/n, and (b) a constant step size α=0.5 starting from Q0=0. Why would you prefer (b) when the arm's reward distribution drifts over time?