Overview

2 Markov Decision Process: Turning Problems intro Solvable Models

This chapter introduces Markov decision processes as a practical way to turn messy business problems into structured, solvable models. The central idea is that complexity becomes manageable when a problem is broken into states, actions, transitions, rewards, and policies, but only if those pieces are designed so they still fit together meaningfully. The chapter emphasizes systems thinking: analysis alone is not enough, because real decision-making also requires synthesis, or the ability to reconnect the parts into a coherent whole that supports optimization over time.

A major focus is the distinction between passive prediction and active decision-making. The text explains how Markov chains capture state-to-state evolution under uncertainty, and how the Markov property allows the future to depend only on the present state rather than the full history, avoiding the curse of dimensionality. Building on that foundation, a Markov decision process adds actions and rewards, making the agent an active participant that can influence both immediate outcomes and future states. The policy is presented as the strategy that maps states to actions, with the long-term objective of choosing decisions that improve overall returns rather than just short-term gains.

The chapter then shows how to formulate business problems as Markov decision processes through examples such as pricing, workforce scheduling, maintenance, customer retention, and a detailed factory production-planning case. In that case study, the model includes production choices, stochastic demand, inventory updates, setup changes, and a reward function that balances revenue against production, holding, setup, and backorder costs. The final section stresses that reward engineering and constraint handling are just as important as state design: rewards should be stepwise when possible, constraints should be encoded into the state or enforced through masking and penalties, reward scales should be balanced, and deceptive shortcuts must be avoided so the agent learns behavior that is both effective and aligned with real business goals.

Three different types on how a system can evolve moving from one state to another.
Three different types on how a system can evolve moving from one state to another.
Conditional probability of dependency of next state to all previous states.
Conditional probability of dependency of next state to all previous states.
Software service transitions graph and its matrix representation.
Software service transitions graph and its matrix representation.
Transition distributions in three different scenarios
Transition distributions in three different scenarios
Markov chain and Markov decision process.
Markov chain and Markov decision process.
Two important probability distributions widely used for modeling business processes.
Two important probability distributions widely used for modeling business processes.
Cumulative profit ($) of following each policy in the planning horizon.
Cumulative profit ($) of following each policy in the planning horizon.
Two sides of reward function and some examples for each part.
Two sides of reward function and some examples for each part.
An example of reward normalization for a multi objective portfolio optimization
An example of reward normalization for a multi objective portfolio optimization

Summary

  • Complex business problems require more than decomposition — they demand structured reassembly, and Markov decision processes offer just that.
  • Markov decision processes break decision-making into states, actions, rewards, and transitions, enabling sequential decision making under uncertainty.
  • State design is the key: a good state captures all essential information to predict what happens next (Markov property). Poor state design breaks predictive power.
  • Markov chains model how systems evolve probabilistically; Markov decision processes extend this by adding control — letting agents make decisions that influence outcomes.
  • A policy maps each state to an action, not for short-term gains but for long-term success — balancing current choices against future consequences.
  • Markov decision process modeling requires clear thinking about business objectives and constraints, which together guide optimal decisions.
  • Most real-world business problems can be modeled as Markov decision processes if states are crafted wisely.
  • Reward functions in business must encode multiple objectives and penalties — they are not just feedback signals but behavioral steering tools.
  • Effective reward engineering means giving feedback at the right time (stepwise rewards), balancing objective and constraint terms, and avoiding scale mismatches.
  • Hard constraints should be enforced using action masking and penalty, while soft constraints can be handled just by penalties and dynamic trade-offs.
  • Designing rewards requires careful monitoring to avoid unintended shortcuts, where agents optimize proxy metrics instead of real goals.

FAQ

What is a Markov Decision Process (MDP) and why is it useful in business optimization?An MDP is a mathematical framework for modeling sequential decisions under uncertainty. It is useful in business because it helps break complex problems into states, actions, transitions, and rewards, making them easier to analyze, simulate, and optimize over time.
What are the main components of a Markov Decision Process?The key components are: state, action, transition probability/function, and reward. The state describes the current situation, actions are the choices available, transitions describe how the system evolves, and rewards measure the immediate outcome of each decision.
What is the Markov property?The Markov property means that the future depends only on the present state, not on the full history of past states. If a system is Markovian, the current state contains all the information needed to predict the next step.
Why is state design so important in reinforcement learning?Good state design determines whether the system can be treated as Markovian. If important information is left out of the state, the agent may not be able to make correct decisions, and the model may become unreliable or non-Markovian.
How is a Markov chain different from a Markov Decision Process?A Markov chain describes how a system evolves passively over time with no control over the outcome. An MDP adds actions, meaning an agent can actively influence both the next state and the reward it receives.
Why does the chapter emphasize that actions matter in MDPs?Because actions are what turn passive prediction into decision-making. In an MDP, the agent does not just observe the system; it chooses actions that shape future states and long-term outcomes.
What is a policy in an MDP?A policy is a rule or strategy that maps states to actions. It tells the agent what to do in each state, ideally choosing actions that maximize long-term reward rather than just immediate gain.
What are some real-world business examples of MDPs from the chapter?The chapter gives examples such as dynamic pricing, workforce scheduling, preventive maintenance, and customer retention campaigns. In each case, the state, action, reward, and transition must be designed carefully to capture the business problem accurately.
What is the role of reward engineering in MDPs?Reward engineering shapes agent behavior by defining what should be encouraged and discouraged. A good reward function aligns the agent with business goals, includes penalties for undesirable outcomes, and avoids misleading shortcuts.
How can constraints be handled in an MDP?Constraints can be handled by including constraint information in the state, using stepwise penalties for soft constraints, and applying action masking for hard constraints. This helps keep the agent’s decisions feasible and aligned with real-world rules.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Applied Reinforcement Learning Applied Reinforcement Learning ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Applied Reinforcement Learning Applied Reinforcement Learning ebook for free