Tutorials › Stochastic Processes › Why Transition Matrices Are Row-Stochastic

Markov Chains: Definitions and Transition Matrices · Tutorial 87 of 994

Why Transition Matrices Are Row-Stochastic

See how the possible next states form a partition, forcing every transition-matrix row to be a probability distribution.

Beginner 9 min read

What You'll Learn

  • Define one-step transition probabilities using conditional probabilities.
  • Prove that every transition probability is nonnegative.
  • Derive the row-sum condition from a partition of the state space.
  • Check finite transition tables using exact fractions.
  • Recognize why countably many possible next states still give a row sum of one.
  • Avoid confusing row sums with column sums.

Why Each Row Describes All Possible Next States

A transition matrix records the possible destinations of a process after one step. For a fixed current state, those destinations are mutually exclusive: the next state cannot be two different states at once. They are also exhaustive: if the process takes values in its stated state space, its next state must be one of those states. These two facts explain why the probabilities in each row are nonnegative and add to one.

Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space, and let \((X_n)_{n\ge0}\) be a discrete-time process taking values in a finite or countable state space \(S\). Write \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\) for its natural filtration. For a time-homogeneous Markov chain, the transition probabilities \(p_{ij}\) give the conditional probability of moving to \(j\) at the next step when the present state is \(i\). In particular, whenever \(\mathbb{P}(X_n=i)>0\), they satisfy \(\mathbb{P}(X_{n+1}=j\mid X_n=i)=p_{ij}\). The Markov property expresses the corresponding conditional law given \(\mathcal{F}_n\) using only \(X_n\).

If state \(i\) has probability zero at a particular time, conditioning on the event \(\{X_n=i\}\) does not define a conditional probability by the elementary event formula. A transition matrix is understood to specify a probability distribution for each state in its stated state space, including states that might not be reached from the chosen initial condition. The Markov property’s conditional identity is an almost-sure identity; it does not by itself determine the transition probabilities at states that are never visited. This distinction lets us discuss a transition law for every state without assigning a conditional probability to a zero-probability event.

Definition: A finite or countable matrix \(P=(p_{ij})_{i,j\in S}\) is row-stochastic if \(p_{ij}\ge0\) for every \(i,j\in S\) and \(\sum_{j\in S}p_{ij}=1\) for every \(i\in S\). For countable \(S\), the row sum means the sum of a nonnegative series.

Nonnegativity is a direct consequence of the definition of probability. The row sum requires one additional idea: partition the event that the current state is \(i\) according to the next state. Because \(S\) is countable, countable additivity applies even when there are infinitely many possible destinations.

The Partition Argument

Theorem: Suppose the transition probabilities of a time-homogeneous Markov chain on a finite or countable state space \(S\) are specified for every state \(i\in S\). Then \(p_{ij}\ge0\) for all \(i,j\), and \(\sum_{j\in S}p_{ij}=1\) for every \(i\). The same conclusion holds at each time for a time-inhomogeneous transition law, with the probabilities allowed to depend on time.

Proof. Fix a state \(i\) and a time \(n\). For any \(j\in S\), a transition probability is a probability under the one-step law from \(i\), so \(p_{ij}\ge0\). If the law is obtained by conditioning on \(\{X_n=i\}\), this statement applies whenever that event has positive probability; the specified transition law for state \(i\) is itself a probability distribution in any case. Now consider the events \(\{X_{n+1}=j\}\), as \(j\) ranges over \(S\), under the one-step law from \(i\). They are pairwise disjoint, since \(X_{n+1}\) has only one value. Their union has probability one, since \(X_{n+1}\in S\) almost surely. Countable additivity therefore gives \(\sum_{j\in S}p_{ij}=\mathbb{P}(X_{n+1}\in S\mid X_n=i)=1\) whenever conditioning on that event is meaningful, and the specified one-step law has the same total mass for every state. This proves both claims for the chosen state. Since \(i\) was arbitrary, they hold for every row. For a time-inhomogeneous law, fix a time as well as a state and apply the same partition argument to that time’s one-step distribution. \(\square\)

For finite \(S\), the partition has finitely many parts, so ordinary finite additivity suffices. For countable \(S\), the sum includes every possible destination; omitting even one destination can make the displayed total less than one. In neither case does the argument require the chain to visit every state with positive probability.

