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

Why interaction data isn't IID

Watch an agent's own steps make linked, policy-shaped data.


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.06 · RL BAYP(UP) 0.7 · 48 STEPS · ENDS IN CELL 6
01
Stage 1 of 6 · One trajectory
The policy moves the agent up with probability 0.7. Each transition starts where the last one ended.
Explain it simply

Each dot is the agent's cell at one time step, from left to right. The agent moves one cell up or down, or stays put at a wall. So the next dot always sits on or next to the last one. This chain of steps is called a trajectory.

A column of 7 cells and a strip of 48 steps. The agent starts in cell 3 and ends in cell 6.

cells the agent visitspolicy and actionsmeans and long-run sharescells the log never saw
0123456step 01632470123456↑ 0.7↓ 0.3the log: the agent's cells, in time order0123456step 01632470123456↑ 0.7↓ 0.3the log: the agent's cells, in time order
Toy: a 7-cell column, 48 seeded steps per run
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
st+1=clip(st+at)\sy{s}{data}{s_{t+1}} = \mathrm{clip}(\sy{s}{data}{s_t} + \sy{a}{param}{a_t})
s47=clip(5+1)=6s_{47} = \mathrm{clip}(5 + 1) = 6

The next cell is this cell plus the action, kept inside the walls.

Common mix-ups

MYTHEach transition is a fresh, independent sample.

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

Predict, then reveal
3 CHECKS · PRO
Q01At P(up) 0.7, with batches of 4 steps, do the time-order batch means spread more or less?

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.