ADVANCEDFrequently Tested 4 min read 3 views
Markov Decision Processes (MDP), Bellman Equations & Q-Learning (RL)
Discounted Markov Decision Processes, Bellman Expectation vs Optimality equations, Value Iteration vs Policy Iteration convergence, and On-Policy SARSA vs Off-Policy Q-Learning.
1. Solving Known MDPs: Value Iteration vs Policy Iteration
An MDP is defined by where bounds infinite-horizon discounted return .
| Planning Method | Per-Iteration Step | Time per Iteration | Exact Convergence |
|---|---|---|---|
| Value Iteration | Non-linear Bellman optimality update | $\mathcal{O}( | S |
| Policy Iteration | (1) Linear Policy Evaluation + (2) Greedy Policy Improvement | $\mathcal{O}( | S |
2. Model-Free Reinforcement Learning: SARSA vs Q-Learning
When transition probabilities and rewards are unknown, the agent learns directly from experience tuples :
- SARSA (On-Policy TD Control): Uses the actual next action chosen by the current -greedy policy (in the classic Cliff Walking environment, SARSA learns the safer upper path away from the cliff because it accounts for -random slips!).
- Q-Learning (Off-Policy TD Control): Uses regardless of exploratory behavior, converging directly to (the shortest optimal path right along the cliff edge!).
Key Formulas Summary
Bellman Optimality Equations for V*(s) and Q*(s, a)
Note: Discount factor gamma in [0, 1) makes the Bellman backup a gamma-contraction in L_infinity norm!
Tabular Q-Learning Temporal-Difference (TD) Update
Note: Off-policy: learns optimal Q* even while following an exploratory epsilon-greedy behavior policy!
#Artificial Intelligence#Reinforcement Learning#MDP#Bellman Equation#Q-Learning#SARSA
Practice Questions on This Chapter (2)
Q1GATE DA RLMCQMEDIUM
+2M β’ -0.67
In tabular Q-Learning with learning rate and discount factor , suppose . Taking action in yields immediate reward and transitions to , where . What is the updated ?
β‘ Click an option above to verify instantly
Q2GATE DA RLMCQEASY
+1M β’ -0.33
An agent receives a constant reward of on every step () forever in an infinite-horizon MDP with discount factor . What is the total discounted return ?
β‘ Click an option above to verify instantly