Tutorials › Stochastic Processes › Boundary Cases in Return Calculations

Recurrence and Transience · Tutorial 175 of 994

Boundary Cases in Return Calculations

Learn how the probability of returning determines the distribution and expected number of visits, including the absorbing and no-return boundary cases.

Advanced 10 min read

What You'll Learn

  • Define first-return probability and total visits from a specified starting state.
  • Derive the geometric distribution of the number of returns.
  • Relate expected visits to the return-probability series.
  • Distinguish a self-loop probability from the probability of ever returning.
  • Analyze absorbing states and states that cannot be revisited after departure.
  • Identify errors caused by counting only one-step returns.

Return Probability and Total Visits

A return calculation has two related quantities that are easy to conflate. The first is the probability of ever returning to a state after time zero. The second is how many times the chain visits that state, counting its initial visit. An absorbing state has both an immediate return and infinitely many visits. A state that is left and can never be revisited has no return and exactly one visit. A self-loop can produce intermediate behavior, but its one-step probability alone does not determine the probability of ever returning.

Let \((X_n)_{n\ge0}\) be a discrete-time Markov chain on a finite or countable state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with transition matrix \(P=(p_{ij})\). Every row of \(P\) sums to \(1\). Use the natural filtration \(\mathcal{F}_n=\sigma(X_0,\ldots,X_n)\), and let \(\mathbb{P}_i\) denote probability when \(X_0=i\). The first return time to \(i\) is \(T_i^+=\inf\{n\ge1:X_n=i\}\), with \(\inf\varnothing=\infty\). Define the first-return probability \(f_i=\mathbb{P}_i(T_i^+<\infty)\). Count visits from time zero by \(V_i=\sum_{n\ge0}\mathbf{1}_{\{X_n=i\}}\), allowing \(V_i=\infty\).

Theorem: For a Markov chain started at \(i\), the number \(V_i\) of visits to \(i\), including time zero, satisfies \(\mathbb{P}_i(V_i\ge r+1)=f_i^r\) for every integer \(r\ge0\). If \(f_i<1\), then \(\mathbb{P}_i(V_i=r+1)=(1-f_i)f_i^r\) for \(r\ge0\) and \(\mathbb{E}_i[V_i]=1/(1-f_i)\). If \(f_i=1\), then \(V_i=\infty\) almost surely and \(\mathbb{E}_i[V_i]=\infty\). In both cases, as an equality of extended nonnegative quantities, \(\sum_{n\ge0}p_{ii}^{(n)}=\mathbb{E}_i[V_i]\).

The theorem concerns visits, not just the first step. In particular, \(p_{ii}\) is the probability of returning at time \(1\), whereas \(f_i\) includes returns at every possible positive time. To justify the repeated-return calculation, define \(T_i^{(0)}=0\) and \(T_i^{(r+1)}=\inf\{n>T_i^{(r)}:X_n=i\}\), setting later return times to \(\infty\) once a return time is infinite. These are stopping times for the natural filtration. At each finite return time, the Markov property says that the future chain has the law of a chain started at \(i\). In discrete time this stopping-time version follows by splitting into the events \(\{T_i^{(r)}=n\}\): on each event, the ordinary Markov property at deterministic time \(n\) gives the transition law from \(X_n=i\), and summing over \(n\) gives the claim.

Proof. We first show by induction that \(\mathbb{P}_i(T_i^{(r)}<\infty)=f_i^r\). For \(r=0\), \(T_i^{(0)}=0\), so the probability is \(1=f_i^0\). If \(T_i^{(r)}<\infty\), the Markov property at that return time gives probability \(f_i\) of another return. Therefore \(\mathbb{P}_i(T_i^{(r+1)}<\infty)=\mathbb{P}_i(T_i^{(r)}<\infty)f_i=f_i^{r+1}\). Since \(V_i\ge r+1\) exactly when the \(r\)-th return after time zero occurs, this proves the tail formula. For \(f_i<1\), the event \(V_i=r+1\) means at least \(r\) returns occur but the next one does not; its probability is \(f_i^r-f_i^{r+1}=(1-f_i)f_i^r\). Also, the tail-sum formula for a nonnegative integer-valued variable gives \(\mathbb{E}_i[V_i]=\sum_{r\ge0}\mathbb{P}_i(V_i\ge r+1)=\sum_{r\ge0}f_i^r=1/(1-f_i)\). This includes \(f_i=0\). If \(f_i=1\), the tail probability is \(1\) for every \(r\), so infinitely many returns occur almost surely and the expectation is infinite. Finally, \(V_i=\sum_{n\ge0}\mathbf{1}_{\{X_n=i\}}\). Taking expectations of the increasing finite partial sums gives \(\mathbb{E}_i[V_i]=\sum_{n\ge0}\mathbb{P}_i(X_n=i)=\sum_{n\ge0}p_{ii}^{(n)}\), including when the sum diverges. \(\square\)

