Inferensys

Glossary

Markov Decision Process (MDP)

A Markov Decision Process (MDP) is a mathematical framework for modeling sequential decision-making problems, defined by a set of states, actions, transition probabilities, and rewards, where the future state depends only on the current state and action.
Governance lead reviewing model governance framework on laptop, policy documents visible, executive office setup.
FOUNDATIONAL FRAMEWORK

What is Markov Decision Process (MDP)?

A Markov Decision Process (MDP) is the foundational mathematical framework for modeling sequential decision-making under uncertainty, central to reinforcement learning and planning algorithms.

A Markov Decision Process (MDP) is a formal, discrete-time stochastic control model defined by the tuple (S, A, P, R, γ). It consists of a set of states (S), a set of actions (A), a transition probability function (P) dictating the next state given a state-action pair, a reward function (R) providing immediate feedback, and a discount factor (γ) that weights future rewards. The core Markov property asserts that the future state depends only on the current state and action, not the full history.

The objective within an MDP is to find an optimal policy (π)—a mapping from states to actions—that maximizes the expected cumulative discounted reward. This is solved by computing value functions, like the state-value function V(s) or action-value function Q(s,a), which estimate long-term returns. Algorithms such as value iteration and policy iteration are used for planning when the model (P and R) is known, while model-free reinforcement learning methods like Q-learning are employed when it is unknown.

MATHEMATICAL FRAMEWORK

Core Components of an MDP

A Markov Decision Process (MDP) provides a formal structure for sequential decision-making under uncertainty. Its five core components define the problem an agent must solve.

01

State Space (S)

The State Space is the set of all possible configurations of the environment. A state s ∈ S is a complete description that satisfies the Markov Property: the future is independent of the past given the present. In robotics, a state could be the robot's joint angles and object positions. States can be discrete (e.g., board positions in chess) or continuous (e.g., velocity and position).

02

Action Space (A)

The Action Space is the set of all possible moves or decisions the agent can make from a given state. An action a ∈ A(s) transitions the agent between states. Actions can be discrete (e.g., 'move left', 'grasp') or continuous (e.g., a torque vector). The design of the action space is critical; a poorly defined space can make learning intractable. Hierarchical actions, like the Options Framework, provide temporal abstraction.

03

Transition Function (P)

