19.6  Markov Chains

Chapter 9 §11 proved that a Markov chain settles down to a unique steady state, but only under three hypotheses on the eigenvalues of its transition matrix, one of them diagonalizability. It closed with a promise: the Perron–Frobenius theorem would give the same conclusions “for every stochastic matrix with some power having all entries positive, without assuming diagonalizability and without computing eigenvalues”. This section keeps that promise, using the limit theorem of §05. It then asks what happens when no power is positive. Irreducible chains still have a unique steady state, and they approach it on average even when they oscillate. Reducible chains can have many steady states, and among them the absorbing chains, which end in a trap, have an exact theory built on the Neumann series.

Conventions. Stochastic means column-stochastic, as in Definition 9.11.1: A≥0 and every column sums to 1, that is, 1⊤A=1⊤. The entry aij is the probability of moving to state i from state j, and a Markov chain is xk+1=Axk (Definition 9.11.2). Many books use rows and the transposed matrix; we never do. The order ≥ is entrywise.

19.6.1. Steady states and the Perron root

We first place stochastic matrices inside the theory of this chapter. Since xm=Amx0, the entry (Am)ij is the probability of being in state i after m steps when starting from state j. By Lemma 19.2.1 (a) it is positive exactly when the graph G(A) has a walk of length m from j to i: the edges of the graph are the moves the chain can make in one step, and the walks are the routes it can take.

Proposition 19.6.1 (The Perron Root of a Stochastic Matrix)

Let A∈Mn(R) be stochastic. Then:

  • (a) ρ(A)=1, and 1 is a positive left eigenvector for it;
  • (b) the steady states of A are exactly the non-negative eigenvectors for ρ(A) whose entries sum to 1;
  • (c) if A is irreducible, then A has exactly one steady state v, and v>0.

Idea. Example (An irreducible stochastic matrix) already found these facts for one matrix, and the argument there is general. The column sums make 1⊤ a left eigenvector for 1, and no eigenvalue is larger in modulus; so a steady state is a non-negative eigenvector for the Perron root; when A is irreducible, Perron–Frobenius with the normalization 1⊤v=1 leaves room for only one.

Proof.

  • (a) By Proposition 9.11.3 (c), 1∈spec(A) and 1⊤A=1⊤. By Corollary 10.10.5 (a), every eigenvalue has modulus at most 1. So ρ(A)=1.

  • (b) This is Definition 9.11.2 read with (a): a steady state is a probability vector v with Av=v=ρ(A)v.

  • (c) By Theorem 19.3.2 (a), there is u>0 with Au=u; then v=u/(1⊤u) is a steady state with v>0. If v′ is any steady state, it is a non-negative eigenvector, so v′=cv with c>0 by Theorem 19.3.2 (c), and 1=1⊤v′=c1⊤v=c. Hence v′=v.

In the notation of §03, the Perron root of a stochastic matrix is 1, the all-ones vector is a positive left eigenvector, and for an irreducible stochastic matrix the steady state is the right Perron vector.

Warning. A unique positive steady state does not make the chain converge. The swap S=(0110) is stochastic and irreducible, so by (c) it has exactly one steady state, (12,12), and it is positive. Yet the chain started at e1 alternates e1,e2,e1,… and never approaches it. Existence and uniqueness of the steady state come from irreducibility; convergence needs more.

19.6.2. The long-run theorem

The “more” is primitivity. Here are the three conclusions of Theorem 9.11.4, in the same words, under the hypothesis that Chapter 9 §11 promised.

Theorem 19.6.2 (Long-Run Behavior of a Markov Chain)

Let A∈Mn(R) be stochastic, and suppose that Ak>0 for some k≥1. Then:

  • (a) A has exactly one steady state v, and v>0;
  • (b) Am→v1⊤ entrywise as m→∞;
  • (c) for every probability vector x0, the Markov chain xm=Amx0 converges entrywise to v.

Idea. For a stochastic matrix, Theorem 19.5.2 has ρ=1, and the left eigenvector can be taken to be 1, so the limit vw⊤/(w⊤v) becomes v1⊤ once the steady state is normalized by 1⊤v=1. The chain inherits the limit column by column.

