What is a Markov decision process?

A Markov decision process is a mathematical framework for sequential decision problems, defined by states, actions, transition probabilities and rewards, in which an agent picks actions to maximise long-term reward.

It is also called an MDP. An MDP defines the problem formally, while reinforcement learning algorithms such as Q-learning search for its solution. The Markov property says the next state depends only on the current state and action, with history adding nothing.

Topic
Machine learning, models and training
Also known as
MDP
Origin
1957, Richard Bellman

How a Markov decision process works

  1. A set of states defines where the agent can be; a set of actions defines what it can do.
  2. Transition probabilities state, for each state and action, which state follows with what probability.
  3. A reward function scores each transition; a discount factor below one favours near rewards over distant ones.
  4. A policy is the rule choosing an action in each state; the goal is the policy maximising expected discounted total reward.

In more detail

Formal definition and the Bellman equations

Formally, an MDP is a tuple of states, actions, transition probabilities, rewards and a discount factor; optimal policies satisfy the Bellman optimality equations, which relate a state's value to immediate reward plus the discounted expected value of subsequent states. Dynamic programming (value or policy iteration) solves this when transitions and rewards are known, while RL approximates it from interaction when they are unknown.

Partial observability (POMDP) and state representation

Real enterprise systems, such as transformer diagnostics with noisy sensors or multi-turn customer support, are rarely fully observable; they are often partially observable MDPs (POMDPs). Ignoring hidden state variables violates the Markov property unless recent observations or belief distributions are folded into the state representation.

Reward hacking and constrained MDPs

Maximising an imperfect reward function often triggers reward hacking, for example, a maintenance agent deferring repairs just past a reporting window or an LLM learning verbose, sycophantic answers. Constrained MDPs (CMDPs) address safety-critical requirements by enforcing hard bounds on risk or cost alongside reward maximisation.

Commonly confused terms

TermHow it differs
Multi-armed banditA multi-armed bandit is a single-step (stateless) decision problem where an action's reward does not alter future states, whereas an MDP models sequential decisions where each action influences future states and long-term rewards.

Why a Markov decision process matters for on-premises AI

Framing in-house sequential decisions such as maintenance scheduling or resource allocation as an MDP clarifies the data, rewards and safety limits they need. Aligning language models with human feedback is also set up as an MDP: the state is the text so far, the action the next token and the reward the evaluation of the response. The same thinking guides multi-step agent design.

ON-PREMISES EXAMPLE

An energy company frames transformer maintenance as an MDP: the state is equipment age and readings, the action is maintain or wait, the reward is minus the sum of failure and maintenance costs; the policy is found in simulation and applied with engineers' approval.

Common questions

What does the Markov property mean?

That the next state depends only on the current state and chosen action. If history matters, it is added to the state definition so the property holds.

How do language models relate to MDPs?

In reinforcement learning alignment, text generation is modelled as an MDP: the state is the current text, the action the next token and the reward the score the response receives.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.