Alessandro Palliccia

Stochastic Dynamical Models

Recurrent and transient states

606 words,

Does a Markov chain started at a state ii come back to i?{i?}

Recurrent and transient states

Throughout, (Xn)n≥0(X_n)_{n \ge 0} is a Markov chain on the state space II with transition matrix P=(pij),{P = (p_{ij}),} defined on a probability space with probability P.{\mathbb{P}.}

Definition 3.1. A state ii is called recurrent if

P(⋃n=1∞{Xn=i} ∣ {X0=i})=1,\mathbb{P}\Biggl( \bigcup_{n=1}^{\infty} \{ X_n = i \} \,\Bigg|\, \{ X_0 = i \} \Biggr) = 1,

otherwise it is called transient.

According to Definition 3.1, ii is recurrent if, starting from the state ii at time 0, the Markov chain returns to the state ii almost surely in a finite time. In particular, if pii=1,{p_{ii} = 1,} then ii is recurrent; such a state is called absorbing, or a trap.

First entrance times

Definition 3.2 (First entrance time). Let jj be a state. The first entrance time in j,j, or first visit time in j,j, is the random variable with values in N∪{+∞}{\mathbb{N} \cup \{+\infty\}}

Tj(ω)={min⁡{n≥1:Xn(ω)=j}if {n≥1:Xn(ω)=j}≠∅,+∞otherwise.T_j(\omega) = \begin{cases} \min\{ n \ge 1 : X_n(\omega) = j \} & \text{if } \{ n \ge 1 : X_n(\omega) = j \} \neq \emptyset, \\ +\infty & \text{otherwise.} \end{cases}

Note that, for every state j,j,

{Tj<+∞}=⋃1≤n<+∞{Xn=j},{Tj=1}={X1=j},{Tj=n}={Xn=j}∩⋂1≤m≤n−1{Xm≠j},n>1.\begin{aligned} \{ T_j < +\infty \} &= \bigcup_{1 \le n < +\infty} \{ X_n = j \}, \\ \{ T_j = 1 \} &= \{ X_1 = j \}, \\ \{ T_j = n \} &= \{ X_n = j \} \cap \bigcap_{1 \le m \le n-1} \{ X_m \neq j \}, \qquad n > 1. \end{aligned}

Notation. For simplicity we denote by Pi\mathbb{P}_i the conditional probability

Pi(⋅)=P(⋅∣{X0=i}),\mathbb{P}_i(\cdot) = \mathbb{P}(\cdot \mid \{ X_0 = i \}),

and by Ei\mathbb{E}_i the expectation with respect to Pi.{\mathbb{P}_i.}

For all n>0{n > 0} and all i,j∈I{i, j \in I} let

fij(n)=Pi{Tj=n},fij(0)=0,f^{(n)}_{ij} = \mathbb{P}_i\{ T_j = n \}, \qquad f^{(0)}_{ij} = 0,

and also

fij∗=∑1≤n<+∞fij(n)=Pi{Tj<+∞}.f^*_{ij} = \sum_{1 \le n < +\infty} f^{(n)}_{ij} = \mathbb{P}_i\{ T_j < +\infty \}.

The Markov chain (Xn)n≥0(X_n)_{n \ge 0} is time-homogeneous, therefore, for every m≥0{m \ge 0} with P{Xm=i}>0,{\mathbb{P}\{ X_m = i \} > 0,}

fij(n)=P({Xm+n=j}∩⋂1≤ν≤n−1{Xm+ν≠j} ∣ {Xm=i}).f^{(n)}_{ij} = \mathbb{P}\Biggl( \{ X_{m+n} = j \} \cap \bigcap_{1 \le \nu \le n-1} \{ X_{m+\nu} \neq j \} \,\Bigg|\, \{ X_m = i \} \Biggr).

Note that a state ii is recurrent if fii∗=1{f^*_{ii} = 1} and transient if fii∗<1.{f^*_{ii} < 1.}

The renewal equation

Theorem 3.3 (Renewal equation). Let i,j∈I.{i, j \in I.} For all n≥1{n \ge 1} we have

pij(n)=∑ν=1nfij(ν)pjj(n−ν).(6)p^{(n)}_{ij} = \sum_{\nu=1}^{n} f^{(\nu)}_{ij} p^{(n-\nu)}_{jj}. \tag{6}

Proof (complete). Recall that Pi=P(⋅∣{X0=i}){\mathbb{P}_i = \mathbb{P}(\cdot \mid \{ X_0 = i \})} by definition. Since

{Xn=j}=⋃ν=1n({Xn=j}∩{Tj=ν}),\{ X_n = j \} = \bigcup_{\nu=1}^{n} \big( \{ X_n = j \} \cap \{ T_j = \nu \} \big),

by the Markov property

pij(n)=Pi{Xn=j}=∑1≤ν≤nPi{Xn=j,Tj=ν}=Pi{Xn=j,Xn−1≠j,…,X2≠j,X1≠j}+∑1≤ν≤n−1Pi{Xn=j,Xν=j,Xν−1≠j,…,X1≠j}\begin{aligned} p^{(n)}_{ij} &= \mathbb{P}_i\{ X_n = j \} = \sum_{1 \le \nu \le n} \mathbb{P}_i\{ X_n = j, T_j = \nu \} \\ &= \mathbb{P}_i\{ X_n = j, X_{n-1} \neq j, \dots, X_2 \neq j, X_1 \neq j \} \\ &\quad + \sum_{1 \le \nu \le n-1} \mathbb{P}_i\{ X_n = j, X_\nu = j, X_{\nu-1} \neq j, \dots, X_1 \neq j \} \end{aligned}

and

pij(n)=fij(n)+∑1≤ν≤n−1Pi{Xn=j∣Xν=j,Xν−1≠j,…,X1≠j}⋅Pi{Xν=j,Xν−1≠j,…,X1≠j}=fij(n)+∑1≤ν≤n−1Pi{Xn=j∣Xν=j} Pi{Tj=ν}=fij(n)+∑1≤ν≤n−1fij(ν)pjj(n−ν).\begin{aligned} p^{(n)}_{ij} &= f^{(n)}_{ij} + \sum_{1 \le \nu \le n-1} \mathbb{P}_i\{ X_n = j \mid X_\nu = j, X_{\nu-1} \neq j, \dots, X_1 \neq j \} \\ &\qquad \cdot \mathbb{P}_i\{ X_\nu = j, X_{\nu-1} \neq j, \dots, X_1 \neq j \} \\ &= f^{(n)}_{ij} + \sum_{1 \le \nu \le n-1} \mathbb{P}_i\{ X_n = j \mid X_\nu = j \} \, \mathbb{P}_i\{ T_j = \nu \} \\ &= f^{(n)}_{ij} + \sum_{1 \le \nu \le n-1} f^{(\nu)}_{ij} p^{(n-\nu)}_{jj}. \end{aligned}

This proves (6). ■\blacksquare

A criterion for recurrence

The proof of Theorem 3.5 uses Lemma 3.4, also known as Abel’s lemma. It could be proved directly, but it is an immediate consequence of the monotone convergence theorem, and its proof is skipped.

Lemma 3.4. Let (an)n≥0(a_n)_{n \ge 0} be a sequence of nonnegative real numbers such that the power series

A(s)=∑n=0∞ansnA(s) = \sum_{n=0}^{\infty} a_n s^n

has radius of convergence r≥1.{r \ge 1.} Then, with both sides possibly equal to +∞,{+\infty,}

lim⁡s→1−A(s)=∑n=0∞an.\lim_{s \to 1^-} A(s) = \sum_{n=0}^{\infty} a_n.

Theorem 3.5. For every state ii the following are equivalent.
(a) The state ii is recurrent.
(b) The series ∑n≥0pii(n)\sum_{n \ge 0} p^{(n)}_{ii} is divergent.

If ii is transient, then

∑n=0∞pii(n)=11−fii∗=1Pi{Ti=∞}.\sum_{n=0}^{\infty} p^{(n)}_{ii} = \frac{1}{1 - f^*_{ii}} = \frac{1}{\mathbb{P}_i\{ T_i = \infty \}}.

Proof (complete). Consider the generating functions of the sequences (pii(n))n≥0(p^{(n)}_{ii})_{n \ge 0} and (fii(n))n≥0,{(f^{(n)}_{ii})_{n \ge 0},}

Pii(s)=∑n=0∞pii(n)sn,Fii(s)=∑n=0∞fii(n)sn.P_{ii}(s) = \sum_{n=0}^{\infty} p^{(n)}_{ii} s^n, \qquad F_{ii}(s) = \sum_{n=0}^{\infty} f^{(n)}_{ii} s^n.

In both cases the radius of convergence is r≥1,{r \ge 1,} because the sequences (pii(n))n≥0(p^{(n)}_{ii})_{n \ge 0} and (fii(n))n≥0(f^{(n)}_{ii})_{n \ge 0} are bounded. By the renewal equation (6) of Theorem 3.3 with j=i,{j = i,} for all n≥1{n \ge 1} we have

pii(n)sn=sn∑ν=1nfii(ν)pii(n−ν)=∑ν=1nfii(ν)sνpii(n−ν)sn−ν.p^{(n)}_{ii} s^n = s^n \sum_{\nu=1}^{n} f^{(\nu)}_{ii} p^{(n-\nu)}_{ii} = \sum_{\nu=1}^{n} f^{(\nu)}_{ii} s^\nu p^{(n-\nu)}_{ii} s^{n-\nu}.

Summing over n≥1,{n \ge 1,} we obtain

Pii(s)−1=∑n=1∞pii(n)sn=∑n=1∞∑ν=1nfii(ν)sνpii(n−ν)sn−ν=∑ν=1∞fii(ν)sν∑n=ν∞pii(n−ν)sn−ν=∑ν=1∞fii(ν)sν∑n=0∞pii(n)sn=Fii(s)Pii(s).\begin{aligned} P_{ii}(s) - 1 &= \sum_{n=1}^{\infty} p^{(n)}_{ii} s^n \\ &= \sum_{n=1}^{\infty} \sum_{\nu=1}^{n} f^{(\nu)}_{ii} s^\nu p^{(n-\nu)}_{ii} s^{n-\nu} \\ &= \sum_{\nu=1}^{\infty} f^{(\nu)}_{ii} s^\nu \sum_{n=\nu}^{\infty} p^{(n-\nu)}_{ii} s^{n-\nu} \\ &= \sum_{\nu=1}^{\infty} f^{(\nu)}_{ii} s^\nu \sum_{n=0}^{\infty} p^{(n)}_{ii} s^n \\ &= F_{ii}(s) P_{ii}(s). \end{aligned}

Therefore, for all s∈(−1,1),{s \in (-1, 1),}

Pii(s)=11−Fii(s).P_{ii}(s) = \frac{1}{1 - F_{ii}(s)}.

The conclusion follows from an application of Abel’s lemma, noting that

lim⁡s→1−Fii(s)=fii∗,lim⁡s→1−Pii(s)=∑n=0∞pii(n).■\lim_{s \to 1^-} F_{ii}(s) = f^*_{ii}, \qquad \lim_{s \to 1^-} P_{ii}(s) = \sum_{n=0}^{\infty} p^{(n)}_{ii}. \tag*{$\blacksquare$}

Classes and visits

Corollary 3.6. Let JJ be a class of states and j∈J.{j \in J.} If jj is recurrent (respectively, transient), then all elements of JJ are recurrent (respectively, transient).

Proof (complete). Let k∈J∖{j}.{k \in J \setminus \{j\}.} Since kk and jj communicate, there exist l,m≥1{l, m \ge 1} such that

pjk(l)>0,pkj(m)>0.p^{(l)}_{jk} > 0, \qquad p^{(m)}_{kj} > 0.

For every integer n≥1{n \ge 1} we have

pkk(l+n+m)≥pkj(m)pjj(n)pjk(l),pjj(l+n+m)≥pjk(l)pkk(n)pkj(m),\begin{aligned} p^{(l+n+m)}_{kk} &\ge p^{(m)}_{kj} p^{(n)}_{jj} p^{(l)}_{jk}, \\ p^{(l+n+m)}_{jj} &\ge p^{(l)}_{jk} p^{(n)}_{kk} p^{(m)}_{kj}, \end{aligned}

so that the series ∑n≥0pkk(n)\sum_{n \ge 0} p^{(n)}_{kk} and ∑n≥0pjj(n)\sum_{n \ge 0} p^{(n)}_{jj} are both convergent or both divergent. The conclusion follows from Theorem 3.5. ■\blacksquare

For every state j,{j,} the sum of the series ∑n≥0pij(n)\sum_{n \ge 0} p^{(n)}_{ij} is the average sojourn time in j,j, the average number of visits to j,{j,} starting from i.i. The random variable ∑n≥01{Xn=j}\sum_{n \ge 0} \mathbf{1}_{\{ X_n = j \}} represents the random time spent in j,{j,} because it counts how many times the event {Xn=j}{\{ X_n = j \}} occurs, and its expectation is

Ei[∑n≥01{Xn=j}]=∑n≥0Ei[1{Xn=j}]=∑n≥0Pi{Xn=j}=∑n≥0pij(n).(7)\mathbb{E}_i\Biggl[ \sum_{n \ge 0} \mathbf{1}_{\{ X_n = j \}} \Biggr] = \sum_{n \ge 0} \mathbb{E}_i\big[ \mathbf{1}_{\{ X_n = j \}} \big] = \sum_{n \ge 0} \mathbb{P}_i\{ X_n = j \} = \sum_{n \ge 0} p^{(n)}_{ij}. \tag{7}

Corollary 3.7. If jj is a transient state, then for every state ii the series

∑n=0∞pij(n)(8)\sum_{n=0}^{\infty} p^{(n)}_{ij} \tag{8}

is convergent. In particular, starting from any state i,{i,} the Markov chain visits jj only a finite number of times almost surely.

Proof (complete). If i=j,{i = j,} convergence follows from Theorem 3.5. If i≠j,{i \neq j,} then, by the renewal equation (6),{(6),} we have

∑n=1∞pij(n)=∑n=1∞∑ν=1nfij(ν)pjj(n−ν)=∑ν=1∞fij(ν)∑n=ν∞pjj(n−ν)=fij∗∑n=0∞pjj(n)<∞.\begin{aligned} \sum_{n=1}^{\infty} p^{(n)}_{ij} &= \sum_{n=1}^{\infty} \sum_{\nu=1}^{n} f^{(\nu)}_{ij} p^{(n-\nu)}_{jj} \\ &= \sum_{\nu=1}^{\infty} f^{(\nu)}_{ij} \sum_{n=\nu}^{\infty} p^{(n-\nu)}_{jj} \\ &= f^*_{ij} \sum_{n=0}^{\infty} p^{(n)}_{jj} < \infty. \end{aligned}

In particular, by (7),{(7),} the random variable ∑n≥01{Xn=j}\sum_{n \ge 0} \mathbf{1}_{\{ X_n = j \}} has finite expectation under Pi.{\mathbb{P}_i.} It follows that it is almost surely finite, and so only a finite number of the events {Xn=j}{\{ X_n = j \}} occur. ■\blacksquare

In the case where the number of states is finite, the Markov chain cannot visit only transient states, each one a finite number of times. Corollary 3.8 is a consequence.

Corollary 3.8. A Markov chain with a finite set of states II has at least one recurrent state.

Proof (complete). Suppose, by contradiction, that all states are transient. For all i,j{i, j} the series (8) is convergent; in particular

lim⁡n→∞pij(n)=0.\lim_{n \to \infty} p^{(n)}_{ij} = 0.

The matrix P(n)P^{(n)} is stochastic, and so, for all n≥1,{n \ge 1,} we also have

∑j∈Ipij(n)=1.\sum_{j \in I} p^{(n)}_{ij} = 1.

Taking the limit as nn goes to infinity and exchanging limit and sum on j,{j,} we find the contradiction 0=1.{0 = 1.} ■\blacksquare