Chapter 2: Markov Decision Processes (MDPs)
Definition of MDP
A Markov Decision Process (MDP) is a mathematical framework used for modeling decision-making situations where outcomes are partly random and partly under the control of a decision-maker. MDPs are used to model problems that involve making a sequence of decisions, with the goal of maximizing some notion of cumulative reward.
Formal Representation of MDP
An MDP can be formally represented by a tuple (S,A,P,R,γ), where:
- States (S): The set of all possible states of the environment or the system.
- Actions (A): The set of all possible actions an agent can take.
- Transition Probability (P): The probability P(s′∣s,a) that action a in state s will lead to state . Formally, .
- Reward Function (R): A function R:S×A→R that gives the immediate reward received after transitioning from state s to state s due to action .
- Discount Factor (γ): A factor γ∈[0,1) that represents the difference in importance between future rewards and present rewards. A γ of 0 makes the agent short-sighted by only considering immediate rewards, while a γ approaching 1 will make it strive for long-term high reward.
Bellman Equation
The Bellman Equation is a fundamental recursive decomposition describing the relationship between the value of a state and the value of subsequent states. It provides a way to compute the optimal policy for decision-making.
For expected utility V(s) of state s, the Bellman equation is given by:
V(s)=a∈Amax
Here, the term inside the bracket calculates expected return after first taking action a, then following an optimal policy.
Finite vs Infinite Horizon MDPs
- Finite Horizon MDPs: The decision process stops after a fixed number of steps (horizon length). Objectives are functions of the states and actions encountered up to that horizon.
- Infinite Horizon MDPs: The decision process continues indefinitely. These MDPs focus on optimizing either total or average rewards over an infinite number of steps.
Solving an MDP
-
Policy Evaluation: Calculate the value function for a given policy π, which maps states to actions. The goal is to determine how good a policy is.
The evaluation is given by:
V
The solutions to MDPs aim to find an optimal policy, defined as the policy that maximizes cumulative reward over the decision process.
Conclusion
Markov Decision Processes provide a robust framework for modeling decision-making problems under uncertainty. By understanding their fundamentals—states, actions, rewards, transitions, and the Bellman equation—we can make informed decisions to compute optimal policies using techniques like policy evaluation, iteration, and value iteration.