Proof. By hypothesis A is primitive (Definition 19.5.1), hence irreducible (Proposition 19.5.1 (b)). So (a) is Proposition 19.6.1 (c).

  • (b) By Proposition 19.6.1 (a), ρ(A)=1 and w=1 is positive with w⊤A=w⊤; and v>0 satisfies Av=v. By Theorem 19.5.2, Am=(1ρ(A)A)m⟶v1⊤1⊤v=v1⊤, since 1⊤v=1.

  • (c) Entry r of Amx0 is ∑s(Am)rs(x0)s, which by (b) converges to ∑svr(x0)s=vr(1⊤x0)=vr.

Compare the hypotheses with those of Theorem 9.11.4. That theorem asked for three facts about the eigenvalues: A diagonalizable over C, aA(1)=1, and |λ|<1 for every other eigenvalue. Chapter 10 §10 (Corollary 10.10.5) removed the first, but still asked to locate every eigenvalue on the unit circle. The new hypothesis is a statement about the zero pattern of one power of A, checked by multiplying matrices; no eigenvalue is computed, and none needs to be. The last two eigenvalue conditions become conclusions, by Proposition 19.5.1 (c) and Theorem 19.3.2 (b), and diagonalizability is simply irrelevant. By Corollary 19.5.5 the hypothesis can often be checked without multiplying at all: an irreducible stochastic matrix with one positive diagonal entry, a state that can stay put, qualifies. In the vocabulary of probability, a stochastic matrix with a positive power is called regular.

Example (A Chain that Cannot Be Diagonalized)

A token moves among three positions. From position 1 it always moves to 3; from 2 it moves to 1 or 3 with probability 12 each; from 3 it moves to 1 or 2 with probability 12 each. So A=(01/21/2001/211/20). Show that Theorem 9.11.4 does not apply but Theorem 19.6.2 does, and find the long-run distribution.

Solution. Diagonalization fails. Expanding det(xI−A) along the first column, pA=x(x2−14)−(14+x2)=x3−34x−14=(x−1)(x+12)2. For the double eigenvalue, A+12I=(1/21/21/201/21/211/21/2) has rank 2: its first two rows are independent, and the third is twice the first minus the second. So gA(−12)=1<2=aA(−12), and A is not diagonalizable (Theorem 9.4.1). Theorem 9.11.4 does not apply.

A positive power. Squaring, A2=(1/21/41/41/21/4001/23/4),A4=(A2)2=(3/85/165/163/83/161/81/41/29/16)>0. So Theorem 19.6.2 applies with k=4. (A3 still has a zero at position (2,1): three steps cannot take the token from 1 to 2.)

The steady state. (A−I)v=0 reads −v1+12v2+12v3=0 and −v2+12v3=0. So v3=2v2, then v1=12v2+v2=32v2, and v is a multiple of (3,2,4). Scaling to sum 1, v=(13,29,49),Am⟶v1⊤. Check: Av=(19+29, 29, 13+19)=(13,29,49). In the long run the token is at position 3 four times out of nine, wherever it starts.

What the Jordan block does. Solving the recurrence exactly (for instance from the Jordan form, as in Chapter 10 §10) gives (Am)11=13(1+2(−12)m),(Am)21=29(1+(3m−1)(−12)m), which one can confirm for m=0,1,2 against I,A,A2. The factor m in the second formula comes from the 2×2 Jordan block for −12, whose powers carry the entry mλm−1 (Chapter 10 §10): the error decays like m2−m rather than 2−m. It still decays, and the theorem never needed to know.

Quick check. Does Theorem 19.6.2 apply to A=(1/211/20)? If so, what is limmAm?

Solution. Yes: A is stochastic and A2=(3/41/21/41/2)>0. The steady state solves −12v1+v2=0, so v=(23,13), and Am→v1⊤=(2/32/31/31/3).

