In TD(0), the current estimate is V(s)=0.5. The agent moves from s to s′ with reward r=1, and V(s′)=2. With γ=0.9 and α=0.1, what are the TD target, the TD error and the updated V(s)?

Reinforcement learning, Temporal-difference learning
Level L2 Elementary. Length Short. Nature Mat Mathematical.

What's being asked

Whether you can apply the TD(0) update and name its parts.

Key idea

The TD(0) update is V(s)←V(s)+α δ, where the TD error is δ=r+γV(s′)−V(s). The TD target r+γV(s′) is an estimate of the return that uses the current value of the next state.

Steps

  1. Write the TD target: r+γV(s′)=1+0.9×2=2.8.
  2. Compute the TD error: δ=2.8−0.5=2.3. It is positive, so the state is better than we thought.
  3. Apply the update: V(s)←0.5+0.1×2.3=0.73.
  4. Explain why this "bootstraps". The target uses the estimate V(s′), which is itself learned, instead of waiting for the whole return as Monte Carlo does.

Common mistakes

How long your answer should be

3–4 lines of arithmetic.

Last checked on 4 December 2026.

Read this

Previous 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?
Next in Reinforcement learning: In state s the agent takes action a with Q(s,a)=1, gets reward 0 and lands in s′, where Q(s′,a1)=3 and Q(s′,a2)=5. The ε-greedy policy then picks the exploratory action a1. With α=0.5 and γ=0.9, compute the new Q(s,a) under SARSA and under Q-learning. Why do they differ?