Monte Carlo & temporal-difference learning

Step 5 of 10 in Reinforcement Learning · Concept · Medium

Without a model, estimate values from experience: Monte Carlo waits for the episode's end; TD updates after each step using its own estimate (bootstrapping).

Build it

  1. MC vs TD on random walk

    Compare MC and TD(0) on the 5-state random walk from Sutton & Barto.

    Done when: RMS error curves reproduce the book's figure.

Case study: TD-Gammon (1992)

  • A neural net learned backgammon purely by TD self-play.
  • Reached near world-champion level and found new strategies humans adopted.
  • An early proof that RL + function approximation can beat experts.

Read the case study

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map