The hypothesis of Theorem 19.6.2 is also necessary for the theorem as stated: if Am→v1⊤ with v>0, then A is primitive (exercise C2). Without the positivity of v it is not needed for convergence: (11/201/2) has no positive power, yet its powers converge to e11⊤, whose steady state has a zero entry.

19.6.3. Irreducible chains: convergence on average

Now drop primitivity but keep irreducibility. By Proposition 19.6.1 (c) the steady state v is still unique and positive, but by Theorem 19.5.3 and Theorem 19.5.4 the chain has h≥2 eigenvalues on the unit circle, and its powers do not converge (Corollary 10.10.5 (b)). What survives is convergence of averages. The average 1m(x0+x1+⋯+xm−1) is, entry by entry, the average over the first m steps of the probability of being in each state; read through linearity of expectation (see the end of this section), it is the expected fraction of those steps spent there. It is this that settles down.

Theorem 19.6.3 (Averages of an Irreducible Chain)

Let A∈Mn(R) be stochastic and irreducible, with steady state v. Then:

  • (a) 1m(I+A+A2+⋯+Am−1)→v1⊤ as m→∞;
  • (b) for every probability vector x0, the averages 1m(x0+x1+⋯+xm−1) of the chain converge to v;
  • (c) Am converges if and only if A is primitive.

Idea. Split every vector into its component along v and a remainder whose entries sum to 0. The remainder lies in the image of I−A, by a dimension count, and on that image the sum ∑k<mAk telescopes: ∑k<mAk(I−A)y=y−Amy, which stays bounded, so dividing by m kills it. The component along v is fixed by every power.

Proof.

  • (a) Let U={x∈Rn:1⊤x=0}, the kernel of the non-zero linear functional x↦1⊤x, so dim⁡U=n−1 by Rank–Nullity (Theorem 2.3.1). Since 1⊤(I−A)=1⊤−1⊤=0⊤, the image of I−A lies in U. The kernel of I−A on Rn is the real eigenspace of A for 1; it contains v≠0, and it has dimension at most gA(1)≤aA(1)=1 by Theorem 9.3.1 and Theorem 19.3.2 (b). (The real and the complex kernel of the real matrix I−A have the same dimension, n minus its rank, since row reduction uses only real arithmetic.) So rank(I−A)=n−1 by Rank–Nullity, and an inclusion of subspaces of equal dimension is an equality: im(I−A)=U.

    Now fix x∈Rn. Since 1⊤v=1, the vector x−(1⊤x)v lies in U, so x=(1⊤x)v+(I−A)y for some y∈Rn. As Akv=v for every k, ∑k=0m−1Akx=m(1⊤x)v+∑k=0m−1(Aky−Ak+1y)=m(1⊤x)v+y−Amy. Every Am is stochastic (Proposition 9.11.3 (b)), so its entries lie in [0,1] and |(Amy)i|≤∑j|yj|. Hence each entry of 1m(y−Amy) has modulus at most 2m∑j|yj|, which tends to 0 because 1m→0, by the Archimedean property, a consequence of completeness (fact (A1) in the introduction to Chapter 16). Dividing the display by m, 1m∑k<mAkx→(1⊤x)v=v1⊤x. Taking x=ej gives the convergence of column j, for each j.

  • (b) 1m∑k<mxk=(1m∑k<mAk)x0→v1⊤x0=v by (a), entry by entry as in the proof of Theorem 19.6.2 (c).

  • (c) (⇐) is Theorem 19.6.2 (b). (⇒) Suppose Am→L. Then Am+1=AAm tends both to L and to AL, so AL=L, and every column of L lies in the real eigenspace for 1, which is span(v) by the proof of (a). Each column of Am has entries ≥0 summing to 1, and both properties survive the limit, by the elementary algebra of limits recalled in the introduction to Chapter 16 (limits respect sums, and a non-strict inequality survives a limit), so each column of L is a probability vector on the line span(v), namely v itself. Thus L=v1⊤>0. As in the proof of Theorem 19.5.3, the n2 entries of Am are then positive for all large m, so A is primitive.

The proof of (a) used irreducibility only to know that the eigenspace for 1 is a line through a probability vector v; nothing about the period or the other eigenvalues entered.