Worked Example: Checking a Three-State Transition Matrix

Suppose \(S=\{a,b,c\}\), and the one-step probabilities are listed as rows, with columns in the order \(a,b,c\):

$$ P= \begin{bmatrix} \tfrac12&\tfrac14&\tfrac14\\ \tfrac14&\tfrac12&\tfrac14\\ \tfrac14&\tfrac14&\tfrac12 \end{bmatrix}. $$

Each entry is nonnegative. Check each row separately, since a row corresponds to fixing the current state. For state \(a\), the total is \(\tfrac12+\tfrac14+\tfrac14=\tfrac24+\tfrac14+\tfrac14=1\). For state \(b\), it is \(\tfrac14+\tfrac12+\tfrac14=\tfrac14+\tfrac24+\tfrac14=1\). For state \(c\), it is \(\tfrac14+\tfrac14+\tfrac12=\tfrac14+\tfrac14+\tfrac24=1\). Thus all three rows are probability distributions, and \(P\) is row-stochastic.

Check by interpretation: starting from \(b\), the next state is exactly one of \(a,b,c\). These alternatives are disjoint and cover all possibilities, and their probabilities \(\tfrac14,\tfrac12,\tfrac14\) total \(1\). The row calculation agrees with the partition argument.

What the Conditions Do—and Do Not—Say

Row-stochasticity is a statement about each fixed current state. It does not say that a chain has the same distribution at different times, nor that different rows must be equal. The rows may assign very different probabilities to destinations, provided each row consists of nonnegative numbers with total one. Likewise, the condition is about a transition law, not about how often the chain visits a state under a particular initial distribution.

Proposition: A finite or countable array \((p_{ij})_{i,j\in S}\) specifies a one-step probability distribution for every current state \(i\) exactly when its entries are nonnegative and each row sums to one.

Proof. For the forward direction, if row \(i\) is a probability distribution on the possible next states, each of its probabilities is nonnegative and the probabilities of all destinations sum to one by the defining properties of a probability distribution. For the reverse direction, fix \(i\). Nonnegativity means every \(p_{ij}\) can serve as a probability assigned to destination \(j\), and the row-sum condition says the total assigned probability is one. Hence the row defines a probability distribution on \(S\). Since this reasoning applies to every \(i\), the array specifies a one-step distribution for every current state. The claim includes a state space with one element: its sole row must have its single entry equal to one. \(\square\)

This proposition checks whether a proposed array has the right form for one-step transition probabilities. It does not prove that a particular observed process has those probabilities: that requires examining its conditional laws. Nor does row-stochasticity alone specify an initial distribution or a complete model of a process. It verifies the probability bookkeeping for one step from each state.

Worked Example: A Table That Passes the Row Check

Consider the proposed transition matrix on \(S=\{1,2,3\}\):

$$ P= \begin{bmatrix} \tfrac12&\tfrac13&\tfrac16\\ \tfrac14&\tfrac12&\tfrac14\\ \tfrac13&\tfrac13&\tfrac13 \end{bmatrix}. $$

All entries are nonnegative. For row \(1\), using denominator \(6\), the sum is \(\tfrac12+\tfrac13+\tfrac16=\tfrac36+\tfrac26+\tfrac16=\tfrac66=1\). For row \(2\), the sum is \(\tfrac14+\tfrac12+\tfrac14=\tfrac14+\tfrac24+\tfrac14=\tfrac44=1\). For row \(3\), it is \(\tfrac13+\tfrac13+\tfrac13=\tfrac33=1\). Therefore the matrix passes the row-stochasticity check.

The column sums are different: column \(1\) totals \(\tfrac12+\tfrac14+\tfrac13=\tfrac6{12}+\tfrac3{12}+\tfrac4{12}=\tfrac{13}{12}\); column \(2\) totals \(\tfrac13+\tfrac12+\tfrac13=\tfrac2{6}+\tfrac3{6}+\tfrac2{6}=\tfrac76\); column \(3\) totals \(\tfrac16+\tfrac14+\tfrac13=\tfrac2{12}+\tfrac3{12}+\tfrac4{12}=\tfrac9{12}=\tfrac34\). These column totals need not equal one. The matrix is a valid row-stochastic matrix despite those column sums.

