Log inStart free
LESSON 15.10 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Bellman equations

Watch one cell's value come from a one-step look ahead.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 15.10 · VALUE BAYVπ(10) 0.64 · Vπ(0) 0.51
01
Stage 1 of 5 · Value map
Each cell shows its value: the expected discounted return from there under the policy. Cell 10 is worth 0.64.
Explain it simply

Each cell holds one number, its value. It is the reward you can expect from that cell if you keep following the arrows. Rewards that come later count less. Cell 10, the ice tile next to the pit, is worth 0.64.

A 4 by 4 grid of values under the example policy. Cell 0 is worth 0.51. Cell 10 is worth 0.64.

cellspolicy, chances, γvalues, goalpit, lossesice tile
00.5110.5620.5130.4640.5650.6360.5770.5180.6690.73100.6411pit −1120.76130.85140.9415goal +1values under the example policyVπ(10) = 0.64 · Vπ(0) = 0.5100.5110.5620.5130.4640.5650.6360.5770.5180.6690.73100.6411pit −1120.76130.85140.9415goal +1values under the example policyVπ(10) = 0.64 · Vπ(0) = 0.51
Toy: the 15.C1 gridworld, 16 cells, exact values
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Vπ(s)=Eπ[∑tγt rt+1  ∣  s0=s]\sy{V}{out}{V^{\pi}}(\sy{s}{data}{s}) = \mathbb{E}_{\sy{pi}{param}{\pi}}\Big[\sum_{t} \sy{g}{param}{\gamma}^{t}\, \sy{r}{out}{r_{t+1}} \;\Big|\; s_0 = s\Big]
Vπ(10)=0.644V^{\pi}(10) = 0.644

A cell's value is the expected discounted return from that cell.

Common mix-ups

MYTHThe expectation equation uses each cell's best move.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If the slip chance rises from 0.2 to 0.4, does the best value of cell 10 go up or down?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.