What is a Markov decision process, what are its components, and what objective does an agent optimise?

Reinforcement learning, Markov decision processes
Level L1 Beginner. Length Short. Nature Th Theoretical.

What's being asked

Whether you can name the parts of an MDP and say what "Markov" means, before any algorithm.

Key idea

An MDP is a tuple (S,A,P,R,γ) in which P(s′∣s,a) depends only on the current state and action. The agent chooses a policy π(a∣s) to maximise the expected discounted return Gt=∑k≥0γkrt+k+1.

Steps

  1. List the components: states S, actions A, transition probabilities P(s′∣s,a), reward function R(s,a) (or R(s,a,s′)), and discount factor γ∈[0,1).
  2. State the Markov property: P(st+1∣st,at,st−1,at−1,… )=P(st+1∣st,at). The current state summarises the whole history.
  3. Define a policy π(a∣s) (deterministic or stochastic) and the return Gt=rt+1+γrt+2+γ2rt+3+….
  4. State the objective: find π∗ that maximises Vπ(s)=Eπ[Gt∣st=s] in every state.
  5. Give a one-line example: a robot on a grid, where states are cells, actions are moves, and the reward is +1 at the goal and 0 elsewhere.

Common mistakes

How long your answer should be

4–6 sentences, with the tuple written out.

Last checked on 4 December 2026.

Read this

Previous in Reinforcement learning: Why do we use a discount factor γ<1 in reinforcement learning?
Next in Reinforcement learning: What is the difference between on-policy and off-policy learning, and why might you want to learn off-policy?