The Transition Function, or dynamics model P(s' | s, a), defines the probability of transitioning to state s' after taking action a in state s. It encapsulates the environment's stochasticity. In Model-Based Reinforcement Learning (MBRL), the agent learns an approximation of this function. Ensemble Dynamics use multiple models to estimate uncertainty, which is crucial for robust planning and exploration.

04

Reward Function (R)

The Reward Function R(s, a, s') provides a scalar feedback signal defining the agent's goal. It is the primary mechanism for specifying desired behavior. The agent's objective is to maximize the expected cumulative sum of discounted future rewards. Designing a reward function that aligns with complex goals is a major challenge (reward shaping). Intrinsic Motivation methods create internal rewards (e.g., for novelty) to drive exploration when external rewards are sparse.

05

Discount Factor (γ)

The Discount Factor γ ∈ [0, 1] determines the present value of future rewards. A value of 1 makes the agent consider all future rewards equally (infinite horizon), while a value of 0 makes it myopic, caring only about the immediate reward. It ensures the infinite sum of rewards is finite and allows the agent to trade off short-term versus long-term gains. It is a hyperparameter that influences the optimal policy.

06

Policy (π) & Value Functions (V, Q)

While not a formal component of the MDP tuple, the solution is defined by:

  • Policy (π): A strategy mapping states to actions π(a|s). Can be deterministic or stochastic.
  • State-Value Function V^π(s): The expected return starting from state s and following policy π.
  • Action-Value Function Q^π(s, a): The expected return after taking action a in state s and thereafter following π. These functions are central to algorithms like Monte Carlo Tree Search (MCTS) and are used to evaluate and improve policies.
FOUNDATIONAL FRAMEWORK

How Markov Decision Processes Work

A Markov Decision Process (MDP) is the foundational mathematical framework for modeling sequential decision-making under uncertainty, forming the theoretical backbone of reinforcement learning and planning algorithms.

A Markov Decision Process (MDP) is a discrete-time stochastic control process that provides a formal framework for modeling decision-making where outcomes are partly random and partly under the control of a decision-maker. It is defined by the tuple (S, A, P, R, γ), where S is a set of states, A is a set of actions, P defines transition probabilities, R is a reward function, and γ is a discount factor. The core Markov property asserts that the future state depends only on the present state and action, not the full history.

Solving an MDP involves finding an optimal policy—a mapping from states to actions—that maximizes the expected cumulative discounted reward. This is achieved through algorithms like value iteration or policy iteration, which compute a value function estimating the long-term utility of each state. MDPs are extended to Partially Observable MDPs (POMDPs) for environments with hidden states and form the basis for model-based reinforcement learning, where an agent learns or is given the dynamics model (P and R) to plan ahead via simulation.

PRACTICAL DOMAINS

MDP Applications and Examples

Markov Decision Processes provide the mathematical backbone for sequential decision-making across diverse fields, from robotics and gaming to industrial operations and finance.

COMPARATIVE ANALYSIS

MDP vs. Related Frameworks

This table compares the core mathematical framework of a Markov Decision Process (MDP) to related and extended frameworks used in sequential decision-making, highlighting key distinctions in observability, state representation, and planning methodology.

Feature / DimensionMarkov Decision Process (MDP)Partially Observable MDP (POMDP)Model-Based RL (General)Options Framework

Core Definition

Mathematical framework for sequential decision-making under certainty.

Extension of MDP for decision-making under perceptual uncertainty.

Class of RL algorithms that learn an explicit dynamics model.

Formalism for temporal abstraction within RL/MDPs.

State Observability

Core State Representation

Fully observable, discrete or continuous state s_t.

Belief state b_t (distribution over possible states).

Learned latent state z_t or predicted next state ŝ_{t+1}.

Option-specific policy π_o and termination condition β.

Planning Mechanism

Dynamic programming, policy/value iteration.

Planning in belief space (e.g., with a belief MDP).

Rollouts/simulations using the learned model.

Hierarchical planning over options and primitive actions.

Primary Challenge Addressed

Finding an optimal policy given known dynamics.

Maintaining and updating belief under uncertainty.

Improving sample efficiency via model use.

Learning and planning over extended time scales.

Typical Use Case

Classic control problems with full state info (e.g., gridworld).

Robotics, dialogue systems, sensor-based applications.

Sample-efficient RL in simulated or stable environments.

Hierarchical RL for complex, long-horizon tasks.

Key Algorithm Examples

Value Iteration, Policy Iteration, Q-Learning.

QMDP, POMCP, SARSOP.

Dyna, MuZero, Dreamer (RSSM).

Option-Critic, Intra-Option Q-Learning.

Relation to MDP

Base framework.

Generalization (MDP is a POMDP with perfect obs.).

Algorithmic approach that can use an MDP model.

Formal structure built on top of an MDP.

MARKOV DECISION PROCESS (MDP)

Frequently Asked Questions

A Markov Decision Process (MDP) is the foundational mathematical framework for modeling sequential decision-making under uncertainty. These questions address its core components, applications, and relationship to modern AI systems like world models and reinforcement learning.

A Markov Decision Process (MDP) is a formal mathematical framework for modeling sequential decision-making problems where outcomes are partly random and partly under the control of a decision-maker. It provides the theoretical bedrock for reinforcement learning (RL) and planning algorithms. An MDP is defined by the 5-tuple (S, A, P, R, γ):

  • S: A set of states representing possible configurations of the environment.
  • A: A set of actions available to the agent.
  • P(s' | s, a): The state transition probability function, defining the probability of moving to state s' from state s after taking action a. This embodies the Markov property, meaning the future state depends only on the present state and action, not the full history.
  • R(s, a, s'): The reward function, specifying the immediate scalar feedback received after transitioning from s to s' via action a.
  • γ (gamma): The discount factor (0 ≤ γ ≤ 1), which determines the present value of future rewards, encouraging the agent to prioritize near-term gains. The agent's goal is to find a policy π(a|s)—a mapping from states to actions—that maximizes the expected cumulative discounted reward, known as the return.
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.