In decision theory, a Markov decision process (MDP) is a mathematical model for sequential decision making when outcomes are uncertain. It is a type of stochastic decision process, and is often solved using the methods of stochastic dynamic programming. Originating from operations research in the 1950s, MDPs have since gained recognition in a variety of fields, including ecology, economics, healthcare, telecommunications and reinforcement learning. Reinforcement learning utilizes the MDP framework to model the interaction between a learning agent and its environment. In this framework, the interaction is characterized by states, actions, and rewards. The MDP framework is designed to provide a simplified representation of key elements of artificial intelligence challenges. This modeling framework incorporates the understanding of cause and effect, the management of uncertainty and nondeterminism, and the pursuit of explicit goals. The name comes from its connection to Markov chains, a concept developed by the Russian mathematician Andrey Markov. The "Markov" in "Markov decision process" refers to the underlying structure of state transitions that still follow the Markov property. The process is called a "decision process" because it involves making decisions that influence these state transitions, extending the concept of a Markov chain into the realm of decision-making under uncertainty.
Definition
A Markov decision process is a 4-tuple (S,A,Pa,Ra), where:
S is a set of states called the state space. The state space may be discrete or continuous, like the set of real numbers. A is a set of actions called the action space (alternatively, As is the set of actions available from state s). As for state, this set may be discrete or continuous. Pa(s,s′) is the probability that action a in state s at time t will lead to state s′ at time t+1. In general, this probability transition is defined to satisfy Pr(st+1∈S′∣st=s,at=a)=∫S′Pa(s,s′)ds′, for every S′⊆S measurable. In case the state space is discrete, the integral is intended with respect to the counting measure, so that the latter simplifies as Pa(s,s′)=Pr(st+1=s′∣st=s,at=a); in case S⊆ℝd, the integral is usually intended with respect to the Lebesgue measure. Ra(s,s′) is the immediate reward (or expected immediate reward) received after action a is taken to transition from state s to state s′. The reward is in general a random variable. A policy function π is a (potentially probabilistic) mapping from state space (S) to action space (A).
Optimization objective The goal in a Markov decision process is to find a good "policy" for the decision maker: a function π that specifies the action π(s) that the decision maker will choose when in state s. Once a Markov decision process is combined with a policy in this way, this fixes the action for each state and the resulting combination behaves like a Markov chain (since the action chosen in state s is completely determined by π(s)). The objective is to choose a policy π that will maximize some cumulative function of the random rewards, typically the expected discounted sum over a potentially infinite horizon:
E[∑t=0∞γtRat(st,st+1)] (where we choose at=π(st), i.e. actions given by the policy). And the expectation is taken over st+1∼Pat(st,st+1) where γ is the discount factor satisfying 0≤ γ ≤ 1, which is usually close to 1 (for example, γ=1/(1+r) for some discount rate r). A lower discount factor makes the decision maker more short-sighted, in that it comparatively disregards the effect that following its current policy has at times lying further in the future. Another possible, but strictly related, objective that is commonly used is the H−step return. This time, instead of using a discount factor γ , the agent is interested only in the first H steps of the process, with each reward having the same weight.
E[∑t=0H−1Rat(st,st+1)] (where we choose at=π(st), i.e. actions given by the policy). And the expectation is taken over st+1∼Pat(st,st+1) where H is the time horizon. Compared to the previous objective, the latter one is more used in Learning Theory. A policy that maximizes the function above is called an optimal policy and is usually denoted π∗. A particular MDP may have multiple distinct optimal policies. Because of the Markov property, it can be shown that the optimal policy is a function of the current state, as assumed above. When Ra(s,s′) is deterministic, there will always exist an optimal policy π∗ which is deterministic as well.
… excerpt ends here. Continue reading the full article.

