An MDP has non-terminal states A and B, and . In A, action gives reward and ends the episode. Action gives reward , and moves to B with probability or stays in A with probability . In B, action gives reward and ends the episode. Action gives reward and moves to A. Starting from , what are the results of three sweeps of value iteration, and then what are exactly and the optimal policy?
Reinforcement learning, Dynamic programming
Level L3 Intermediate. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can apply the Bellman optimality backup with stochastic transitions, and then solve for the exact fixed point.
Key idea
Value iteration applies to every state. It converges to because the backup is a -contraction.
Steps
- Sweep 1 (all ): , .
- Sweep 2. For A: . So . For B: , so .
- Sweep 3. For A: . So . For B: , so .
- Find . Guess that B takes , so , and check this in the next step. For A with : , so and . This beats 's value of .
- Check the B decision: would give . The optimal policy is in A and in B.
- Note the sequence for A: . The error in goes then , shrinking by a factor per sweep once is exact, which is consistent with contraction.
Common mistakes
- Using values when computing sweep 3. Each sweep must use the previous sweep's values only, if you use synchronous backups.
- Forgetting the stochastic average. The probability goes with the value of B and with the value of A.
- Writing . That ignores the chance of staying in A.
How long your answer should be
About a page, with a three-row table; 6–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Reinforcement learning: An MDP has two states X and Y and . In X, action gives reward and moves to Y, while action gives reward and stays in X. In Y, action gives reward and moves to X, while action gives reward and stays in Y. Run policy iteration from the policy " in X, in Y". What are the evaluation and improvement steps, and what are the optimal policy and values?
Next in Reinforcement learning: A Markov reward process has two states with transition matrix , expected rewards and . What is the Bellman equation in matrix form, what is its solution for , and why does a unique solution exist for any ?