Tutorials › Stochastic Processes › Uniqueness of Expected Hitting-Time Solutions

Absorption, Hitting Times and First-Step Analysis · Tutorial 247 of 994

Uniqueness of Expected Hitting-Time Solutions

Learn why almost-sure reachability guarantees a unique finite solution to the expected hitting-time equations, and how to compute it using the fundamental matrix.

Intermediate 10 min read

What You'll Learn

  • Form the transient block for states outside a target set.
  • Prove geometric decay of the probability of avoiding the target in a finite chain.
  • Establish existence and uniqueness of a finite solution to the first-step equations.
  • Relate the solution to the fundamental matrix and expected visit counts.
  • Check exact matrix calculations and recognize when the uniqueness result does not apply.

Why Uniqueness Requires More Than Writing the Equations

First-step analysis expresses an expected hitting time as one step, followed by the expected remaining time from the state reached. These equations are useful only if their solutions are mathematically determined: an equation system might have no finite solution or might fail to distinguish among several candidates. For a finite chain, the key condition is that the target is reached almost surely from every starting state. Under that condition, the equations have exactly one finite solution, and the solution is given by the fundamental matrix of the states outside the target.

Let \((X_n)_{n\ge0}\) be a discrete-time Markov chain on a finite state space \(S\), defined on a probability space \((\Omega,\mathcal F,\mathbb P)\), with row-stochastic transition matrix \(P=(p_{ij})\). Thus \(\sum_{j\in S}p_{ij}=1\) for every \(i\). Let \(A\subseteq S\) be a nonempty target set, and define \(T_A=\inf\{n\ge0:X_n\in A\}\), with \(\inf\varnothing=\infty\). Write \(\mathbb P_i\) and \(\mathbb E_i\) for probabilities and expectations when \(X_0=i\). The standing assumption in the main result is \(\mathbb P_i(T_A<\infty)=1\) for every \(i\in S\). In particular, starting in \(A\) gives \(T_A=0\).

Set \(B=S\setminus A\), and let \(Q=(p_{ij})_{i,j\in B}\) be the submatrix for transitions that remain outside the target. This matrix is substochastic: its entries are nonnegative and its row sums are at most \(1\). For \(i\in B\), write \(k_i=\mathbb E_i[T_A]\). The first-step equations, with the boundary values \(k_i=0\) for \(i\in A\), reduce to \(k_i=1+\sum_{j\in B}p_{ij}k_j\) for \(i\in B\). In vector form, using \(\mathbf 1\) for the all-ones column vector indexed by \(B\), they are \((I-Q)\mathbf k=\mathbf 1\).

Lemma (Geometric decay of avoidance probabilities): If \(B\) is nonempty and \(\mathbb P_i(T_A<\infty)=1\) for every \(i\in B\), then there are an integer \(N\ge1\) and a number \(c<1\) such that every row sum of \(Q^N\) is at most \(c\). Consequently, the matrix series \(\sum_{n=0}^{\infty}Q^n\) converges entry by entry.

Proof. For \(i\in B\), the entry \((Q^n)_{ij}\) is the probability of being at \(j\in B\) at time \(n\) without having visited \(A\) by time \(n\). Therefore the \(i\)th row sum of \(Q^n\) is \(\mathbb P_i(T_A>n)\). Almost-sure reachability implies \(\mathbb P_i(T_A>n)\to0\) for every \(i\in B\). Since \(B\) is finite, choose an integer \(N\ge1\) large enough that \(\mathbb P_i(T_A>N)<1\) for every \(i\in B\), and let \(c=\max_{i\in B}\mathbb P_i(T_A>N)\). The maximum is over finitely many numbers strictly below \(1\), so \(c<1\). Thus the row sums of \(Q^N\) are at most \(c\).

For a nonnegative matrix \(M\), let \(\|M\|_\infty\) denote its largest row sum. For nonnegative matrices \(M,L\), \(\|ML\|_\infty\le\|M\|_\infty\|L\|_\infty\): for each row \(i\), \(\sum_j(ML)_{ij}=\sum_k M_{ik}\sum_jL_{kj}\le\|L\|_\infty\sum_kM_{ik}\). Since \(Q\) is substochastic, \(\|Q^r\|_\infty\le1\) for every integer \(r\ge0\). Writing \(n=kN+r\), where \(k\ge0\) and \(0\le r<N\), gives \(\|Q^n\|_\infty\le\|(Q^N)^k\|_\infty\|Q^r\|_\infty\le c^k\). Hence \(\sum_{n\ge0}\|Q^n\|_\infty\le N\sum_{k\ge0}c^k=N/(1-c)<\infty\). Each entry of the matrix series is bounded by its row sum, so the series converges entry by entry. \(\square\)

Theorem (Unique finite expected hitting-time solution): Under the assumptions above, the first-step system has exactly one finite real-valued solution, and that solution is the vector of expected hitting times. For \(B\ne\varnothing\), define the fundamental matrix \(N=(I-Q)^{-1}\). Then \(N=\sum_{n=0}^{\infty}Q^n\) and \(\mathbf k=N\mathbf 1\). If \(B=\varnothing\), there are no unknown hitting times outside the target and the solution is the empty vector.

