Compute a discounted return
Keep a steady rhythm through each period. · 135 words
A return combines rewards collected over time. Imagine an immediate reward of two and a reward of six on the next step. Discount that next reward by one half. Its contribution becomes three, giving a return of five. Discounting lets an agent weigh rewards at different times according to a chosen rule.
Compare two choices. One gives an immediate reward of four and nothing later. The other gives nothing now and a reward of six one step later. With a discount of one half, the first has return four and the second has return three. If the discount changes to one, the second becomes preferable. The rewards themselves stayed fixed. The rule for valuing delay changed which choice looked better. State the discount and the timing of each reward whenever you compare two candidate policies.
Check your recall
What is the return if the next reward is eight?
Check your answer
Two plus half of eight equals six.
Sources and credits
Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.