Example (A Walk that Oscillates)

A walker on three sites 1,2,3 in a row steps to a neighboring site at every step, choosing each neighbor with probability 12 when there are two. So A=(01/2010101/20). Show that Am does not converge, and compute the averages of Theorem 19.6.3 exactly.

Solution. The edges of G(A) are 1→2, 2→1, 2→3 and 3→2. Every site reaches every other through site 2, so A is irreducible (Theorem 19.2.5); and every edge joins site 2 to {1,3}, so closed walks have even length and the period is 2. The steady state solves v1=12v2, v3=12v2, so v=(14,12,14). Multiplying out, A2=(1/201/20101/201/2),A3=AA2=A. So Am=A for odd m and Am=A2 for even m≥2, and since A≠A2 the powers do not converge. A walker who starts at site 2 is at site 2 at every even step and never at an odd one.

For the averages, note that 12(A+A2)=(1/41/41/41/21/21/21/41/41/4)=v1⊤. For m=2p, the sum ∑k<2pAk contains I once, A p times and A2 p−1 times, so 12p∑k=02p−1Ak=I−A2+p(A+A2)2p=v1⊤+12p(I−A2)⟶v1⊤. For m=2p+1 there is one more term, A2p=A2, which changes the average by at most 1m in each entry. So the walker spends, in the long run, half its time at the middle site and a quarter at each end, although at no single time is its distribution close to v if it starts at a site.

The oscillation can also be removed rather than averaged. The lazy chain 12(I+A), which at each step stays put with probability 12 and otherwise moves by A, is stochastic, irreducible and has positive diagonal, so it is primitive by Corollary 19.5.5, and it has the same steady state; exercise C1 works this out.

19.6.4. Reducible chains: many steady states

Without irreducibility, uniqueness fails too. The chain can split into parts that never communicate, and each can carry its own equilibrium.

Example (Two Traps)

States 1 and 2 exchange with each other and are never left; state 3 is never left either; state 4 stays with probability 14 and otherwise moves to 1, 2 or 3 with probability 14 each: A=(1/21/401/41/23/401/40011/40001/4). Find all steady states, and the limit of the chain from each starting state.

Solution. Steady states. Let Au=u with u a probability vector. The last row gives 14u4=u4, so u4=0. The first row then gives 12u1+14u2=u1, so u2=2u1; the second and third rows then hold automatically. So u=(s,2s,t,0) with s,t≥0 and 3s+t=1. Writing v1=(13,23,0,0) and v2=e3, the steady states are exactly u=cv1+(1−c)v2,0≤c≤1, the whole segment [v2,v1] of Chapter 18. There are infinitely many, and E1(A)=span(v1,v2) is a plane: aA(1)=2, since pA=(x−1)2(x−14)2, the first factor from the block of states 1,2 and from state 3, the second from the block’s other eigenvalue 14 and from state 4. In particular A is not irreducible, by Proposition 19.6.1 (c).

Limits. The only eigenvalue of modulus 1 is 1, so Am converges by Corollary 10.10.5 (b). Its limit Π satisfies AΠ=Π, as in the proof of Theorem 19.6.3 (c), and its columns are limits of probability vectors, hence probability vectors; so each column of Π is a steady state. Columns 1 and 2 of every Am have zeros in rows 3 and 4, by induction on m: A maps a vector with zeros in those rows to a combination of its own first two columns, which again has zeros there. So columns 1 and 2 of Π are steady states with u3=0, that is, v1. Column 3 of A is e3, so column 3 of every power, and of Π, is e3=v2. For column 4, write it as cv1+(1−c)v2 and find c from a conserved quantity: the row vector y⊤=(1,1,0,23) satisfies y⊤A=y⊤, as a column-by-column check shows (column 4: 14+14+23⋅14=23). Then y⊤Am=y⊤ for all m, hence y⊤Π=y⊤, and entry 4 gives y⊤(cv1+(1−c)v2)=c=23. Thus Π=(1/31/302/92/32/304/90011/30000), with last column 23v1+13v2. The long run depends on where the chain starts: from state 4, the chain ends up in the pair {1,2} with probability 23 and in state 3 with probability 13, the ratio 12:14 of the one-step probabilities of leaving 4 for each.

