From a Conditional Probability to a Matrix Entry
A transition matrix records probabilities of moving from each current state to each possible next state. Its entries are conditional probabilities: the row identifies the state at the current time, and the column identifies the state one step later. This interpretation is simple, but it depends on keeping both the conditioning event and the stated order of the states straight.
Let \((X_n)_{n\ge0}\) be a discrete-time process on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with finite state space \(S\). For states \(i,j\in S\), if \(\mathbb{P}(X_n=i)>0\), the conditional probability of being at \(j\) at the next time, given the current state \(i\), is
For a time-homogeneous Markov chain, this conditional probability does not depend on \(n\). The transition probability from \(i\) to \(j\) is denoted by \(p_{ij}\), and the transition matrix \(P=(p_{ij})\) is defined by
Here \(i\) is the source state and \(j\) is the destination state. Thus, to find \(p_{ij}\), condition on \(X_n=i\) and ask for the probability that \(X_{n+1}=j\). The order of the subscripts matters: \(p_{ij}\) and \(p_{ji}\) generally describe different conditional probabilities.
If transition probabilities depend on time, the entry at time \(n\) is instead written \(p_{ij}(n)=\mathbb{P}(X_{n+1}=j\mid X_n=i)\), and one uses a matrix \(P_n\) for that time. In either case, first identify the current state in the condition and the next state in the event; only then place the probability in the matrix.
Conditional Probabilities Given a State or a History
For a Markov chain, knowing the current state is sufficient for the one-step transition law: additional information about the past does not change that law. More precisely, let \(\mathcal{F}_n^X=\sigma(X_0,\ldots,X_n)\), the information generated by the states up to time \(n\). The Markov property for a homogeneous chain says that, for every \(j\in S\),
The conditional probability given the state \(X_n=i\) is only an ordinary ratio of probabilities when \(\mathbb{P}(X_n=i)>0\). If that event has probability zero, the ratio is undefined. A transition rule for the chain may nevertheless specify a row for state \(i\); that row is part of the model, even if the particular distribution of the process never visits \(i\). The distinction is between a model’s stated transition law and a conditional probability that can be calculated from a particular observed distribution.
Proof. By the Markov property, the conditional expectation of \(\mathbf{1}_{\{X_{n+1}=j\}}\) given \(\mathcal{F}_n^X\) equals \(p_{X_nj}\) almost surely. On \(H\), \(X_n=i\), so \(p_{X_nj}=p_{ij}\). Taking expectations after multiplying by \(\mathbf{1}_H\) gives \(\mathbb{P}(H\cap\{X_{n+1}=j\})=p_{ij}\mathbb{P}(H)\). Divide by the positive number \(\mathbb{P}(H)\) to obtain the claimed conditional probability. \(\square\)
This result explains why a transition row applies not only when conditioning on the current state alone, but also when conditioning on a positive-probability history that ends in that state. It does not say that conditioning on a different state, or on a future state, gives the same probability.
Worked Examples: Filling the Matrix in the Given Order
Worked Example: Three Campus Locations
Let \(S=\{\text{Library},\text{Classroom},\text{Home}\}\), with the stated ordering Library, Classroom, Home. A student’s location process is defined on \((\Omega,\mathcal{F},\mathbb{P})\) in discrete time. At any time, the next-location probabilities are: from the Library, \(\tfrac12\) Library, \(\tfrac13\) Classroom, and \(\tfrac16\) Home; from the Classroom, \(\tfrac14\) Library, \(\tfrac12\) Classroom, and \(\tfrac14\) Home; from Home, \(\tfrac13\) Library, \(\tfrac16\) Classroom, and \(\tfrac12\) Home. The transition rule specifies all three rows. To interpret them as conditional probabilities at time zero, take an initial distribution assigning positive probability to each location.
Start with the row for the Library, since that is the state after the conditioning bar. Put the probability of moving to the Library in column one, Classroom in column two, and Home in column three. The row is \((\tfrac12,\tfrac13,\tfrac16)\), and its entries sum to \(\tfrac12+\tfrac13+\tfrac16=1\). For the Classroom row, the entries in the same destination order are \((\tfrac14,\tfrac12,\tfrac14)\), which sum to \(\tfrac14+\tfrac12+\tfrac14=1\). The Home row is \((\tfrac13,\tfrac16,\tfrac12)\), which sums to \(\tfrac13+\tfrac16+\tfrac12=1\). Thus the matrix, in the specified order, is
For example, \(p_{12}=\tfrac13\) means \(\mathbb{P}(X_{n+1}=\text{Classroom}\mid X_n=\text{Library})=\tfrac13\). The first subscript refers to the first state in the ordering, Library; the second refers to the second, Classroom. As a check on the interpretation, \(p_{31}=\tfrac13\) is the probability of moving from Home to the Library, not from the Library to Home.
Worked Example: Translating a Weather Description
Consider a weather process on \(S=\{\text{Clear},\text{Cloudy},\text{Rain}\}\), ordered as written. It is defined on \((\Omega,\mathcal{F},\mathbb{P})\) in discrete time. Given Clear, the next day is Clear with probability \(\tfrac23\), Cloudy with probability \(\tfrac13\), and Rain with probability \(0\). Given Cloudy, the respective probabilities are \(\tfrac14,\tfrac12,\tfrac14\). Given Rain, they are \(\tfrac16,\tfrac13,\tfrac12\). These are the conditional transition rules for every state.
The first row is obtained by conditioning on Clear; the columns are Clear, Cloudy, Rain. Its sum is \(\tfrac23+\tfrac13+0=1\). The second row is obtained by conditioning on Cloudy, and its sum is \(\tfrac14+\tfrac12+\tfrac14=1\). The third row is obtained by conditioning on Rain, and its sum is \(\tfrac16+\tfrac13+\tfrac12=1\). Therefore,
The entry \(p_{23}=\tfrac14\) is the probability of Rain tomorrow given Cloudy today. The entry \(p_{32}=\tfrac13\) is the probability of Cloudy tomorrow given Rain today. Both entries use the same two states, but the conditioning state changes, so the probabilities need not agree.
Worked Example: A Different State Ordering
A machine has states On, Off, and Maintenance. Its transition rule is: from On, it moves to On with probability \(\tfrac34\), Off with probability \(\tfrac18\), and Maintenance with probability \(\tfrac18\); from Off, it moves to On with probability \(\tfrac14\), Off with probability \(\tfrac12\), and Maintenance with probability \(\tfrac14\); from Maintenance, it moves to On with probability \(\tfrac12\), Off with probability \(\tfrac14\), and Maintenance with probability \(\tfrac14\). Let the process be on \((\Omega,\mathcal{F},\mathbb{P})\), in discrete time. Use the ordering Maintenance, On, Off, and suppose the initial distribution gives each state positive probability.
Because the requested order is not the order in which the transition rule was described, rewrite each row in the requested destination order: Maintenance first, then On, then Off. From Maintenance, the row is \((\tfrac14,\tfrac12,\tfrac14)\), with sum \(\tfrac14+\tfrac12+\tfrac14=1\). From On, it is \((\tfrac18,\tfrac34,\tfrac18)\), with sum \(\tfrac18+\tfrac34+\tfrac18=1\). From Off, it is \((\tfrac14,\tfrac14,\tfrac12)\), with sum \(\tfrac14+\tfrac14+\tfrac12=1\). Hence the matrix in the specified order is
For instance, \(p_{12}=\tfrac12\) means that the next state is On given that the current state is Maintenance. The first subscript indexes the first state in the requested order, not the first state mentioned in the description. This is why recording the ordering before filling entries prevents mistakes.
Probabilities of Sets of Destinations
Sometimes a question asks whether the next state belongs to a set, rather than asking for one particular destination. If the current state is \(i\) and \(A\subseteq S\), the probability of moving into \(A\) is obtained by adding the entries in row \(i\) whose destination states belong to \(A\).
Proof. The event \(\{X_{n+1}\in A\}\) is the disjoint union of the events \(\{X_{n+1}=j\}\) over \(j\in A\). Conditional probability given the positive-probability event \(\{X_n=i\}\) is additive over this finite disjoint union. Each term is \(\mathbb{P}(X_{n+1}=j\mid X_n=i)=p_{ij}\), so their sum is the required conditional probability. If \(A\) is empty, the event \(\{X_{n+1}\in A\}\) is empty and its probability is \(0\); the sum over no states is also \(0\). \(\square\)
For example, in the weather matrix, the probability of Rain or Cloudy tomorrow given Clear today is \(p_{12}+p_{13}=\tfrac13+0=\tfrac13\). This is a sum of entries from one row because the conditioning state remains Clear while the possible destination states are combined.
A Common Reversal: Conditioning on the Wrong Time
A transition entry is not generally a probability of the current state given the next state. The difference is the conditioning event. In the weather example, \(p_{12}=\tfrac13\) means \(\mathbb{P}(X_1=\text{Cloudy}\mid X_0=\text{Clear})=\tfrac13\). It does not mean \(\mathbb{P}(X_0=\text{Cloudy}\mid X_1=\text{Clear})=\tfrac13\).
To see the numerical difference, suppose the weather state at time zero is equally likely to be Clear, Cloudy, or Rain. The joint probability of Cloudy at time zero and Clear at time one is \(\tfrac13\cdot\tfrac14=\tfrac1{12}\). The probability of Clear at time one is \(\tfrac13\cdot\tfrac23+\tfrac13\cdot\tfrac14+\tfrac13\cdot\tfrac16=\tfrac{13}{36}\). Therefore, reversing the conditioning gives \(\mathbb{P}(X_0=\text{Cloudy}\mid X_1=\text{Clear})=(\tfrac1{12})/(\tfrac{13}{36})=\tfrac3{13}\), not \(\tfrac13\). The wrong calculation copies \(p_{12}\) into a question that conditions on the future; the correction is to use the joint and marginal probabilities for that reversed conditional event.
The row-sum checks in the examples are useful consistency checks: each row lists the possible next states conditional on one current state. They do not replace careful indexing. When constructing a matrix, write down the state ordering, fill one row at a time, and read every entry aloud as “probability of the column state next, given the row state now.”
Check Your Understanding
For each question, identify the conditioning state and the destination state before writing a matrix entry.
- In an ordering \(s_1,s_2,s_3\), what conditional probability does \(p_{31}\) represent?
- A process has states \(A,B\). Given \(A\), the next state is \(A\) with probability \(\tfrac34\) and \(B\) with probability \(\tfrac14\). Given \(B\), the next state is \(A\) with probability \(\tfrac12\) and \(B\) with probability \(\tfrac12\). Write its matrix in the order \(A,B\) and check both row sums.
- For the weather matrix, calculate the probability of either Clear or Cloudy tomorrow given Rain today.
- Why does a formula for \(\mathbb{P}(X_{n+1}=j\mid X_n=i)\) require \(\mathbb{P}(X_n=i)>0\) when it is defined as a ratio?
- Explain why \(p_{ij}\) generally cannot be read as \(\mathbb{P}(X_n=i\mid X_{n+1}=j)\).