Corollary: The return-probability series \(\sum_{n\ge0}p_{ii}^{(n)}\) diverges exactly when \(f_i=1\); it is finite when \(f_i<1\). Thus, for a chain started at \(i\), recurrence is equivalent to almost-sure return, while transience corresponds to a positive probability of no return.

Proof. By the theorem the series equals \(1/(1-f_i)\) when \(f_i<1\), which is finite, and is infinite when \(f_i=1\). The first-return definition gives the stated distinction between almost-sure return and a positive probability of no return. \(\square\)

Three Boundary Cases

Worked Example: An Absorbing State

Consider the chain with state space \(S=\{i\}\) and transition matrix \(P=[1]\). The only row sums to \(1\), and once the chain starts at \(i\), it remains there at every time. Since \(X_1=i\) surely, \(T_i^+=1\) surely and \(f_i=1\). For every \(n\ge0\), \(p_{ii}^{(n)}=1\), so the return series is \(\sum_{n\ge0}1=\infty\). The theorem also gives \(\mathbb{P}_i(V_i\ge r+1)=1\) for each \(r\), hence \(V_i=\infty\) almost surely.

Check: The expected number of visits is \(\mathbb{E}_i[V_i]=\infty\), consistent with the divergent matrix-power series. Here the first return happens at time \(1\), but all later returns happen as well; the two statements are not interchangeable.

Worked Example: A Self-Loop Followed by Possible Escape

Let \(S=\{i,a\}\) and use the transition matrix, with rows and columns ordered \(i,a\),

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

The first row sums to \(\tfrac12+\tfrac12=1\), and the second sums to \(0+1=1\). From \(i\), a return occurs at time \(1\) if the chain takes the self-loop, with probability \(\tfrac12\). If it moves to \(a\), it remains at \(a\) and never returns. Thus \(f_i=\tfrac12\), not \(1\), and \(\mathbb{E}_i[V_i]=1/(1-\tfrac12)=2\).

For a matrix-power check, the chain can be at \(i\) at time \(n\) only if it has taken the self-loop \(n\) times. Therefore \(p_{ii}^{(n)}=(\tfrac12)^n\), including \(p_{ii}^{(0)}=1\). The series is \(\sum_{n\ge0}(\tfrac12)^n=2\). Its first terms are \(1+\tfrac12+\tfrac14+\tfrac18+\cdots\), matching the expected visit count.

Check: The one-step return probability is \(p_{ii}=\tfrac12\), and here it equals \(f_i\) only because leaving \(i\) makes return impossible. The row sums and the return-series computation both agree with the theorem.

Worked Example: Leaving and Never Returning

Let \(S=\{i,j,k\}\), with rows and columns ordered \(i,j,k\), and take

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

The row sums are \(0+1+0=1\), \(0+\tfrac12+\tfrac12=1\), and \(0+0+1=1\). Starting at \(i\), the chain moves to \(j\) at time \(1\). Neither \(j\) nor \(k\) can move to \(i\), so \(T_i^+=\infty\) surely and \(f_i=0\). Consequently \(V_i=1\) surely and \(\mathbb{E}_i[V_i]=1\).

For every \(n\ge1\), \(p_{ii}^{(n)}=0\), since there is no path from \(i\) back to \(i\) after departure. Including \(p_{ii}^{(0)}=1\), the return series is \(1+0+0+\cdots=1\).

Check: The count includes the visit at time zero, so the answer is \(1\), not \(0\). The absence of a return concerns times \(n\ge1\), not the initial state.

A Self-Loop Does Not Settle the Question

