Discrete-Time Markov ChainsIntroduction and ContextA discrete-time Markov chain is a stochastic model for a system that evolves through a finite or countable set of states at successive time points. Its defining assumption is that, conditional on the present state, the distribution of the next state does not depend on the detailed history of the process. This is the Markov property: P(Xt+1=j | Xt=i, Xt-1=it-1, …, X0=i0) = P(Xt+1=j | Xt=i) Here, Xt is the state of the system at time t, and i and j are possible states. The model is discrete-time because transitions occur at integer periods such as months, quarters, or years. Markov chains are especially useful in business analytics when the current condition of a customer, borrower, machine, or market segment provides a meaningful summary of its relevant past. Applications include customer migration, credit-rating transitions, workforce planning, inventory status, equipment reliability, website navigation, and brand switching. The Markov assumption is a modeling approximation, not a universal law. It should be tested against domain knowledge and data. If customer tenure, accumulated debt, or previous transitions materially affects future behavior, an ordinary first-order Markov chain may be inadequate. Learning ObjectivesBy the end of this chapter, you should be able to: - Construct and interpret a transition matrix.
- Calculate multi-step transition probabilities.
- Classify states as transient, recurrent, absorbing, or periodic.
- Identify communicating classes and determine whether a chain is irreducible.
- Calculate first-passage and absorption probabilities and expected times.
- Find stationary distributions and interpret long-run behavior.
- Apply Markov chains to customer migration and credit-rating analysis.
- Evaluate assumptions, governance risks, and limitations in business applications.
1. States, Transitions, and Transition MatricesLet the state space be S={1,2,…,m} for a finite chain. The one-step transition probability from state i to state j is pij=P(Xt+1=j | Xt=i) For every state i, probabilities must satisfy pij ≥ 0, ∑j=1m pij=1 The transition matrix is P = [pij]m×m Each row represents the current state and each column represents the next state. Thus, P is row-stochastic. A column-stochastic convention is also used in some disciplines, but analysts must state the convention explicitly and use it consistently. If the initial state distribution is a row vector π(0)=[P(X0=1),…,P(X0=m)] then the distribution after n periods is π(n)=π(0)Pn where Pn is the nth matrix power. The probability of moving from state i to state j in n steps is the (i,j) entry of Pn. Example 1: A customer-migration matrixSuppose customers are classified as Basic, Premium, or Lost. Based on historical monthly data, the transition matrix is P = [ 0.70 0.25 0.05 0.10 0.80 0.10 0 0 1.00 ] The first row means that a Basic customer remains Basic with probability 0.70, upgrades with probability 0.25, and is lost with probability 0.05. Lost is absorbing: once a customer is classified as Lost, the model assumes that the customer does not return. If all customers begin as Basic, then π(0)=(1,0,0). After one month, π(1)=π(0)P=(0.70,0.25,0.05) Thus, 5% are expected to be lost after one month under the model. 2. Multi-Step Probabilities and the Chapman–Kolmogorov RelationshipThe Chapman–Kolmogorov relationship states that an (r+s)-step transition probability can be obtained by summing over the intermediate state: pij(r+s)=∑k∈S pik(r)pkj(s) For a time-homogeneous chain, where transition probabilities do not change with time, P(n)=P×P×…×P with n factors. Time homogeneity is an assumption. If economic conditions or marketing policies change, the chain may instead require matrices P0,P1,… that vary by period. For the customer example, the probability that a Basic customer is Premium after two months is p12(2) = (0.70)(0.25)+(0.25)(0.80)+(0.05)(0)=0.375 The three terms correspond to being Basic, Premium, or Lost after the first month. Therefore, the two-month probability is 0.375. 3. Communication and Classification of StatesState i communicates with state j, written i↔j, if each is reachable from the other in some finite number of steps. State j is reachable from i if pij(n)>0 for at least one n≥0. Communication is an equivalence relation, so it partitions the state space into communicating classes. A class is closed if no transition leads from a state in the class to a state outside it. A chain is irreducible if all states communicate with one another; equivalently, it has one communicating class. A state is: - Absorbing if pii=1.
- Transient if, once left, there is a positive probability of never returning.
- Recurrent if the probability of eventual return is 1.
- Positive recurrent if its expected return time is finite.
- Null recurrent if it is recurrent but has infinite expected return time.
- Periodic with period d if returns to the state can occur only at multiples of d, where d is the greatest common divisor of all possible positive return times.
- Aperiodic if its period is 1.
For a finite Markov chain, every recurrent class is positive recurrent. In a finite irreducible chain, all states are positive recurrent. A finite chain may still contain transient states, as the Basic and Premium states do in the customer example because they can eventually move to the closed Lost state. An absorbing state is a special case of a recurrent state. An absorbing chain contains at least one absorbing state, and every state can reach an absorbing state in the usual definition used in applications. Why classification mattersClassification determines whether long-run proportions exist, whether a system eventually exits a state, and whether an intervention can have a permanent effect. For example, a closed class of high-risk credit ratings may indicate persistent risk, while an absorbing “default” state may be suitable for a lifetime-loss model but unsuitable if recovery is possible. 4. First-Passage and Hitting TimesThe first-passage time from state i to state j is Tj = min{n ≥ 0 : Xn=j} when the process starts in state i. For a target set A, define TA=min{n≥0:Xn∈A} The hitting probability is hi=Pi(TA<∞). For a target state j, these probabilities satisfy hi = ∑k∈S pikhk with boundary condition hj=1. If some states cannot reach the target, their appropriate boundary value is 0. The expected hitting time mi=Ei[TA] satisfies, for states outside A, mi=1+∑k∉Apikmk with mi=0 for i∈A. The added 1 counts the first transition. These equations are solved simultaneously. Absorbing-chain matrix methodReorder the states so transient states come first and absorbing states last. The transition matrix then has canonical form P = [ Q R 0 I ] where Q contains transitions among transient states, R contains transitions from transient to absorbing states, I is the identity matrix, and the zero block represents the impossibility of leaving an absorbing state. The fundamental matrix is N=(I-Q)-1=I+Q+Q2+… provided absorption occurs with probability 1. The entry Nij is the expected number of visits to transient state j when starting in transient state i, including the initial visit. The matrix of absorption probabilities is B=NR and the vector of expected times to absorption is t=N1 where 1 is a column vector of ones. Example 2: A simple risk-transition modelConsider transient states Healthy and Stressed, with Default absorbing: P = [ 0.80 0.15 0.05 0.10 0.70 0.20 0 0 1.00 ] Here, Q=[0.80 0.15 0.10 0.70], R=[0.05 0.20] The determinant of I-Q is (0.20)(0.30)-(−0.15)(−0.10)=0.045 so N=(I-Q)-1=[6.6667 3.3333 2.2222 4.4444] Consequently, B=NR=[0.6667 1.1111] This result is impossible because absorption probabilities cannot exceed 1. The reason is that the proposed transition matrix is not valid: the second row sums to 1.00, but the first row also sums to 1.00; checking the calculation reveals that det(I-Q)=(0.20)(0.30)−(−0.15)(−0.10)=0.045, while multiplication gives first entry 6.6667(0.05)+3.3333(0.20)=1.0000, not 0.6667. Thus B=[1.0000 1.0000] Both transient states eventually lead to Default with probability 1. The example illustrates an important validation practice: absorption probabilities must lie between 0 and 1 and each row of B must sum to 1 when absorption is certain. The expected time to default is t=N1=[10.0000 6.6666] Therefore, the expected time to default is 10 periods from Healthy and approximately 6.67 periods from Stressed, under the model assumptions. 5. Stationary Distributions and Long-Run BehaviorA probability vector π=(π1,…,πm) is stationary if πP=π, ∑i=1mπi=1, πi≥0 The stationary distribution is an equilibrium distribution: if π(0)=π, then π(n)=π for every n. It does not necessarily describe the distribution at a particular finite time, nor does every initial distribution necessarily converge to it. For a finite irreducible chain, at least one stationary distribution exists and is unique. If the chain is also aperiodic, then limn→∞Pn = 1π where 1 is a column vector of ones and every row of the limiting matrix equals π. Consequently, π(0)Pn→π for every initial distribution. This is the standard ergodic long-run result. If a chain is irreducible but periodic, a stationary distribution still exists, but ordinary convergence of Pn may fail because probabilities oscillate. Time averages may nevertheless converge under standard finite-state conditions. If a chain has multiple closed classes, the long-run result can depend on the initial state. A single stationary distribution may not summarize all possible behavior. In an absorbing chain, stationary distributions are concentrated on absorbing classes; they do not generally describe transient-period operating performance. Solving for a stationary distributionFor a two-state chain P=[1−a a b 1−b] where 0<a,b≤1, let π=(π1,π2). Solving πP=π and π1+π2=1 gives π1=b/(a+b), π2=a/(a+b) The formula applies to this irreducible two-state model. It should not be used when one of a or b is zero without separately analyzing absorbing or non-irreducible behavior. 6. Business Application: Customer MigrationCustomer migration models estimate how accounts move among segments such as low-value, standard, premium, dormant, and churned. A transition matrix supports: - forecasting segment populations;
- estimating customer lifetime and churn;
- valuing retention campaigns;
- planning service capacity;
- comparing acquisition and retention strategies.
Suppose a firm has 100,000 customers, with 60% Basic, 30% Premium, and 10% Lost or inactive. If the firm applies a monthly transition matrix, the expected segment counts after one period are obtained by multiplying the row vector of counts by P. Expected counts need not be integers; they represent averages across repeated or hypothetical populations. A key managerial distinction is between descriptive and prescriptive use. A historical matrix describes observed migration. It does not prove that a marketing intervention caused an upgrade. To estimate intervention effects, analysts should use experiments, causal models, or carefully designed quasi-experimental methods. Customer models also require attention to censoring and observation windows. A customer labeled “churned” may return later, and a short observation period may understate eventual churn. The state definition should therefore reflect the business decision and the data-generating process. 7. Business Application: Credit RatingsCredit-rating agencies and banks often model transitions among ratings such as AAA, AA, A, BBB, speculative grade, and Default. A one-year transition matrix can support expected-loss analysis, portfolio stress testing, capital planning, and scenario analysis. If exposure at default is EAD, loss-given-default is LGD, and the probability of default over a specified horizon is PD, a simplified expected-loss calculation is EL=PD×LGD×EAD The units are monetary units because PD and LGD are dimensionless proportions and EAD is monetary exposure. A Markov chain can estimate PD over multiple periods through the relevant entry of Pn, but the simplified formula assumes that the probability, loss severity, and exposure definition are compatible with the same horizon and portfolio scope. Credit models often require a time-inhomogeneous or macroeconomic regime-switching structure. Transition probabilities during a recession may differ substantially from those during expansion. A single long-run average matrix can conceal this variation and understate tail risk. 8. Detailed Illustrative Case: Subscription-Service RetentionBackgroundA fictional subscription company classifies accounts as Trial, Standard, Premium, and Churned. Management wants to estimate the effect of a retention program and determine whether the program changes long-run customer value. ProblemHistorical monthly data produce a transition matrix. However, the data combine customers who received different offers, and the Churned state is treated as absorbing even though some customers reactivate. AnalysisThe analytics team first verifies row sums, missing-state definitions, and the observation window. It separates customers by treatment exposure and estimates matrices for the treatment and comparison groups. It also creates a Reactivated state rather than assuming permanent churn. The team calculates P6 to forecast six-month segment distributions and uses the fundamental matrix to estimate expected time before churn for each starting segment. It compares results with a survival model that includes tenure and customer characteristics. The Markov model is attractive for operational forecasting, whereas the survival model better captures duration dependence. Approach and solutionManagement adopts a segmented, time-inhomogeneous model: - one matrix for ordinary months;
- a recession matrix for adverse economic conditions;
- separate matrices for treatment and comparison groups;
- a nonabsorbing reactivation state;
- quarterly recalibration and out-of-sample validation.
The company reports both transition probabilities and uncertainty intervals, rather than presenting point forecasts as facts. OutcomeThe retention program appears to reduce immediate churn, but its effect is smaller for long-tenure customers because their baseline churn was already low. The revised model predicts greater reactivation than the original absorbing model and produces more realistic lifetime-value estimates. Learning points- State definitions determine managerial conclusions.
- A convenient absorbing state may be substantively wrong.
- Historical transitions do not automatically identify causal effects.
- Segmenting by treatment and economic regime can improve decision relevance.
- Model validation must include both arithmetic checks and business plausibility checks.
9. Estimation, Validation, and ImplementationFor observed transitions, the maximum-likelihood estimate of pij is p̂ij=Nij/Ni where Nij is the number of observed transitions from i to j, and Ni=∑jNij. This estimator assumes transitions are appropriately sampled and that the relevant transition mechanism is stable over the estimation period. Small samples can produce unstable estimates, especially for rare transitions such as default. Analysts may use Bayesian smoothing, pooling across similar states, or hierarchical models, but these methods introduce assumptions that must be documented. Validation should include: - row-sum and nonnegativity checks;
- comparison of predicted and observed migration counts;
- back-testing across time periods;
- sensitivity analysis under alternative state definitions;
- confidence or credible intervals;
- stress testing under adverse regimes;
- monitoring for drift after deployment.
Software implementation should preserve the state order, matrix convention, data dictionary, estimation period, and version history. A numerically correct matrix can still produce an incorrect forecast if rows and columns are accidentally reversed. 10. Limitations, Ethics, and GovernanceThe Markov property may fail when history matters beyond the current state. Examples include customer tenure, repeated missed payments, cumulative product usage, and prior complaints. Higher-order chains, expanded states, semi-Markov models, hidden Markov models, or covariate-based transition models may be more appropriate. Other limitations include: - State aggregation: materially different customers may be grouped together.
- Nonstationarity: probabilities may change with prices, regulation, competition, or economic conditions.
- Selection bias: observed transitions may reflect who remains observable.
- Rare events: limited default or churn observations create high uncertainty.
- Feedback effects: decisions based on predictions can change future transitions.
- Absorbing-state assumptions: recovery or reactivation may be ignored.
In credit and customer analytics, governance is especially important. A transition model may influence pricing, credit access, service quality, or collections. Analysts should assess disparate impact across protected groups, document legitimate business purposes, protect personal data, and provide appropriate explanations. A model should not be treated as objective merely because it is expressed as a matrix. Historical discrimination can be encoded in transition estimates. Artificial intelligence can assist with feature engineering, anomaly detection, and drift monitoring, but it does not remove the need for transparent state definitions, causal reasoning, validation, and human oversight. More complex predictive systems should be compared with interpretable Markov benchmarks rather than adopted solely for marginal accuracy gains. Chapter SummaryA discrete-time Markov chain models movement among states at successive periods under the assumption that the current state contains the relevant information needed to determine the next-state distribution. Its transition matrix is row-stochastic, and matrix powers provide multi-step probabilities. Communicating classes reveal structural connectivity, while transient, recurrent, absorbing, and periodic classifications determine long-run behavior. First-passage equations and the fundamental matrix quantify hitting probabilities, expected visits, and expected absorption times. Stationary distributions describe equilibrium behavior, with convergence requiring suitable irreducibility and aperiodicity conditions. In business analytics, Markov chains support customer migration, credit-rating, reliability, and workforce models. Their usefulness depends on valid state definitions, appropriate estimation, careful validation, and governance of causal, ethical, and nonstationary risks. Key TermsMarkov property: The next-state distribution depends on the current state, not the full prior history. State: A condition or category occupied by the modeled system. State space: The set of all possible states. Transition probability: The probability of moving from one state to another in one period. Transition matrix: A matrix containing one-step transition probabilities. Row-stochastic matrix: A matrix whose entries are nonnegative and whose rows sum to one. Communicating states: Two states each reachable from the other. Communicating class: A maximal set of mutually communicating states. Closed class: A class from which no transition leads outside the class. Irreducible chain: A chain in which every state communicates with every other state. Transient state: A state that may be left permanently. Recurrent state: A state to which the process eventually returns with probability one. Absorbing state: A state that, once entered, cannot be left. Period: The greatest common divisor of possible positive return times. First-passage time: The first time the process reaches a specified state or set. Stationary distribution: A probability distribution unchanged by multiplication by the transition matrix. Fundamental matrix: N=(I−Q)^{-1 for the transient block of an absorbing chain. Time-homogeneous chain: A chain whose transition probabilities do not vary with time. Time-inhomogeneous chain: A chain whose transition probabilities vary across periods. Review QuestionsShort Answer Questions- State the Markov property in words and mathematical notation.
- Why must every row of a transition matrix sum to one?
- Distinguish an absorbing state from a transient state.
- What does a stationary distribution represent?
- Define a closed communicating class.
Long Answer Questions- Explain how Pn is used to obtain multi-period forecasts. Include the assumptions required for this interpretation.
- Describe the classification of states in a finite Markov chain and explain why classification matters for long-run analysis.
- Derive the equations for expected first-passage times to a target set.
- Explain the canonical form of an absorbing-chain transition matrix and interpret the fundamental matrix.
- Critically evaluate the use of a Markov chain for credit-rating migration.
Analytical / Application Questions- A three-state customer chain has states Active, Dormant, and Churned, with Churned absorbing. Explain how you would calculate the probability of churn within six periods and the expected time to churn.
- A transition matrix estimated during an economic expansion is used to forecast defaults during a recession. Identify the modeling risks and propose a validation and stress-testing strategy.
- A retention campaign changes customers’ transition probabilities. Explain why comparing transition matrices before and after the campaign may not establish causality, and design a stronger evaluation approach.
Multiple Choice Questions with AnswersQuestion 1Which condition defines the Markov property? A. The process must have exactly two states. B. The next-state distribution depends only on the current state. C. Every state must eventually become absorbing. D. All transition probabilities must be equal. Correct Answer: B. The next-state distribution depends only on the current state. Question 2In a row-stochastic transition matrix, what does row i represent? A. Probabilities of previous states given state i B. Long-run frequencies only C. Probabilities of next states conditional on current state i D. Expected time spent in each state Correct Answer: C. Probabilities of next states conditional on current state i Question 3If π^(0) is a row-vector initial distribution, which expression gives the distribution after n periods? A. π^(0)+P^n B. P^n−π^(0) C. π^(0)P^n D. Pπ^(0)P Correct Answer: C. π^(0)P^n Question 4A state i is absorbing when: A. p_ii=0 B. p_ii=1 C. p_ij=1 for every j D. It communicates with no state Correct Answer: B. p_ii=1 Question 5What is required for a finite chain to be irreducible? A. Every state must be absorbing. B. There must be no transient states. C. Every state must communicate with every other state. D. The matrix must be diagonal. Correct Answer: C. Every state must communicate with every other state. Question 6For an absorbing chain with transient block Q, the fundamental matrix is: A. N=Q−I B. N=I+Q C. N=(I−Q)^−1 D. N=R−Q Correct Answer: C. N=(I−Q)^−1 Question 7Which equation characterizes a stationary distribution π? A. πP=π B. Pπ=0 only C. π+P=1 D. πP=Pπ for every vector π Correct Answer: A. πP=π Question 8For a two-state chain with transition probabilities a from state 1 to 2 and b from state 2 to 1, the stationary probability of state 1 is: A. a/(a+b) B. b/(a+b) C. 1−a−b D. ab Correct Answer: B. b/(a+b) Question 9If p̂_ij=N_ij/N_i, what does N_i represent? A. The number of states in the model B. The number of observed transitions from state i C. The number of absorbing states D. The number of periods in the forecast Correct Answer: B. The number of observed transitions from state i Question 10Why can a historical transition matrix fail to measure the causal effect of a retention campaign? A. Transition matrices cannot contain probabilities. B. The campaign may be associated with customer selection and other confounding factors. C. Matrix powers always eliminate treatment effects. D. Causal effects require an absorbing state. Correct Answer: B. The campaign may be associated with customer selection and other confounding factors.
|