In general the steady states of a stochastic matrix form a convex set, since a convex combination of probability vectors fixed by A is again one; the example shows it can be a segment rather than a point. One steady state for each part of the chain that, once entered, is never left, and all convex combinations of these: that is the general picture, which we do not prove here.

19.6.5. Absorbing chains

The simplest traps are single states. A state j is absorbing if ajj=1, so that column j of A is ej: once there, the chain stays. Absorbing states model the end of a process: a game won or lost, a customer who has left, a molecule that has reacted.

Definition 19.6.1 (Absorbing Chain)

A stochastic matrix A∈Mn(R) is absorbing if it has at least one absorbing state, and from every state some absorbing state can be reached: for every j there are an absorbing state i and an m≥0 with (Am)ij>0. The states that are not absorbing are called transient.

Number the states so that the t≥1 transient states come first and the r≥1 absorbing states last. Column j for a transient j splits into the probabilities of moving to transient states and to absorbing states, and the column of an absorbing state is a standard basis vector. So A has the block form A=(Q0RIr),Q∈Mt(R),R∈Mr×t(R), with Q,R≥0 and 1⊤Q+1⊤R=1⊤. Multiplying blocks and inducting on m, Am=(Qm0RmIr),Rm=R(I+Q+⋯+Qm−1), since Am+1=AAm has lower-left block RQm+Rm=Rm+1. The entry (Qm)ij is the probability of being at transient state i after m steps from transient state j; the column sums of Qm are the probabilities of not yet having been absorbed.

Lemma 19.6.4 (Transient Mass Dies Out)

If A is absorbing, with Q as above, then every eigenvalue of Q has modulus less than 1, and Qm→0.

Idea. Every column of Q sums to at most 1, which only gives ρ(Q)≤1. But after enough steps every transient state has leaked some mass into an absorbing state, so every column of a suitable power QM sums to strictly less than 1, and the column-sum bound of Chapter 16 gives ρ(QM)<1.

Proof. For absorbing i and any j, (Am+1)ij=∑lail(Am)lj≥aii(Am)ij=(Am)ij, since all terms are non-negative; so the probability of being at i never decreases. Fix a transient j. By Definition 19.6.1 there are an absorbing i and mj with (Amj)ij>0, and then (Am)ij>0 for every m≥mj. Let M be the largest of the mj over the transient j. Column j of AM sums to 1 (Proposition 9.11.3 (b)) and has a positive entry (AM)ij in the absorbing rows, so column j of QM sums to less than 1. Since QM≥0, its largest absolute column sum is some c<1, and by Corollary 16.4.2, ρ(QM)≤c<1. By Theorem 9.10.1 with q=xM, the eigenvalues of QM are the M-th powers of those of Q, so ρ(Q)M=ρ(QM)<1 and ρ(Q)<1. Finally Qm→0 by Theorem 10.10.2.

The Neumann series now does all the work.

Theorem 19.6.5 (Absorbing Chains)

Let A=(Q0RIr) be absorbing, in the block form above. Then:

  • (a) I−Q is invertible, and the fundamental matrix N:=(I−Q)−1=∑k≥0Qk satisfies N≥0;
  • (b) Am→(00RNIr) entrywise;
  • (c) every column of the r×t matrix B:=RN is a probability vector.

Idea. The lemma gives ρ(Q)<1, which is exactly what the Neumann series needs. In the block formula for Am, the lower-left block is R times a partial sum of that series, so it converges to RN; and column sums equal to 1 pass to the limit.

