Why State Transitions Matter
In a dynamic choice problem, an action can affect more than the outcome in the current period: it may also change the state in which the decision-maker makes the next choice. A firm that maintains equipment, for example, may influence its future condition. By contrast, the next period’s market demand might evolve independently of that maintenance decision. Representing these processes correctly is essential: a model that assigns the wrong transition probabilities describes a different decision problem.
This tutorial focuses on the probability law for the next observed state, conditional on the current state and the action taken. It does not require solving for an optimal action. Instead, the aim is to specify the state-transition structure clearly enough that it can later be used in a dynamic choice model.
The state must contain the information the model needs to predict the next state, given the action. If some variable that affects transitions is omitted, the stated Markov property may fail. A transition law is time-homogeneous when these probabilities do not change with \(t\). That assumption is useful for a single transition matrix per action, but it is not automatic; a model with calendar-time effects may instead have time-varying matrices.
For any current state and action, transition probabilities must be nonnegative and sum to one across all possible next states. These are basic probability requirements, not optional modelling choices. A matrix convention used here places current states in rows and next states in columns, so each row sums to one.
Exogenous and Choice-Induced State Changes
A state component is exogenous to the choice in a model when its transition distribution does not depend on the chosen action, conditional on the current state. For example, a demand category may move from low to high demand at the same rate whether or not a firm maintains its equipment. A state component has choice-induced transitions when its conditional distribution changes with the action; equipment condition may improve more often under maintenance than without it.
These labels describe the transition structure specified by the model. They do not, by themselves, establish a causal effect from observational data. If an action is selected in response to information not included in the observed state, differences in subsequent states across actions may partly reflect that selection. A causal interpretation requires appropriate structural assumptions or research design; the transition matrix alone does not supply them.
When a state has several components, one can specify the joint transition probability directly. Alternatively, one may factor it into component probabilities if conditional independence is justified. For example, conditional independence of next period’s demand and equipment condition, given the current state and action, means their joint probability is the product of their component probabilities. This is an assumption about the joint transition law, not a consequence of merely recording two state variables.
Worked Example: An Exogenous Demand State
Suppose a hypothetical firm’s observed demand state is either low (\(L\)) or high (\(H\)). Assume that, conditional on current demand, next period’s demand is independent of the firm’s current action. The specified probabilities are \(P(L\mid L,a)=0.80\), \(P(H\mid L,a)=0.20\), \(P(L\mid H,a)=0.30\), and \(P(H\mid H,a)=0.70\), for either action \(a\).
With rows and columns ordered \(L,H\), the transition matrix is
The first row says that, from low demand, the next state is low with probability \(0.80\) and high with probability \(0.20\); \(0.80+0.20=1\). The second row also sums to one: \(0.30+0.70=1\). Since the same matrix applies under either action, this demand transition is exogenous to the choice in the specified model.
Building Action-Specific Matrices
When transitions depend on the action, a separate matrix is generally needed for each action. Let the finite state space be \(x_1,\ldots,x_K\). For action \(a\), define \(P_a\) by setting its \((i,j)\) entry to \(P(x_{t+1}=x_j\mid x_t=x_i,a_t=a)\). Thus, row \(i\) records the distribution of next states from current state \(x_i\), under action \(a\). Each entry is between zero and one, and each row sums to one.
The following example combines the exogenous demand process above with an equipment-condition component that responds to maintenance. The joint state is \(x=(D,C)\), where \(D\in\{L,H\}\) is demand and \(C\in\{G,W\}\) is equipment condition (good or worn). The ordering for both rows and columns will be \((L,G),(L,W),(H,G),(H,W)\). Fixing and stating this ordering prevents a common source of matrix errors.
Worked Example: Joint Transitions Under Maintenance
Consider a hypothetical firm choosing between maintenance (\(M\)) and no maintenance (\(N\)). Assume demand follows the exogenous probabilities in the previous example: from \(L\), next demand is \(L\) with probability \(0.80\) and \(H\) with probability \(0.20\); from \(H\), those probabilities are \(0.30\) and \(0.70\). Assume that, conditional on current state and action, next demand and next equipment condition are independent. Under maintenance, next condition is \(G\) with probability \(0.90\) if current condition is \(G\), and \(0.60\) if current condition is \(W\). The complementary probabilities give next condition \(W\).
For current state \((L,G)\), for example, the probability of next state \((L,G)\) is \(0.80\times0.90=0.72\). The probability of \((L,W)\) is \(0.80\times0.10=0.08\); the probabilities of \((H,G)\) and \((H,W)\) are \(0.20\times0.90=0.18\) and \(0.20\times0.10=0.02\). These entries sum to one.
Applying the same multiplication to each current state gives
In particular, from current state \((L,W)\), next condition is \(G\) with probability \(0.60\) and \(W\) with probability \(0.40\). Thus the four entries in that row are \(0.80\times0.60=0.48\), \(0.80\times0.40=0.32\), \(0.20\times0.60=0.12\), and \(0.20\times0.40=0.08\). The row sums to \(0.48+0.32+0.12+0.08=1\). The other row sums are \(0.72+0.08+0.18+0.02=1\), \(0.27+0.03+0.63+0.07=1\), and \(0.18+0.12+0.42+0.28=1\).
The matrix makes the distinction between components visible. The probabilities of next demand depend on current demand but not on whether maintenance is chosen. The probabilities of next equipment condition depend on both current condition and action.
Now suppose that without maintenance, next condition is \(G\) with probability \(0.85\) from current \(G\), and \(0.20\) from current \(W\). The complementary probabilities are for next condition \(W\). Keep the same conditional-independence assumption and demand process.
Worked Example: Constructing the No-Maintenance Matrix
For current state \((L,G)\) under \(N\), the four entries are \(0.80\times0.85=0.68\), \(0.80\times0.15=0.12\), \(0.20\times0.85=0.17\), and \(0.20\times0.15=0.03\). Repeating the calculation for the remaining current states gives
For instance, from \((H,W)\), demand next period is low with probability \(0.30\) and high with probability \(0.70\), while next condition is good with probability \(0.20\) and worn with probability \(0.80\). The entries are therefore \(0.30\times0.20=0.06\), \(0.30\times0.80=0.24\), \(0.70\times0.20=0.14\), and \(0.70\times0.80=0.56\). They sum to one. The remaining row sums are \(0.68+0.12+0.17+0.03=1\), \(0.16+0.64+0.04+0.16=1\), and \(0.255+0.045+0.595+0.105=1\).
Comparing the rows for current state \((L,W)\), maintenance raises the probability of good next-period condition from \(0.20\) to \(0.60\). It does not change the probability of high next-period demand, which remains \(0.20\). This comparison is a property of the specified transition model; it is not a conclusion about which action is optimal.
Why the Product Formula Works
The matrix calculations rely on the conditional-independence assumption. For a current state \(x=(D,C)\) and action \(a\), that assumption states that next demand \(D'\) and next condition \(C'\) are independent conditional on \(x,a\). The definition of conditional independence then gives the joint transition probability as a product.
To verify the row-sum claim, fix current state and action, and write \(q(d')\) for the demand transition probability and \(r(c')\) for the condition transition probability. Summing the product over all possible next-state pairs gives
This is a justification for the row sums when the factorization applies. If the components are dependent, multiplying their separate transition probabilities is not valid; the joint probabilities must be specified directly (or constructed using a model for their dependence).
From a Matrix to a Distribution Over States
A transition matrix can also update a probability distribution over current states. Represent the current distribution as a row vector \(\pi_t\), whose \(i\)th entry is the probability of state \(x_i\). If the same action \(a\) is applied in every current state, then the next-state distribution is \(\pi_{t+1}=\pi_tP_a\). If the action varies by current state, use in each row the transition probabilities for the action prescribed in that state.
Worked Example: Updating a State Distribution
Suppose, hypothetically, that the current state distribution in the equipment problem is \(\pi_t=(0.50,0.20,0.20,0.10)\), using the stated four-state ordering. If maintenance is taken in every state, multiply by \(P_M\). The probability of next state \((L,G)\), for example, is
The other next-state probabilities are calculated from the corresponding columns:
Thus \(\pi_{t+1}=(0.528,0.122,0.282,0.068)\). The entries sum to \(0.528+0.122+0.282+0.068=1\), as required for a probability distribution. This calculation propagates uncertainty about the state; it does not describe a particular firm’s realized next state.
State-Dependent Actions and Common Pitfalls
In a decision model, an action may depend on the current state. A rule \(\pi(x)\) that specifies an action for each state implies a transition matrix whose row for \(x_i\) is taken from \(P_{\pi(x_i)}\). For example, if the firm maintains equipment whenever it is worn and takes no maintenance action when it is in good condition, use the \((L,G)\) and \((H,G)\) rows of \(P_N\), and the \((L,W)\) and \((H,W)\) rows of \(P_M\). This row-by-row construction preserves the stated state ordering. It describes transitions under a specified rule, not the probabilities of choosing each action.
A frequent mistake is to multiply marginal transition probabilities without checking conditional independence. Another is to put current states in columns in one matrix and rows in another, then compare entries as if the ordering were unchanged. The correction is to state the conditioning variables and matrix ordering explicitly, verify the factorization assumption when using products, and check that every row sums to one.
- Do not label every changing state exogenous. Ask whether its transition distribution depends on the action, conditional on the current state.
- Do not confuse action-specific transitions with an action rule. \(P_a\) describes transitions under a fixed action; a state-dependent rule selects a row from the appropriate action-specific matrix.
- Do not infer causation from observed transition differences alone. Action selection may depend on information that is not represented in the state.
Check Your Understanding
Answer these questions using the definitions and calculations above.
- In a transition matrix with current states in rows and next states in columns, what does the entry in row \(i\), column \(j\) represent?
- A machine’s next condition depends on its current condition but not on the action. Is that transition exogenous to the choice in the model? What conditioning variables should be stated?
- Suppose next demand and next condition are each specified separately. What assumption is needed before multiplying their probabilities to obtain a joint transition probability?
- Why must the probabilities in each row of a transition matrix sum to one?
- If an action changes the probability of next equipment condition but not next demand, how should the corresponding action-specific matrices reflect those effects?