From Expected Time to Its Second Moment
The expected time to absorption describes the average duration of a transient episode, but it does not reveal how variable that duration is. A chain can have a moderate mean while still allowing some much longer-than-usual paths. The second moment records this variability and, together with the mean, gives the variance.
Consider a discrete-time Markov chain \((X_n)_{n\ge0}\) on a finite state space \(S\), defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with transition matrix \(P\). Let \(A\subseteq S\) be a nonempty set of absorbing states, and let \(B=S\setminus A\) be the transient states. In the canonical ordering, write the transition matrix in blocks as
Here \(Q\) gives transitions among the transient states, and \(R\) gives transitions from transient to absorbing states. Each row of the full matrix \(P\) sums to \(1\). Let \(T_A=\inf\{n\ge0:X_n\in A\}\). We consider the chain started at a transient state, so \(T_A\) counts the steps up to and including the transition into \(A\). Write \(\mathbb{P}_i\) and \(\mathbb{E}_i\) for probability and expectation when \(X_0=i\).
Throughout the main result, assume absorption occurs almost surely from every transient state: \(\mathbb{P}_i(T_A<\infty)=1\) for each \(i\in B\). This condition matters: if the chain can avoid \(A\) with positive probability, then \(T_A=\infty\) on an event of positive probability, and its second moment is infinite.
The Second-Moment Equations
Order the transient states in \(B\), let \(\mathbf{1}\) be the column vector of ones of the appropriate dimension, and let \(t\) and \(s\) be the columns with entries \(t_i\) and \(s_i\). The fundamental matrix is \(N=(I-Q)^{-1}\). Under the stated finite-state, almost-sure absorption assumption, it exists; equivalently, \(N=\sum_{n\ge0}Q^n\). The expected-time formula is \(t=N\mathbf{1}\).
Proof. We first justify finiteness and the use of \(N\). For every transient state \(i\), almost-sure absorption implies that there is an integer \(n_i\) such that \(\mathbb{P}_i(T_A\le n_i)>0\). There are finitely many transient states, so choose \(L=\max_i n_i\) and \(\delta=\min_i\mathbb{P}_i(T_A\le L)>0\). By the Markov property, from any transient state the probability of avoiding \(A\) for the next \(L\) steps is at most \(1-\delta\). Applying this bound in successive blocks gives \(\mathbb{P}_i(T_A>kL)\le(1-\delta)^k\) for every integer \(k\ge0\). Thus the tail decreases geometrically, which implies both \(\mathbb{E}_i[T_A]\) and \(\mathbb{E}_i[T_A^2]\) are finite. Also, the row sums of \(Q^n\) equal the probabilities of remaining transient through \(n\) steps, and the same geometric bound ensures \(\sum_{n\ge0}Q^n\) converges. Multiplication of its partial sums by \(I-Q\) gives \(I-Q^{m+1}\), which tends to \(I\); therefore \(N=(I-Q)^{-1}\).
Now start at a transient state \(i\). After one step, if the chain remains transient at state \(j\), its remaining absorption time has the distribution of \(T_A\) under \(\mathbb{P}_j\), by the Markov property. If it enters \(A\), the remaining time is zero. Squaring the total time, which is one plus the remaining time, gives a contribution \(1+2t_j+s_j\) when the next state is transient \(j\), and a contribution \(1\) when it enters \(A\). Summing over next states and using that the probability of entering \(A\) is \(1-\sum_jq_{ij}\), we obtain \(s_i=1+2\sum_jq_{ij}t_j+\sum_jq_{ij}s_j\). This is the vector equation \(s=\mathbf{1}+2Qt+Qs\).
Rearranging yields \((I-Q)s=\mathbf{1}+2Qt\). Since \(I-Q\) is invertible, \(s=N(\mathbf{1}+2Qt)\). The expected-time equation \(t=\mathbf{1}+Qt\) implies \(Qt=t-\mathbf{1}\), so \(\mathbf{1}+2Qt=2t-\mathbf{1}\). Finally, \(t=N\mathbf{1}\), and therefore \(s=N(2N\mathbf{1}-\mathbf{1})=2N^2\mathbf{1}-N\mathbf{1}\). For each state, the definition of variance gives \(\operatorname{Var}_i(T_A)=s_i-t_i^2\), as claimed. \(\square\)
The equation \(s=\mathbf{1}+2Qt+Qs\) is the direct first-step system. The matrix expression is often more convenient computationally: once \(N\) and \(t\) are known, the second moment requires one more matrix-vector multiplication. The variance must be computed state by state by subtracting the square of that state’s mean.
Worked Calculations
Worked Example: Two Transient States
Consider transient states \(1,2\) and absorbing state \(3\), with transition matrix
The row sums are \(\tfrac12+\tfrac12+0=1\), \(0+\tfrac13+\tfrac23=1\), and \(0+0+1=1\). Absorption occurs almost surely: from state \(2\) there is probability \(\tfrac23\) of absorption on each step, and from state \(1\) the chain moves to \(2\) with probability \(\tfrac12\). The transient block and its complement are
Inverting gives \(N=\begin{bmatrix}2&\tfrac32\\0&\tfrac32\end{bmatrix}\). Multiplication verifies the inverse: the product \((I-Q)N\) has entries \(1\), \(\tfrac34-\tfrac34=0\), \(0\), and \(1\), so it is \(I\). Thus \(t=N\mathbf{1}=(2+\tfrac32,\tfrac32)^{\mathsf T}=(\tfrac72,\tfrac32)^{\mathsf T}\).
Next, \(2t-\mathbf{1}=(6,2)^{\mathsf T}\), so
The variances are \(15-(\tfrac72)^2=15-\tfrac{49}{4}=\tfrac{11}{4}\) from state \(1\), and \(3-(\tfrac32)^2=3-\tfrac94=\tfrac34\) from state \(2\).
Check by substitution: From state \(1\), the second-moment recurrence gives \(1+2(\tfrac12\cdot\tfrac72+\tfrac12\cdot\tfrac32)+\tfrac12\cdot15+\tfrac12\cdot3=1+5+9=15\). From state \(2\), it gives \(1+2(\tfrac13\cdot\tfrac32)+\tfrac13\cdot3=1+1+1=3\), matching both entries of \(s\).
Worked Example: A Geometric Absorption Time
Suppose a chain has one transient state and one absorbing state. From the transient state it stays there with probability \(\tfrac23\) and enters the absorbing state with probability \(\tfrac13\). The transition matrix is \(P=\begin{bmatrix}\tfrac23&\tfrac13\\0&1\end{bmatrix}\); its row sums are \(\tfrac23+\tfrac13=1\) and \(0+1=1\). Here \(Q=[\tfrac23]\), so \(I-Q=[\tfrac13]\) and \(N=[3]\), since \(\tfrac13\cdot3=1\).
The expected time is \(t=N\mathbf{1}=3\). Then \(2t-\mathbf{1}=6-1=5\), so \(s=N(2t-\mathbf{1})=3\cdot5=15\). The variance is \(15-3^2=6\).
Check by the first-step equation: If \(s\) denotes the second moment, then \(s=1+2(\tfrac23\cdot3)+\tfrac23s=5+\tfrac23s\). Subtracting \(\tfrac23s\) gives \(\tfrac13s=5\), hence \(s=15\), as above.
Worked Example: A Random Initial Transient State
Use the two-transient-state chain from the first example, but now let the initial distribution on states \(1,2\) be the row vector \(\alpha=(\tfrac13,\tfrac23)\). The entries sum to \(\tfrac13+\tfrac23=1\). Averaging the state-specific means gives \(\mathbb{E}[T_A]=\tfrac13\cdot\tfrac72+\tfrac23\cdot\tfrac32=\tfrac76+1=\tfrac{13}{6}\). Averaging the second moments gives \(\mathbb{E}[T_A^2]=\tfrac13\cdot15+\tfrac23\cdot3=5+2=7\). Therefore the variance under this random start is \(7-(\tfrac{13}{6})^2=7-\tfrac{169}{36}=\tfrac{83}{36}\).
Check by conditioning on the initial state: The average of the state-specific variances is \(\tfrac13\cdot\tfrac{11}{4}+\tfrac23\cdot\tfrac34=\tfrac{11}{12}+\tfrac12=\tfrac{17}{12}\). The variance of the two state-specific means around their average \(\tfrac{13}{6}\) is \(\tfrac13(\tfrac72-\tfrac{13}{6})^2+\tfrac23(\tfrac32-\tfrac{13}{6})^2=\tfrac13(\tfrac43)^2+\tfrac23(-\tfrac23)^2=\tfrac89\). Their sum is \(\tfrac{17}{12}+\tfrac89=\tfrac{51}{36}+\tfrac{32}{36}=\tfrac{83}{36}\), which agrees with the moment calculation.
When the Equations Do Not Give Finite Moments
Almost-sure absorption is not a dispensable technicality. For example, take a transient candidate state \(1\) that stays at \(1\) with probability \(1\), with target set \(A=\{2\}\) and state \(2\) absorbing. Starting from \(1\), the target is never reached, so \(T_A=\infty\) and neither moment is finite. The purported transient block is \(Q=[1]\), so \(I-Q=[0]\) has no inverse. This is why one must check absorption before using the fundamental-matrix formulas. In finite chains, positive probability of reaching the target is not enough; absorption must occur with probability one from each state under consideration.
Common mistake: omitting the cross term. Squaring the one-step decomposition requires \((1+T')^2=1+2T'+(T')^2\). If the \(2T'\) term is dropped, the geometric example would incorrectly give \(s=N\mathbf{1}=3\), and then the incorrect variance \(3-3^2=-6\). The correction is \(s=N(\mathbf{1}+2Qt)\): here \(Qt=\tfrac23\cdot3=2\), so \(s=3(1+2\cdot2)=15\), yielding the valid variance \(15-9=6\).
For a row-vector initial distribution \(\alpha\) on transient states, the unconditional first and second moments are \(\alpha t\) and \(\alpha s\), respectively. The variance is \(\alpha s-(\alpha t)^2\), not the weighted average of the state-specific variances alone. The initial state itself varies, so variation between the conditional means also contributes, as the third example demonstrates.
Check Your Understanding
For each question, use the first-step equation or substitute into the matrix formula to check your result.
- Explain why the square of the one-step decomposition contributes the term \(2Qt\) to the second-moment equation.
- For a one-state transient block \(Q=[\tfrac34]\), calculate \(N\), \(t\), \(s\), and the variance.
- Why does almost-sure absorption from every transient state ensure that \(N=\sum_{n\ge0}Q^n\) is finite for a finite chain?
- Given state-specific moment vectors \(t\) and \(s\) and an initial row distribution \(\alpha\), write the variance of the absorption time.
- What fails in the fundamental-matrix calculation if a transient state can avoid the target forever with positive probability?