Proof.

  • (a) By Lemma 19.6.4 and Theorem 10.10.6, ∑kQk converges and equals (I−Q)−1. Each partial sum is ≥0, and a limit of non-negative numbers is non-negative, since a non-strict inequality survives a limit (the elementary algebra of limits, recalled in the introduction to Chapter 16); so N≥0.

  • (b) By the block formula, the upper-left block of Am is Qm→0 (Lemma 19.6.4), and the lower-left block is Rm=R∑k<mQk. Each entry of Rm is a fixed linear combination of entries of the partial sum, so Rm→RN by the algebra of limits, (B3) of Chapter 10 §10. The other two blocks do not depend on m.

  • (c) Every column of Am sums to 1, and so does every column of the limit in (b). For a transient j, column j of the limit is (0,Bej), so the entries of Bej sum to 1; they are non-negative because R,N≥0.

Reading the answer. The theorem is pure algebra; its meaning comes from reading entries as probabilities. The (i,j)-entry of the limit in (b), for absorbing i and transient j, is the limit of the non-decreasing probabilities of being at i after m steps from j: the probability of being absorbed at i. So B=RN is the matrix of absorption probabilities. Two further readings use a fact from probability that this book does not develop, linearity of expectation: the expected number of steps at which an event occurs is the sum over the steps of the probabilities of that event. With it, since (Qk)ij is the probability of being at transient i at step k from j, Nij=∑k≥0(Qk)ij=expected number of visits to i starting from j, counting the visit at step 0 when i=j; and summing over i, the column sums τj=(1⊤N)j are the expected numbers of steps before absorption. Nothing in the proofs depends on these readings.

Example (Gambler’s Ruin)

A gambler holds 1, 2 or 3 coins and bets one coin at a time on a fair toss, winning or losing a coin with probability 12 each. Play stops when the gambler holds 0 coins (ruin) or 4 coins (target). Find the fundamental matrix, the expected length of play, and the probability of reaching the target, from each starting fortune.

Solution. The transient states are the fortunes 1,2,3, in that order, and the absorbing ones are 0 and 4, in that order. From fortune j the gambler moves to j−1 or j+1 with probability 12 each, so Q=(01/201/201/201/20),R=(1/200001/2), the first row of R recording ruin from fortune 1 and the second reaching the target from fortune 3. Each column of (QR) sums to 1, and every fortune reaches 0 by losing, so the chain is absorbing.

The fundamental matrix. Solve (I−Q)N=I with I−Q=(1−1/20−1/21−1/20−1/21). The result is N=(3/211/21211/213/2); check the first column: (I−Q)(32,1,12)=(32−12, −34+1−14, −12+12)=(1,0,0), and the other columns likewise. A gambler starting with 2 coins holds exactly 2 coins at 2 steps on average, counting the start, and holds 1 or 3 coins at one step each on average.

Length of play. 1⊤N=(3,4,3): from fortunes 1,2,3 the game lasts 3, 4, 3 tosses on average.

Absorption. B=RN=(3/41/21/41/41/23/4). From fortune j the gambler reaches the target with probability j/4 and is ruined with probability 1−j/4. Each column sums to 1, as Theorem 19.6.5 (c) requires: the game ends with probability 1. Both answers match the classical formulas for a fair game with target T=4: success probability j/T and expected length j(T−j), which gives 3,4,3.

The matrix Q of this example has eigenvalues 0 and ±12, of modulus less than 1 as Lemma 19.6.4 requires; but the lemma was proved without finding them, which is the pattern of this whole section.

19.6.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State the long-run theorem Theorem 19.6.2, and name the three hypotheses of Theorem 9.11.4 that it no longer needs.
  • (b) True or false: every irreducible stochastic matrix has exactly one steady state. Justify your answer.
  • (c) True or false: for every irreducible stochastic matrix, Am converges. Justify your answer.
  • (d) True or false: if a stochastic matrix has two different steady states, it has infinitely many. Justify your answer.
  • (e) In an absorbing chain, what do the column sums of the fundamental matrix measure, and why do the columns of RN sum to 1?

