
The n-step return
The n-step return adds rewards and the discounted estimate at : where is the estimate available at time . If the episode ends before , the n-step return is the full return, . The update of moves its estimate toward the n-step return: The estimates of all other states stay the same. The update for has to wait until time , when and are known. With this is TD(0), and with at least as long as the rest of the episode it is constant- MC (Sutton & Barto, 2018).Choosing n
The n-step return has the error reduction property. If has a worst-case error of , the expected n-step return has a worst-case error of at most : A larger therefore reduces the bias that comes from the estimate. It also adds more random rewards to the target, which increases its variance. On random-walk tasks, intermediate values of learn faster than either end, TD(0) or MC (Sutton & Barto, 2018). The best depends on the task and on the step size.Optional: the λ-return
This section is optional. The rest of the chapter does not use it. Instead of choosing one , you can average the n-step returns for all . The λ-return weights the n-step return by , with :

References
- Sutton, R., Barto, A. (2018). Reinforcement Learning: An Introduction. Link
Found an error on this page? Report an issue.