Proof. First suppose \(B\ne\varnothing\). By the lemma, the series \(N=\sum_{n=0}^{\infty}Q^n\) converges. For finite partial sums, \((I-Q)\sum_{n=0}^{m}Q^n=I-Q^{m+1}\) and \(\big(\sum_{n=0}^{m}Q^n\big)(I-Q)=I-Q^{m+1}\). The geometric bound in the lemma implies \(Q^{m+1}\to0\) entry by entry. Taking limits in both identities shows that \(N\) is a two-sided inverse of \(I-Q\).

For a nonnegative integer-valued random variable \(T_A\), the tail-sum identity gives \(\mathbb E_i[T_A]=\sum_{n\ge0}\mathbb P_i(T_A>n)\). This identity also holds initially with the value \(+\infty\), since \(T_A=\sum_{n\ge0}\mathbf 1_{\{T_A>n\}}\) and expectations of nonnegative sums equal the sum of expectations. The \(i\)th row sum of \(Q^n\) is \(\mathbb P_i(T_A>n)\), so \(\sum_{n\ge0}\mathbb P_i(T_A>n)=\sum_{j\in B}N_{ij}\), which is finite by convergence of the matrix series. Thus every \(k_i\) is finite, and \(\mathbf k=N\mathbf 1\).

The identity \((I-Q)N=I\) now gives \((I-Q)\mathbf k=\mathbf 1\), which is precisely the first-step system on \(B\). To prove uniqueness, let \(\mathbf x\) be any finite real-valued solution. Then \((I-Q)\mathbf x=\mathbf 1\), and multiplying by \(N\) gives \(\mathbf x=N\mathbf 1=\mathbf k\). This proves both existence and uniqueness. If \(B=\varnothing\), every state is in \(A\), so \(T_A=0\) from every starting state; there are no equations outside \(A\), and the empty vector is the unique vector of unknowns. \(\square\)

The matrix \(N\) is called the fundamental matrix because \(N_{ij}=\sum_{n\ge0}(Q^n)_{ij}\) counts the expected number of visits to state \(j\) before reaching \(A\), when starting at \(i\). The count includes time \(0\): if the chain starts at \(i\in B\), that initial visit is included. Summing these expected visit counts over all \(j\in B\) gives the expected number of time instants spent outside \(A\), which is the hitting time \(T_A\).

Worked Example: Inverting the Transient Block

Consider \(S=\{1,2,3\}\), target \(A=\{3\}\), and transition matrix

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

The row sums are \(\tfrac12+\tfrac14+\tfrac14=1\), \(\tfrac13+\tfrac13+\tfrac13=1\), and \(0+0+1=1\). The transient block and the equations for the expected hitting times are

$$ Q= \begin{bmatrix} \tfrac12&\tfrac14\\ \tfrac13&\tfrac13 \end{bmatrix}, \qquad k_1=1+\tfrac12k_1+\tfrac14k_2,\qquad k_2=1+\tfrac13k_1+\tfrac13k_2. $$

Equivalently, \(I-Q=\begin{bmatrix}\tfrac12&-\tfrac14\\-\tfrac13&\tfrac23\end{bmatrix}\). Its determinant is \(\tfrac12\cdot\tfrac23-(-\tfrac14)(-\tfrac13)=\tfrac13-\tfrac1{12}=\tfrac14\), so

$$ N=(I-Q)^{-1} = \begin{bmatrix} \tfrac83&1\\ \tfrac43&2 \end{bmatrix}, \qquad \mathbf k=N\mathbf 1= \begin{bmatrix} \tfrac83+1\\ \tfrac43+2 \end{bmatrix} = \begin{bmatrix} \tfrac{11}3\\ \tfrac{10}3 \end{bmatrix}. $$

Check by substitution. The first equation gives \(1+\tfrac12\cdot\tfrac{11}3+\tfrac14\cdot\tfrac{10}3=1+\tfrac{11}6+\tfrac56=\tfrac{11}3=k_1\). The second gives \(1+\tfrac13\cdot\tfrac{11}3+\tfrac13\cdot\tfrac{10}3=1+\tfrac{21}9=\tfrac{10}3=k_2\). The values therefore satisfy the first-step equations; the theorem guarantees that no other finite pair does.

Worked Example: A Target with Two States

Let \(S=\{1,2,3,4\}\), with target \(A=\{3,4\}\), and take

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

The row sums are \(0+\tfrac12+\tfrac12+0=1\), \(\tfrac14+\tfrac12+0+\tfrac14=1\), \(1\), and \(1\). From state \(1\), the target is reached on the next step if the chain goes to \(3\); from state \(2\), it can go directly to \(4\), or move to \(1\), which can then reach \(3\). The theorem applies, and