Solution.

  • (a) If A is stochastic and Ak>0 for some k, then A has exactly one steady state v, it is positive, Am→v1⊤, and every chain Amx0 converges to v. It no longer assumes that A is diagonalizable, that aA(1)=1, or that every other eigenvalue has modulus less than 1.

  • (b) True, by Proposition 19.6.1 (c); moreover the steady state is positive.

  • (c) False. The swap (0110) is irreducible and stochastic, and its powers alternate between I and itself. By Theorem 19.6.3 (c), the powers converge exactly when the matrix is primitive.

  • (d) True. If u≠u′ are steady states, then cu+(1−c)u′ for 0≤c≤1 is non-negative, has entries summing to 1, and is fixed by A; different c give different vectors, since u−u′≠0.

  • (e) The column sum (1⊤N)j is the expected number of steps before absorption from transient state j. The columns of RN sum to 1 because the columns of Am do and Qm→0 (Theorem 19.6.5 (c)): absorption is certain.

B. Practice

Exercise (B1: When does the long-run theorem apply?)

For each stochastic matrix, determine whether Theorem 19.6.2 applies. Justify your answer, and when it applies, find the limit of Am.

  • (a) (001/2100011/2).
  • (b) (001100010).
  • (c) (1/201/21).

Solution.

  • (a) It applies. The edges of G(A) are 1→2, 2→3, 3→1 and the loop 3→3. The cycle 1→2→3→1 reaches every state from every state, so A is irreducible (Theorem 19.2.5). It has the positive diagonal entry a33, so it is primitive by Corollary 19.5.5. The steady state solves v1=12v3, v2=v1, so v=(1,1,2)/4, and Am→v1⊤, every column equal to (14,14,12). Check: Av=(14,14,14+14)=v.

  • (b) It does not apply. This is a permutation matrix, so every power is a permutation matrix (Lemma 3.4.7) and has zero entries. Its powers cycle with period 3 (Example (The Cyclic Permutation)) and do not converge.

  • (c) It does not apply. Every power is lower triangular with (1,2)-entry 0, as one checks by induction: Am=(2−m01−2−m1). The powers converge nonetheless, to (0011)=e21⊤: state 2 is absorbing, and e2 is the unique steady state, with a zero entry.

Exercise (B2: A three-state chain)

Let A=(1/21/401/21/21/201/41/2).

  • (a) Show that A is stochastic and that A2>0.
  • (b) Find the steady state, and hence limmAm and the long-run distribution of every chain with this transition matrix.

Solution.

  • (a) The entries are non-negative and the columns sum to 1. Multiplying out, A2=(3/81/41/81/21/21/21/81/43/8)>0.
  • (b) (A−I)v=0: the first row gives −12v1+14v2=0, so v2=2v1, and the third gives 14v2−12v3=0, so v3=12v2=v1. So v is a multiple of (1,2,1), and scaling to sum 1 gives v=(14,12,14). By Theorem 19.6.2, Am→v1⊤, every column equal to v, and every chain converges to v whatever its initial distribution.
Exercise (B3: An unfair game)

A gambler holds 1 or 2 coins and wins each toss with probability 13, losing with probability 23. Play stops at 0 or 3 coins. Find the fundamental matrix, the expected length of play and the probability of reaching 3 coins from each starting fortune.

Solution. Order the states as 1,2 (transient) and 0,3 (absorbing). From 1: to 2 with probability 13, to 0 with 23. From 2: to 3 with 13, to 1 with 23. So Q=(02/31/30),R=(2/3001/3). The chain is absorbing, since from either fortune repeated losses reach 0. Then I−Q=(1−2/3−1/31) has determinant 1−29=79, so by Theorem 0.9.8 N=97(12/31/31)=(9/76/73/79/7). The expected lengths of play are 1⊤N=(127,157), and RN=(6/74/71/73/7). So the probability of reaching 3 coins is 17 from 1 coin and 37 from 2 coins, far below the fair values 13 and 23. The columns of RN sum to 1, as they must.

C. Going deeper

Exercise (C1: The lazy chain)

Let A∈Mn(R) be stochastic and irreducible, with steady state v, and let M=12(I+A).

  • (a) Prove that M is stochastic and primitive, and that v is its unique steady state. Deduce that Mm→v1⊤.
  • (b) Let A be the walk of Example (A Walk that Oscillates). Show that M is the matrix of exercise B2, and that Mm=v1⊤+2−mF for every m≥1, where F=12(10−1000−101).

