5.1.5 · D5Reinforcement Learning Foundations
Question bank — Bellman equations
Prerequisite ideas being tested: the MDP structure, the discount factor , Bootstrapping, and how these feed Dynamic Programming, Temporal Difference Learning, Q-Learning and Policy Gradient Methods.
True or false — justify
The Bellman expectation equation only holds at optimality
False — it holds for any fixed policy , optimal or terrible. It is just a self-consistency statement: value now = expected reward + discounted value next. Optimality adds a ; consistency does not require it.
and satisfy the same equation
False — averages over actions with weights , while takes . Same-looking bracket , but "average" vs "best" are different operators.
If the value function equals the expected immediate reward
True — with every future term for vanishes, so . The agent becomes myopic, caring only about the next step.
The Bellman equation requires the environment to be deterministic
False — it is written as an expectation precisely to absorb randomness: handles stochastic transitions and rewards. Determinism just collapses each sum to a single term.
Solving the Bellman expectation equation for all states is a linear-algebra problem
True — for a fixed the equations are linear in the unknowns , so they can be solved by matrix inversion. The optimality equation, with its , is not linear.
The Bellman optimality equation can have two different optimal value functions
False — is unique (it is the fixed point of a contraction for ). There can be many optimal policies, but they all share the same and .
is defined only for the action the optimal policy would take
False — is defined for every action: it is the value of taking now (possibly a bad choice) and acting optimally thereafter. Comparing these values is exactly how you recover the greedy optimal action.
Bootstrapping means we never need real reward samples
False — Bootstrapping means we reuse current value estimates for successor states, but each update still consumes a real reward . It mixes estimate-based and sample-based information.
Spot the error
Error: " is the Bellman equation."
Two errors — the discount is missing (returns can diverge), and there is no expectation, so it silently assumes a single deterministic successor. Correct: .
Error: "."
The optimal policy is deterministic and greedy, so is a , not an average. Writing it as a weighted sum over actions is the form; the optimality form is .
Error: ", and ."
The first line is fine, but the substitution for is wrong: at optimality , not a policy-weighted average. Mixing the expectation backup into the optimality equation breaks it.
Error: "Since rewards are bounded by , the return is bounded even with ."
For over an infinite horizon the geometric bound blows up. Boundedness of the return requires (or a guaranteed terminal state).
Error: "In Q-learning the target is using the same action ."
The optimality-based target uses over the next state's actions, not the previous action . Reusing would be the SARSA/expectation flavour, not the optimality backup that Q-Learning uses.
Error: "The expectation in is only over the environment's randomness."
It is over both the policy's action choices and the environment's transition/reward randomness. Dropping the policy randomness gives the wrong value for any stochastic .
Why questions
Why does the Bellman equation split the sum after exactly one step, not two
One step is enough to expose the recursion: everything after the first reward is itself a discounted value . Splitting further would just re-derive the same self-reference with extra clutter.
Why must (strictly) for the infinite-horizon guarantee
Strict inequality makes the geometric series converge and makes the Bellman operator a contraction, which is what guarantees a unique fixed point that iteration converges to.
Why is the optimal policy greedy with respect to but not necessarily greedy with respect to an arbitrary
already accounts for acting optimally forever after, so picking its argmax cannot be improved. A general assumes you keep following the possibly-suboptimal , so its greedy action may just be the best of a bad set.
Why do we need at all if we already have
ranks states but hides which action produced the value; to choose without a model you need , which ranks actions directly. That is why model-free methods like Q-Learning learn .
Why does the Bellman equation only work inside a Markov decision process
The recursion assumes the future depends on the present state alone (the Markov property). If history mattered, would not be a well-defined function of , and the one-step decomposition would be invalid.
Why is bootstrapping considered a strength and a risk at once
It lets Temporal Difference Learning update from a single step without waiting for an episode to end (strength), but it propagates errors in the current estimate into the target, so bad estimates can reinforce themselves (risk).
Why do Policy Gradient Methods not solve a Bellman optimality equation directly
They optimise the policy parameters by ascending an expected-return gradient rather than iterating a value backup. Bellman values often appear inside them (as baselines/critics), but the core update is gradient-based, not a fixed point.
Edge cases
What is for a terminal state
By convention it is : no future rewards can accrue once the episode ends, so there is nothing to discount forward. The recursion terminates there instead of referencing another successor.
What does the Bellman equation give if a state's only actions loop back to itself with reward
Self-reference solves to , the discounted geometric sum of getting forever. This is finite exactly because .
If every action from a state yields identical outcomes, do and agree there
Yes — with no distinguishing choice, the and the average collapse to the same single value, so the expectation and optimality equations coincide at that state.
What happens to the optimality equation if two actions tie for the maximum
The is still well-defined (both give the same value), so is unique. Multiple optimal policies exist; any tie-breaking rule among the maximisers is optimal.
If a policy never visits state , is meaningless
No — is defined as the return if you were placed in and then followed , regardless of whether ever reaches on its own. Visitation frequency affects learning, not the definition.
What is when leads only to a terminal state with reward
It equals just , since makes the discounted future term vanish. The action's value is exactly its immediate payoff.
For a deterministic MDP, does the expectation in the Bellman equation disappear
The averaging over collapses to one term, but the expectation over the policy's actions remains for (unless is also deterministic). Only when both policy and dynamics are deterministic does every sum become a single term.