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.
Conditional probability of dependency of next state to all previous states.
Software service transitions graph and its matrix representation.
Transition distributions in three different scenarios
Markov chain and Markov decision process.
Two important probability distributions widely used for modeling business processes.
Cumulative profit ($) of following each policy in the planning horizon.
Two sides of reward function and some examples for each part.
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.
Applied Reinforcement Learning ebook for free