M4.1 6 min read Oct 2026

M4.1 No Way Back: Absorbing States and Absorption Times

Builds on1 note

A game that ends by itself

After each round, a ten-sided die ends a single-player game on zero. Otherwise another round begins. There is no revival within that game.

Knowing that the game eventually ends leaves several questions:

  1. How many rounds does a game last on average?
  2. After surviving twenty rounds, how many additional rounds remain on average?
  3. By which round have at least half the games ended?

Identical fresh dice suggest the next-round chance does not depend on elapsed rounds. But computing a mean and computing a halfway probability are different tasks. Define the ending time as a random variable first.

DiscussionQ1

Which Markov states are sufficient, and which random variable represents game length?

Show the reasoning

Use two states: alive A\mathrm A and ended E\mathrm E. Round number is the time index, rather than necessary state information for this fixed-hazard model:

P=(P(A,A)P(A,E)P(E,A)P(E,E))=(1−qq01),q=0.1.P=\begin{pmatrix}P(\mathrm A,\mathrm A)&P(\mathrm A,\mathrm E)\\P(\mathrm E,\mathrm A)&P(\mathrm E,\mathrm E)\end{pmatrix} =\begin{pmatrix}1-q&q\\0&1\end{pmatrix},\qquad q=0.1 .

The row (0,1)(0,1) makes E\mathrm E absorbing, meaning P(E,E)=1P(\mathrm E,\mathrm E)=1. For q>0q>0, A\mathrm A is transient. Other states in a general chain need not all be transient merely because an absorbing state exists.

Define τ=min⁡{n≥1:Xn=E}\tau=\min\{n\ge1:X_n=\mathrm E\}. The questions ask for E[τ]\mathbb E[\tau], E[τ−20∣τ>20]\mathbb E[\tau-20\mid\tau>20], and a median of τ\tau: different summaries of one random variable.

Tokens falling into a pit

Start a thousand tokens alive. About a hundred fall into the ended-state pit in round one, ninety more in round two, and so on. The number falling decreases while the fraction of survivors falling stays at one tenth.

A surviving token faces the same next-round rule regardless of its age. Twenty completed rounds do not consume a quota: expected remaining lifetime is still ten. This is memorylessness, not compensation for earlier luck.

Surviving tokens and an absorbing pit.

A constant hazard gives a geometric tail. Its median is seven rounds; rare long games raise its mean to ten.

Turn the picture into equations

A geometrically decaying tail

Surviving nn rounds requires avoiding the ending outcome each time:

Pr⁡(τ>n)=(1−q)n,Pr⁡(τ=n)=(1−q)n−1q.\Pr(\tau>n)=(1-q)^n,\qquad \Pr(\tau=n)=(1-q)^{n-1}q .

This is a geometric distribution, counting trials through the first success, where success means ending. Equivalently, Pn(A,A)=(1−q)nP^n(\mathrm A,\mathrm A)=(1-q)^n.

Expected time by first-step analysis

Let mm be expected remaining rounds. Spend one round, then end with probability qq or return to the same future problem with probability 1−q1-q:

m=1+q⋅0+(1−q) m⟹m=1q=10.m=1+q\cdot0+(1-q)\,m\quad\Longrightarrow\quad m=\frac1q=10 .

This is first-step analysis. For each transient state xx, expected absorption time satisfies

m(x)=1+∑y transientP(x,y) m(y),m(x)=1+\sum_{y\ \text{transient}}P(x,y)\,m(y),

The unknown expectations form a linear system. The Markov property makes the remaining future depend only on the next state. Distribution propagation looks forward; this recursion propagates future expectations backward.

Median and variance

For q=0.1q=0.1, the smallest nn with (1−q)n≤1/2(1-q)^n\le1/2 is seven. Thus at least half end by the seventh round. Variance is 90 and standard deviation about 9.5. The right tail raises the mean above the median.

DetailsSeveral transient states and the fundamental matrix

Partition P=(QR0I)P=\begin{pmatrix}Q&R\\0&I\end{pmatrix}. For a finite absorbing chain whose transient states all reach absorption, ∑n≥0Qn=(I−Q)−1=N\sum_{n\ge0}Q^n=(I-Q)^{-1}=N. Entry N(x,y)N(x,y) counts expected visits to transient state yy from xx, before absorption. Thus m=N1m=N\mathbb1, equivalently solving m=1+Qmm=\mathbb1+Qm.

For a two-level game, suppose level one stays with probability 0.4, advances with 0.5, and ends with 0.1. Level two stays with 0.8 and ends with 0.2. Then m2=1+0.8m2=5m_2=1+0.8m_2=5 and m1=1+0.4m1+0.5m2m_1=1+0.4m_1+0.5m_2, giving m1=3.5/0.6≈5.83m_1=3.5/0.6\approx5.83 [3].

Why stationarity is less informative here

The only stationary law in this two-state example is (0,1)(0,1). It identifies the final state without answering how long arrival takes. Absorption breaks irreducibility; hitting times and route probabilities become more informative questions.

Revisit the lifetime questions

With constant hazard q=0.1q=0.1 and no return, mean lifetime is ten, remaining mean after twenty surviving rounds is ten, and median lifetime is seven. The identity Pr⁡(τ>20+k∣τ>20)=(1−q)k\Pr(\tau>20+k\mid\tau>20)=(1-q)^k explains the unchanged remaining law.

If hazard increases with age, memorylessness fails. Nondecreasing hazards starting at q1q_1 give lifetime no longer on average than the constant-q1q_1 model. If the ended state returns with probability r>0r>0, it is no longer absorbing; its long-run share becomes q/(q+r)q/(q+r). First hitting time still makes sense separately.

Try it

import numpy as np
rng = np.random.default_rng(0)
q, T = .1, 100000
tau = rng.geometric(q,size=T)
print('mean, median, std:',tau.mean(),np.median(tau),tau.std())
print('remaining after 20:',(tau[tau>20]-20).mean())
def play():
    n = 1
    while rng.random()>=min(1,.1+.02*(n-1)):
        n += 1
    return n
tau2 = np.array([play() for _ in range(T)])
print('increasing hazard:',tau2.mean(), 'remaining after 5:',(tau2[tau2>5]-5).mean())

Check your understanding

Check your understanding

Subscribers cancel independently each month with fixed probability 0.05 and never return. What gives expected subscription length?

Check your understanding

After surviving thirty rounds at constant ending probability 0.1, is ending more likely next round because luck is running out?

Check your understanding

The ended state now returns to play with probability 0.3 per step. What changes?

References

  1. Norris, J. R. Markov Chains. Cambridge University Press, 1997.
  2. Grimmett, G., Stirzaker, D. Probability and Random Processes, 3rd ed. Oxford University Press, 2001.
  3. Kemeny, J. G., Snell, J. L. Finite Markov Chains. Springer, 1976.