For on-policy linear TD(0) with features , show that the expected update is and that the fixed point is , where and . For the Markov reward process with , , and a single feature , what is , and how does it compare with the best least-squares fit of the true values under the stationary distribution?
Reinforcement learning, Function approximation
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can derive the TD fixed point, interpret it as a projected Bellman equation, and see that it differs from the best approximation of .
Key idea
The TD(0) fixed point solves , i.e. . It is the fixed point of the projected Bellman operator, . It is generally not the projection of the true values, although its error is within a factor of the best one.
Steps
- The update is with . Taking the expectation over the stationary distribution gives with and .
- Set the mean update to zero: , so . In matrix form and , where and is the stationary distribution.
- Stationary distribution of : and , so .
- With , only state 1 has a non-zero feature. , because state 1 moves to state 2, whose feature is . And .
- So and . This is self-consistent. The model can say nothing about state 2, so it predicts , and then .
- Best least-squares fit: minimise , which gives (). The weighted errors are for TD, and for the best fit.
- Check the bound . Since , it holds.
- Convergence needs to be positive definite. On-policy, , so . Off-policy, is not stationary for and this can fail, which is the source of the deadly triad.
Common mistakes
- Assuming TD converges to the least-squares fit of . That is the aim of Monte Carlo with linear approximation, not of TD.
- Using a distribution other than the stationary distribution of the policy in and . The result then changes and convergence may be lost.
- Forgetting that is not symmetric in general, so the update is not the gradient of any quadratic loss.
How long your answer should be
A page or more; 10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Reinforcement learning: Prove the performance difference lemma: for two policies and with , , where . What does it imply for policy improvement and for TRPO?
Next in Reinforcement learning: none