Countably Many Possible Destinations

When \(S\) is countably infinite, partitioning still works, but the row total is an infinite series. Since the terms are nonnegative, the sum is the limit of its partial sums. The probabilities of the first several destinations need not total one by themselves; the remaining destinations account for the rest.

Worked Example: A Countable Row from Coin Tosses

Let \(S=\{0,1,2,\ldots\}\). From any current state \(i\), imagine tossing a fair coin repeatedly and taking the next state \(j\) to be the number of tails before the first head. Thus reaching \(j\) requires \(j\) tails followed by a head. The probability of that particular sequence is \(p_{ij}=(\tfrac12)^j(\tfrac12)=\tfrac{1}{2^{j+1}}\), for every \(i\ge0\) and \(j\ge0\). These entries are nonnegative.

For the first three possible destinations, the probabilities are \(p_{i0}=\tfrac12\), \(p_{i1}=\tfrac14\), and \(p_{i2}=\tfrac18\). Their partial sum is \(\tfrac12+\tfrac14+\tfrac18=\tfrac48+\tfrac28+\tfrac18=\tfrac78\), so the first three destinations alone do not exhaust the probability. For all destinations from \(0\) through \(m\), the geometric sum is \(\sum_{j=0}^{m}\tfrac{1}{2^{j+1}}=1-\tfrac{1}{2^{m+1}}\). As \(m\) increases without bound, \(\tfrac{1}{2^{m+1}}\) tends to zero, so the full row sum is \(1\). The same calculation applies to every current state \(i\); hence this countably infinite transition law is row-stochastic.

Check: after the first three destinations, the remaining probability is \(1-\tfrac78=\tfrac18\). The formula for the partial sum through \(j=2\) gives \(1-\tfrac1{2^3}=1-\tfrac18=\tfrac78\), consistent with that remaining mass and with the infinite row total of one.

A Common Mistake: Adding Down the Columns

A frequent error is to treat each column as though it represented all destinations from one current state. In the displayed convention, each row fixes the current state, while the entries across that row list the possible next states. Requiring columns to sum to one would impose an extra condition that is not part of row-stochasticity.

For example, in the preceding three-state finite matrix, one might incorrectly reject the matrix because its first column sums to \(\tfrac{13}{12}\), not \(1\). That calculation is correct as a column sum, but it tests the wrong condition. The relevant check for state \(1\) is the first row: \(\tfrac12+\tfrac13+\tfrac16=\tfrac{6+2+1}{6}=\tfrac96=1\). The second and third rows also sum to one, as computed above, so the matrix passes the correct test. A column sum of \(\tfrac{13}{12}\) does not represent the total probability of the next state being anything; it adds entries associated with different current states.

Another common error is to stop after checking nonnegativity. For instance, a proposed row \((\tfrac12,\tfrac14,0)\) has nonnegative entries, but its total is \(\tfrac12+\tfrac14+0=\tfrac34\), not one. If the three states listed are the entire state space, the row omits probability mass \(\tfrac14\). The repair is not to call the row a probability distribution: one must identify a missing possible destination or correct the probabilities so the complete row sums to one.

In practice, verify a proposed transition matrix in two stages: check that every entry is nonnegative, then add the entries across each row. For an infinite state space, the second stage means checking the full nonnegative series, not just a finite partial sum. These checks establish the basic probability structure of a transition law before using it in further calculations.

Check Your Understanding

Use the partition argument and the row convention to answer each question.

  1. Why are the events \(\{X_{n+1}=j\}\), for different \(j\in S\), mutually exclusive when the current state is fixed?
  2. A proposed row is \((\tfrac25,\tfrac15,\tfrac25)\). Check its nonnegativity and total, and decide whether it is a probability distribution.
  3. For a countable state space, why is it necessary to include every possible destination when checking a row sum?
  4. A finite transition matrix has rows summing to one but one column summing to \(\tfrac54\). Does the column sum alone show that the matrix is invalid? Explain.
  5. What limitation arises if one tries to define \(p_{ij}\) only by conditioning on \(\{X_n=i\}\) when \(\mathbb{P}(X_n=i)=0\)?