An agent receives reward at every step forever, with . What is its return? How many steps does it take to collect at least of that return, and what does this say about the "effective horizon" ?
Reinforcement learning, Returns and discounting
Level L2 Elementary. Length Short. Nature Mat Mathematical.
What's being asked
Whether you can sum a geometric series for the return and connect to how far ahead the agent effectively looks.
Key idea
For a constant reward , . The first steps give a fraction of this, so the discount factor sets a time scale of about steps.
Steps
- Write the return as a geometric series: .
- Use for . So .
- The sum of the first terms is , which is a fraction of .
- Set , so and . Hence steps. Check: (too big) and .
- Compare with . About steps carry a fraction of the return, and about to times that carries almost all of it. So the agent effectively looks about to steps ahead.
Common mistakes
- Applying the formula when in a continuing task. The series then diverges.
- Summing from instead of , which gives instead of .
- Reading as a hard cut-off. It is a time scale, not a cliff.
How long your answer should be
5–6 lines.
Last checked on 4 December 2026.
Read this
Previous in Reinforcement learning: An episode gives rewards , , , and then ends. With , compute the returns . Which recursion lets you compute them quickly?
Next in Reinforcement learning: An agent has four actions with estimated values and uses -greedy with , 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?