In TD(0), the current estimate is . The agent moves from to with reward , and . With and , what are the TD target, the TD error and the updated ?
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 , where the TD error is . The TD target is an estimate of the return that uses the current value of the next state.
Steps
- Write the TD target: .
- Compute the TD error: . It is positive, so the state is better than we thought.
- Apply the update: .
- Explain why this "bootstraps". The target uses the estimate , which is itself learned, instead of waiting for the whole return as Monte Carlo does.
Common mistakes
- Using the new in the target. The target uses , the next state's value.
- Forgetting that is multiplied by , giving .
- For a terminal , forgetting to set .
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 , , in its first three pulls. Compute the estimate using (a) the sample-average update with step , and (b) a constant step size starting from . Why would you prefer (b) when the arm's reward distribution drifts over time?
Next in Reinforcement learning: In state the agent takes action with , gets reward and lands in , where and . The -greedy policy then picks the exploratory action . With and , compute the new under SARSA and under Q-learning. Why do they differ?