Markov decision process
A Markov decision process is a mathematical model of sequential decision-making defined by states, actions, probabilistic transitions, and rewards, with future dynamics depending on the current state and action.
Optimization Algorithms: AI techniques for design, planning, and control problems
A Markov decision process is a model of sequential decision-making defined by states, actions, transition probabilities, and rewards with future dynamics dependent only on the current state and action.
- How it is used
- Frames sequential optimization as an environment in which actions affect future states and an agent seeks a high-reward policy.
- How deep it goes
- Explains the transition condition and works through states, actions, rewards, and policies using an agent–environment loop.
- Examples
- Uses uncertain commute times to illustrate transitions and identifies routing and dispatch as optimization applications.
- What you can do after
- Evaluate/understand whether a sequential decision problem needs states and future consequences when framing it for reinforcement learning.
Reinforcement Learning from Human Feedback
A Markov decision process is a mathematical framework that models states, actions, rewards, and probabilistic transitions for sequential decision making under the Markov property.
- How it is used
- Frames reinforcement learning as sequential decision making over states, actions, rewards, and transitions.
- How deep it goes
- Defines finite-MDP objectives, returns, value functions, and rollout estimates, then connects them to policy-gradient updates.
- Examples
- Uses RLHF prompts and completions, token-level actions and prefixes, PPO advantages, and sampled trajectories as concrete formulations.
- What you can do after
- Evaluate/understand how RL objectives represent trajectories, estimate returns, weight states, and update policies from sampled experience.
Read how Reinforcement Learning from Human Feedback explains Markov decision process →
Transformers in Action
A Markov decision process is a mathematical model for sequential decision-making in which an agent selects actions in states, receives rewards, and undergoes probabilistic transitions.
- How it is used
- Frames reinforcement-learning alignment as sequential decision-making before introducing proximal policy optimization.
- How deep it goes
- Defines stochastic control, five components, state-based policies, uncertainty, and reward maximization without developing PPO.
- Examples
- Uses portfolio construction and a dog-training obstacle course to illustrate uncertain sequential decisions and reward maximization.
- What you can do after
- Evaluate sequential decision problems by identifying agents, states, actions, rewards, policies, and uncertain transitions.
Read how Transformers in Action explains Markov decision process →
Causal AI
A Markov decision process is a sequential decision model in which an agent selects actions in states and receives rewards, with future dynamics determined by the current state and action.
- How it is used
- Models sequential decisions in reinforcement learning and supports causal reasoning about state transitions under chosen actions.
- How deep it goes
- Defines states, actions, transitions, rewards, and the Markov assumption, then identifies the transition function as a causal kernel.
- Examples
- Uses a 3 × 4 grid world with movement actions, an obstacle, positive and negative terminal rewards, and random starting positions.
- What you can do after
- Evaluate sequential decision problems by specifying states, actions, transitions, rewards, and their causal DAG representation.
Related concepts
- reinforcement learningused by · Reinforcement learning is a machine-learning paradigm in which an agent learns actions or a policy through interaction with an environment and evaluative feedback, such as rewards.
- Markov chaincontrasts with · A Markov chain is a stochastic process of states whose transition probabilities depend on the current state rather than the full preceding history.
- Bellman equationuses · A Bellman equation recursively relates a state or action value to an immediate reward and the expected discounted value of successor states or actions.
- actionhas part · An action is a choice or operation made or performed by an agent or other actor that can affect a system, environment, or process or produce an outcome.
- statehas part · State is information describing the condition of a system or computation at a particular time, which may influence its subsequent behavior.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.



