Log inStart free
LESSON 15.07 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

MDP components

Watch a 4×4 gridworld become a full MDP, one part at a time.


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/mo
EXPLAINER · 15.07 · MDP BAY16 STATES · 4 ACTIONS · 64 PAIRS
01
Stage 1 of 6 · States and actions
An MDP has a state space of 16 cells. The action space holds 4 moves in every cell.
Explain it simply

Each cell is one state, so the grid has 16 states. In every cell the agent can move up, right, down or left. Sixteen is a finite count. A real position, such as x 1.37 and y 2.62, has endless possible values. The grid puts it in cell 9.

A 4 by 4 grid of 16 cells. The agent in cell 5 has 4 arrows: up, right, down and left. A point at x 1.37, y 2.62 lies in cell 9.

stateschances, slides, γgoal rewardpitice tile
012345ice6ice789ice10ice11pit121314ice15goal(1.37, 2.62)MDP = (S, A, P, R, ρ₀, γ)states S16 cells, finiteactions A4: up, right, down, leftstate–action pairs16 × 4 = 64position (x, y)real numbers: infinite(1.37, 2.62) falls incell 9states and actions|S| = 16, |A| = 4012345ice6ice789ice10ice11pit121314ice15goal(1.37, 2.62)MDP = (S, A, P, R, ρ₀, γ)states S16 cells, finiteactions A4: up, right, down, leftstate–action pairs16 × 4 = 64position (x, y)real numbers: infinite(1.37, 2.62) falls incell 9states and actions|S| = 16, |A| = 4
Toy: the 15.C1 gridworld, 16 cells, 1 goal, 1 pit, 5 ice tiles
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
M=(S,A,P,R,ρ0,γ)M = (\sy{S}{data}{\mathcal{S}}, \mathcal{A}, \sy{P}{param}{P}, \sy{R}{out}{R}, \sy{rho}{param}{\rho_0}, \sy{g}{param}{\gamma})
∣S∣⋅∣A∣=16⋅4=64|\mathcal{S}| \cdot |\mathcal{A}| = 16 \cdot 4 = 64

An MDP has six parts: states, actions, kernel, reward, start and discount.

Common mix-ups

MYTHAny summary of the position works as the state.

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 is 0, how many next cells can right from cell 10 reach?

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 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.