Markov Decision Process

1 min read

An MDP is the formal framework for sequential decision-making under uncertainty.

Defined by the tuple (S,A,P,R,γ)(S, A, P, R, \gamma):

  • SS — set of states
  • AA — set of actions
  • P(ss,a)P(s'|s,a) — transition probability (dynamics): probability of reaching ss' from ss after action aa
  • R(s,a)R(s,a) — reward function: immediate reward for taking action aa in state ss
  • γ[0,1)\gamma \in [0,1) — discount factor: how much future rewards are worth relative to immediate

Markov property: the future depends only on the current state, not the history: P(st+1st,at)=P(st+1s0,a0,,st,at)P(s_{t+1}|s_t, a_t) = P(s_{t+1}|s_0, a_0, \dots, s_t, a_t)

Policy π(as)\pi(a|s): probability of taking action aa in state ss. The agent's strategy.

Return: total discounted reward from time tt: Gt=k=0γkRt+k+1G_t = \sum_{k=0}^{\infty}\gamma^k R_{t+k+1}

The goal: find policy π\pi^* that maximizes expected return Eπ[G0]\mathbb{E}_\pi[G_0].

Discount factor γ\gamma:

  • γ0\gamma \to 0: myopic, only cares about immediate reward
  • γ1\gamma \to 1: far-sighted, values future reward almost equally
  • Also ensures the infinite sum converges (if rewards are bounded)

See also: Value Functions, Bellman Equations, Dynamic Programming in RL

Linked from