ArticleslgStudy

science

Markov decision process

Markov decision process is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Markov decision process rather than just read about it. In short: 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.

Markov decision process — main illustration
Markov decision process — illustration

Key takeaways

  • Markov decision process belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Markov decision process to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Markov decision process from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Markov decision process: Pole Balancing example (rendering of the environment from the Open AI gym benchmark)
Pole Balancing example (rendering of the environment from the Open AI gym benchmark)

Worked examples

Example 1 — a first encounter with Markov decision process

Start with the simplest possible case. Write down what Markov decision process claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Markov decision process before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Markov decision process ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Markov decision process

In research
Markov decision process appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Markov decision process in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Markov decision process is common in secondary-school and first-year university syllabi. It links to neighbouring topics Dynamic programming, Markov processes, Optimal decisions, so understanding it makes those chapters shorter.
In everyday life
Look for Markov decision process outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Markov decision process” →

How to study Markov decision process in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Markov decision process means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Markov decision process out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Markov decision process in simple terms?

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.

Why does Markov decision process matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Markov decision process?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Markov decision process.

Tags

  • Dynamic programming
  • Markov processes
  • Optimal decisions
  • Stochastic control

Keep exploring