Hint: write M in terms of v1⊤ and F.

Solution.

  • (a) M≥0, and 1⊤M=12(1⊤+1⊤A)=1⊤, so M is stochastic. By Exercise (C1: Shifting by the identity) (a) with t=1, A+I is primitive, say (A+I)k>0; then Mk=2−k(A+I)k>0, so M is primitive. Also Mv=12(v+v)=v. By Theorem 19.6.2 (a), M has exactly one steady state, so it is v, and by part (b) of that theorem Mm→v1⊤.

  • (b) With A as in Example (A Walk that Oscillates), M=12(11/2011101/21)=(1/21/401/21/21/201/41/2), the matrix of Exercise (B2: A three-state chain), and v=(14,12,14). Put L=v1⊤, every column equal to v. Then L2=v(1⊤v)1⊤=L; 1⊤F=0⊤, since each column of F sums to 0, so LF=v(1⊤F)=0; and Fv=12(14−14, 0, −14+14)=0, so FL=(Fv)1⊤=0. Also F2=14(20−2000−202)=F. Subtracting, M−L=14(10−1000−101)=12F, so M=L+12F. If Mm=L+2−mF, then Mm+1=(L+12F)(L+2−mF)=L2+2−mLF+12FL+2−m−1F2=L+2−(m+1)F, so the formula holds for every m≥1 by induction, starting from M=L+12F. The lazy walk converges although the walk itself oscillates, and its distance to the limit halves at every step.

Exercise (C2: The converse of the long-run theorem)

Let A∈Mn(R) be stochastic.

  • (a) Prove that if Am→v1⊤ for some v>0, then A is primitive.
  • (b) Give a stochastic A with Am→v1⊤ for a probability vector v, but no power of A positive. Which entry of v is responsible?

Solution.

  • (a) The limit v1⊤ has (i,j)-entry vi>0. Each of the n2 entries of Am converges to a positive number, so it is positive for all m beyond some mij; for m larger than all the mij, Am>0. So A is primitive.

  • (b) A=(11/201/2). By induction Am=(11−2−m02−m): indeed AAm has first row (1, 1−2−m+2−m−1)=(1, 1−2−(m+1)) and second row (0, 2−(m+1)). So Am→(1100)=e11⊤, while every power has (2,1)-entry 0. The responsible entry is v2=0: (a) fails exactly because v is not positive.

Exercise (C3: First-step analysis)

Let A be absorbing, with fundamental matrix N and τ⊤=1⊤N.

  • (a) Prove that N=I+NQ, and deduce that τj=1+∑iqijτi for every transient j. Interpret this equation.
  • (b) Prove, by multiplying by R, that B=RN satisfies B=R+BQ, and interpret it.
  • (c) Use (a) to recompute the expected lengths of play (3,4,3) of Example (Gambler’s Ruin) without inverting a matrix.

Solution.

  • (a) N(I−Q)=I because N is the inverse of I−Q, so N=I+NQ. Multiplying on the left by 1⊤, τ⊤=1⊤+τ⊤Q, whose j-th entry is τj=1+∑iτiqij. In words: from j, one step is taken, the chain lands at transient i with probability qij, and from there the expected remaining time is τi; landing at an absorbing state contributes nothing more.

  • (b) Multiply N=I+NQ on the left by R: B=R+BQ, that is, bij=rij+∑lbilqlj. The probability of absorption at i from j is the probability of stepping into i at once, plus the probability of stepping to a transient l and being absorbed at i from there.

  • (c) With Q as in Example (Gambler’s Ruin), (a) reads τ1=1+12τ2, τ2=1+12τ1+12τ3, τ3=1+12τ2. The first and third equations give τ1=τ3=1+12τ2, so τ2=1+τ1=1+1+12τ2, giving τ2=4 and τ1=τ3=3. (The system has only one solution, since its matrix is (I−Q)⊤, which is invertible by Theorem 19.6.5 (a).)

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.