LESSON 15.C4 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
MC vs TD vs n-step — the bias–variance of returns
One random walk, three targets: see each one trade bias against variance.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 15.C4 · RETURNS BAYTD 0.45 · 4-STEP 0.33 · MC 0.43
01
Stage 1 of 6 · Three targets
Each row reads real moves, then the guess V. TD reads 1 move, the 4-step return reads 4, MC reads all 9.
Explain it simply
The top strip is episode 1, a walk from C to the right end. Each row builds a target for the value of C. The TD row uses one real move, then trusts the guess for the next state. The Monte Carlo row waits for the end and uses no guess.
Episode 1 is C B A B C B C D E, then the right end. The TD target is 0.450, the 4-step return is 0.328 and the MC return is 0.430.
states of the walktargets, means and the guess Vbias, variance and errorstep size αtrue value
Toy: the 7-state random walk, γ 0.9, 100 walks, 20 runs × 10 episodes
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Add n real rewards, then the guess V, scaled by γ to the n.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 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.