$$ Q= \begin{bmatrix} 0&\tfrac12\\ \tfrac14&\tfrac12 \end{bmatrix}, \qquad k_1=1+\tfrac12k_2,\qquad k_2=1+\tfrac14k_1+\tfrac12k_2. $$

The second equation gives \(\tfrac12k_2=1+\tfrac14k_1\), hence \(k_2=2+\tfrac12k_1\). Substituting into the first gives \(k_1=1+\tfrac12(2+\tfrac12k_1)=2+\tfrac14k_1\). Thus \(\tfrac34k_1=2\), so \(k_1=\tfrac83\), and \(k_2=2+\tfrac12\cdot\tfrac83=\tfrac{10}3\).

Check with the fundamental matrix. Here \(I-Q=\begin{bmatrix}1&-\tfrac12\\-\tfrac14&\tfrac12\end{bmatrix}\), whose determinant is \(\tfrac12-\tfrac18=\tfrac38\). Its inverse is \(\begin{bmatrix}\tfrac43&\tfrac43\\\tfrac23&\tfrac83\end{bmatrix}\). Multiplying by \(\mathbf 1\) gives \((\tfrac43+\tfrac43,\tfrac23+\tfrac83)=(\tfrac83,\tfrac{10}3)\), agreeing with the equations. Substitution also checks the result: \(1+\tfrac12\cdot\tfrac{10}3=\tfrac83\), and \(1+\tfrac14\cdot\tfrac83+\tfrac12\cdot\tfrac{10}3=1+\tfrac23+\tfrac53=\tfrac{10}3\).

Worked Example: A Geometric Waiting Time

Let \(S=\{1,2\}\), with target \(A=\{2\}\), and let the chain stay at \(1\) with probability \(\tfrac12\) and move to \(2\) with probability \(\tfrac12\). State \(2\) is absorbing, so

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

The row sums are \(\tfrac12+\tfrac12=1\) and \(0+1=1\). The transient block is \(Q=[\tfrac12]\), and the equation is \(k_1=1+\tfrac12k_1\). Rearranging gives \(\tfrac12k_1=1\), so \(k_1=2\). The fundamental matrix is \(N=[(1-\tfrac12)^{-1}]=[2]\), giving \(N\mathbf 1=2\).

Check from the hitting-time distribution. For each integer \(n\ge0\), avoiding state \(2\) for \(n\) steps requires \(n\) consecutive transitions that stay at \(1\), so \(\mathbb P_1(T_A>n)=(\tfrac12)^n\). Therefore \(\mathbb E_1[T_A]=\sum_{n\ge0}(\tfrac12)^n=1/(1-\tfrac12)=2\), agreeing with both the equation and the matrix calculation.

When the Condition Fails

Almost-sure reachability is not a cosmetic assumption. For a concrete failure, take \(S=\{1,2\}\), target \(A=\{2\}\), and \(P=\begin{bmatrix}1&0\\0&1\end{bmatrix}\). Both rows sum to \(1\), but starting at state \(1\) never reaches the target. Here \(B=\{1\}\), \(Q=[1]\), and the putative equation is \(k_1=1+k_1\), which has no finite solution. Correspondingly, \(I-Q=[0]\) has no inverse. This example shows why row sums at most \(1\) alone do not guarantee that \(I-Q\) is invertible.

Common mistake. A tempting but incorrect argument is: “\(Q\) is substochastic, so its row sums are at most \(1\); therefore the powers \(Q^n\) decay and \(I-Q\) is invertible.” The example above has a row sum equal to \(1\) and \(Q^n=[1]\) for every \(n\), so the series \(\sum_{n\ge0}Q^n\) does not converge. The correction is to use the almost-sure reachability condition and the finiteness of \(B\): together they give a common integer \(N\) and a strict bound \(c<1\) for every row sum of \(Q^N\). That strict bound, not substochasticity alone, yields geometric decay and the inverse.

In applications, uniqueness means that solving the linear system is justified: once a candidate satisfies every equation and boundary condition, it must be the expected hitting-time vector. The fundamental matrix gives a direct computation, while the step-by-step equations can be simpler for small systems. Either route relies on the same reachability check. If the target is not reached almost surely from all states in \(B\), first determine which states can avoid it; the theorem proved here cannot be applied without that condition.

Check Your Understanding

Use the equations and matrix identities above to answer the following questions.

  1. Why does almost-sure reachability from each state in \(B\), together with finiteness of \(B\), give one common \(N\) for which every row sum of \(Q^N\) is strictly below \(1\)?
  2. For the first worked example, verify directly that \((I-Q)N=I\) using the displayed matrices.
  3. In the second worked example, why are states \(3\) and \(4\) assigned hitting time zero even though their transition rows differ?
  4. For a one-state transient block \(Q=[q]\) with \(0\le q<1\), derive the expected hitting time from both the first-step equation and the fundamental matrix.
  5. For \(Q=[1]\), what fails in the matrix-series argument, and what does the corresponding first-step equation say?