Bellman Optimization: Future Information, Present Decisions
How can an agent turn uncertain future rewards into a good decision now?
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.
What does Bellman backup actually do?
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
Which route should the delivery cart choose?
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
Is seeing the warehouse the same as choosing a route?
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
What must the cart know before it can decide?
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
Must an agent remember every earlier moment?
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
What can the cart do from the junction?
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
How does the agent turn a state into action probabilities?
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
What happens after the agent chooses an action?
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
Which uncertainty belongs to the agent, and which belongs to the world?
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
Why can the same shortcut succeed once and fail next time?
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
Why is one immediate reward not enough?
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
Should a distant reward count exactly as much as an immediate one?
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.
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
How does the future fold into a recursive equation?
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.
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
What is the shortcut worth on average?
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.
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
What is the junction worth under the current choice rule?
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.
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
How can one equation evaluate a fixed policy?
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
Why does information seem to flow backward?
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
How good is one specific action in this state?
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
What changes when we want the best policy, not a fixed policy?
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.
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
Where can the first useful value estimates come from?
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.