VISUAL LESSON · 20 PICTURES

Bellman Optimization: Future Information, Present Decisions

How can an agent turn uncertain future rewards into a good decision now?

MODULE 6 / 6LESSON 1 / 1PICTURE 1 / 20
Progress stays on this device · no login
BEFORE THE FIRST PICTURE

How this lesson unfolds.

Begin with What does Bellman backup actually do? The sequence then connects A warehouse decision gives the mathematics a job and builds toward Value estimates need not begin from zero.

Picture 1 of 20 · tap to inspect in full resolution
01

What does Bellman backup actually do?

INTUITION

A Bellman backup looks one transition ahead, summarizes possible future outcomes, and uses that summary to update the value assigned to the current situation.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionA warehouse decision gives the mathematics a job
Picture 2 of 20 · tap to inspect in full resolution
02

Which route should the delivery cart choose?

INTUITION

At a warehouse junction, a cart can take a safe aisle or a risky shortcut; each choice can lead to different rewards and future states.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionPerception and decision are different problems
Picture 3 of 20 · tap to inspect in full resolution
03

Is seeing the warehouse the same as choosing a route?

INTUITION

Perception extracts useful information from observations; decision-making uses that information to choose an action that serves an objective.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionA state summarizes what matters now
Picture 4 of 20 · tap to inspect in full resolution
04

What must the cart know before it can decide?

INTUITION

The state can encode location, battery, parcel status, and known blockage—information needed to predict relevant consequences of the next action.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionThe Markov property is about sufficiency
Picture 5 of 20 · tap to inspect in full resolution
05

Must an agent remember every earlier moment?

INTUITION

A Markov state contains enough present information that the next-state distribution depends on the current state and action, not on additional history.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionActions are choices available in a state
Picture 6 of 20 · tap to inspect in full resolution
06

What can the cart do from the junction?

INTUITION

From state s, the agent selects an action a; here the action set contains the safe aisle and the shortcut.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionA policy is a choice rule
Picture 7 of 20 · tap to inspect in full resolution
07

How does the agent turn a state into action probabilities?

INTUITION

A stochastic policy pi(a|s) assigns probabilities to actions in a state; the example chooses the safe aisle with 0.6 and shortcut with 0.4.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionThe environment returns reward and next state
Picture 8 of 20 · tap to inspect in full resolution
08

What happens after the agent chooses an action?

INTUITION

The environment produces an immediate reward r and a next state s-prime, forming the transition tuple (s, a, r, s-prime).

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionPolicy and environment probabilities differ
Picture 9 of 20 · tap to inspect in full resolution
09

Which uncertainty belongs to the agent, and which belongs to the world?

INTUITION

The policy pi(a|s) describes which action the agent selects; p(s-prime,r|s,a) describes how the environment responds after that action.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionOne action can lead to several outcomes
Picture 10 of 20 · tap to inspect in full resolution
10

Why can the same shortcut succeed once and fail next time?

INTUITION

A stochastic transition model can give the shortcut a 0.7 chance of return 8 and a 0.3 chance of return -5; probability describes repeated uncertainty, not a promise.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionReturn measures the whole future journey
Picture 11 of 20 · tap to inspect in full resolution
11

Why is one immediate reward not enough?

INTUITION

The return G_t aggregates rewards received after time t, so it evaluates the future journey rather than only the next transition.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionDiscounting controls how much later rewards count
Picture 12 of 20 · tap to inspect in full resolution
12

Should a distant reward count exactly as much as an immediate one?

INTUITION

The discount factor gamma weights later rewards by increasing powers; with gamma 0.9, an immediate -1 followed by 10 one step later gives return -1 + 0.9 times 10 = 8.

MATHEMATICAL STATEMENT
  1. The discount factor gamma weights later rewards by increasing powers; with gamma 0.9, an immediate -1 followed by 10 one step later gives return -1 + 0.9 times 10 = 8.
  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionThe return contains a smaller return
Picture 13 of 20 · tap to inspect in full resolution
13

How does the future fold into a recursive equation?

INTUITION

Separating the first reward from the remaining discounted rewards gives G_t = R_(t+1) + gamma G_(t+1), the recursive structure behind Bellman equations.

MATHEMATICAL STATEMENT
  1. Separating the first reward from the remaining discounted rewards gives G_t = R_(t+1) + gamma G_(t+1), the recursive structure behind Bellman equations.
  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionExpectation compresses uncertain futures
Picture 14 of 20 · tap to inspect in full resolution
14

What is the shortcut worth on average?

INTUITION

With return 8 at probability 0.7 and return -5 at probability 0.3, the shortcut's expected return is 0.7 times 8 plus 0.3 times -5, which equals 4.1.

MATHEMATICAL STATEMENT
  1. With return 8 at probability 0.7 and return -5 at probability 0.3, the shortcut's expected return is 0.7 times 8 plus 0.3 times -5, which equals 4.1.
  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionState value averages return under a policy
Picture 15 of 20 · tap to inspect in full resolution
15

What is the junction worth under the current choice rule?

INTUITION

If the policy chooses the safe aisle with probability 0.6 and shortcut with probability 0.4, then v_pi(s) = 0.6 times 6.2 plus 0.4 times 4.1 = 5.36.

MATHEMATICAL STATEMENT
  1. If the policy chooses the safe aisle with probability 0.6 and shortcut with probability 0.4, then v_pi(s) = 0.6 times 6.2 plus 0.4 times 4.1 = 5.36.
  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionBellman expectation replaces the long future with next-state value
Picture 16 of 20 · tap to inspect in full resolution
16

How can one equation evaluate a fixed policy?

INTUITION

The Bellman expectation equation averages immediate reward plus discounted next-state value over policy choices and environment outcomes.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionA backup updates the present from successor values
Picture 17 of 20 · tap to inspect in full resolution
17

Why does information seem to flow backward?

INTUITION

A backup looks forward to successor outcomes, computes their probability-weighted target, and writes that summary back into the present state's estimate.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionAction value attaches value to a state-action pair
Picture 18 of 20 · tap to inspect in full resolution
18

How good is one specific action in this state?

INTUITION

Q_pi(s,a) is the expected immediate reward plus discounted next-state value after taking action a in state s and then following policy pi.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionOptimality chooses the best action
Picture 19 of 20 · tap to inspect in full resolution
19

What changes when we want the best policy, not a fixed policy?

INTUITION

The Bellman optimality equation maximizes over actions; at the example junction, max(6.2, 4.1) = 6.2, so the optimal choice is the safe aisle.

MATHEMATICAL STATEMENT
  1. The Bellman optimality equation maximizes over actions; at the example junction, max(6.2, 4.1) = 6.2, so the optimal choice is the safe aisle.
  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionValue estimates need not begin from zero
Picture 20 of 20 · tap to inspect in full resolution
20

Where can the first useful value estimates come from?

INTUITION

An agent can initialize or shape learning using simulation, demonstrations, or prior training, then refine its value estimates through interaction in the target environment.

  • Helpful foundationsbasic probability · weighted averages · functions and variables
  • Next connectionContinue to value iteration, policy iteration, and Q-learning.