A positive self-loop probability guarantees a chance of returning in one step, but return probability also includes paths that leave and later come back. Conversely, a self-loop can be followed by an exit to a region from which return is impossible. The next calculation separates \(p_{ii}\) from \(f_i\) in a chain where leaving still allows a return.

Worked Example: Self-Loop and Return After Leaving

Let \(S=\{i,j,k\}\), with rows and columns ordered \(i,j,k\), and let

$$ P=\begin{bmatrix} \tfrac13&\tfrac23&0\\ \tfrac12&0&\tfrac12\\ 0&0&1 \end{bmatrix}. $$

The row sums are \(\tfrac13+\tfrac23+0=1\), \(\tfrac12+0+\tfrac12=1\), and \(0+0+1=1\). From \(i\), the chain returns immediately with probability \(\tfrac13\). Otherwise, it moves to \(j\); from \(j\), it moves to \(i\) with probability \(\tfrac12\) or to absorbing state \(k\) with probability \(\tfrac12\). Therefore

$$ f_i=\tfrac13+\tfrac23\cdot\tfrac12=\tfrac13+\tfrac13=\tfrac23. $$

It follows that \(\mathbb{E}_i[V_i]=1/(1-\tfrac23)=3\). A separate first-step check gives the same value. Let \(v_i\) be the expected number of visits to \(i\), including the current visit, from \(i\), and \(v_j\) the expected future number from \(j\). Starting at \(j\), the next step goes to \(i\) with probability \(\tfrac12\), or to \(k\), which never visits \(i\), with probability \(\tfrac12\). Thus \(v_j=\tfrac12v_i\). From \(i\), count the current visit and condition on the next state: \(v_i=1+\tfrac13v_i+\tfrac23v_j\). Substituting gives \(v_i=1+\tfrac13v_i+\tfrac13v_i\), so \(\tfrac13v_i=1\) and \(v_i=3\).

Check: Substituting \(v_i=3\) gives \(v_j=\tfrac12(3)=\tfrac32\), and \(1+\tfrac13(3)+\tfrac23(\tfrac32)=1+1+1=3\). The self-loop probability is \(p_{ii}=\tfrac13\), whereas the probability of ever returning is \(f_i=\tfrac23\).

Common Calculation Errors

A common mistake is to substitute the one-step transition probability \(p_{ii}\) for the first-return probability \(f_i\). In the last example, that incorrect substitution would give an expected visit count of \(1/(1-\tfrac13)=\tfrac32\). The correction is to account for every route to a later return: \(f_i=\tfrac13+\tfrac23\cdot\tfrac12=\tfrac23\), and the expected count is \(1/(1-\tfrac23)=3\). The incorrect value \(\tfrac32\) omits the path \(i\to j\to i\).

Another boundary error is to treat a self-loop as proof of recurrence. In the two-state example, \(p_{ii}=\tfrac12>0\), but the chain has probability \(\tfrac12\) of escaping to \(a\) and never returning. Thus \(f_i=\tfrac12<1\), and the expected number of visits is finite. At the other boundary, when \(f_i=0\), the initial visit still counts: the visit total is one, and the return series includes the \(n=0\) term \(p_{ii}^{(0)}=1\).

These distinctions are useful whenever return behavior is summarized by matrix powers or by a first-return calculation. The matrix-power series counts all visits, including time zero; the first-return probability determines how those visits repeat. Checking both quantities is a practical way to detect whether an absorbing state, a one-step self-loop, or an irreversible departure has been handled correctly.

Check Your Understanding

Use the first-return probability and the return-series identity to justify each answer.

  1. If \(f_i=\tfrac14\), what is the probability of at least four visits to \(i\), counting time zero, and what is the expected total number of visits?
  2. For an absorbing state, what are \(T_i^+\), \(f_i\), and \(\sum_{n\ge0}p_{ii}^{(n)}\)?
  3. Can \(p_{ii}=0\) while \(f_i>0\)? Give a transition-path explanation.
  4. In the chain with \(p_{ii}=\tfrac13\), \(p_{ij}=\tfrac23\), \(p_{ji}=\tfrac12\), and \(j\) otherwise moving to an absorbing state, compute \(f_i\) and \(\mathbb{E}_i[V_i]\).
  5. Why does \(\sum_{n\ge0}p_{ii}^{(n)}\) include a term equal to \(1\) even if the chain cannot return after it leaves \(i\)?