Log inStart free
LESSON 15.09 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Value functions and advantage

Watch returns become values, then compare each move with the policy's mean.


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

Go Pro · $8.25/mo
EXPLAINER · 15.09 · VALUE BAYSOFT · π(DOWN | 10) 0.70
01
Stage 1 of 6 · Policy kinds
A deterministic policy picks one action in each cell. A stochastic policy gives each action a chance.
Explain it simply

The arrows show the policy, the rule that picks a move in each cell. The example policy is deterministic: it always makes the same move. The soft policy makes that move 7 times in 10, and each other move once in 10. The random policy makes every move equally often.

Policy arrows in every cell for the soft policy. Bars show the chances in cell 10: down gets 0.70.

episodespolicy chancesreturns, values above 0values below 0, pitice tile
the policy in every cellπ(a | s) in cell 10pit −1goal +10123456789101112131415example↑0→0↓1.00←0soft↑0.10→0.10↓0.70←0.10random↑0.25→0.25↓0.25←0.25the policy in every cellπ(a | s) in cell 10pit −1goal +10123456789101112131415example↑0→0↓1.00←0soft↑0.10→0.10↓0.70←0.10random↑0.25→0.25↓0.25←0.25
Toy: the 15.C1 gridworld, γ 0.9, 3 policies, exact values
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
π(a∣s)=P(at=a∣st=s)\sy{pi}{param}{\pi}(a \mid s) = P(a_t = a \mid s_t = s)
π(⋅∣10)=(0.10, 0.10, 0.70, 0.10)\pi(\cdot \mid 10) = (0.10,\ 0.10,\ 0.70,\ 0.10)

π gives the chance of each action in each state.

Common mix-ups

MYTHA cell's value belongs to the grid alone.

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

Predict, then reveal
3 CHECKS · PRO
Q01Under the random policy, is V(0) higher or lower than under the soft policy?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 2 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.