A process starts in an active state A. At each step it either stays active or ends in one of two final outcomes, B or C, and once it has ended it stays ended. Will it ever end in B, and how many steps does it take to end at all? These questions concern the first time a path reaches a target, not where the chain is at one fixed step. This lesson defines hitting times and hitting probabilities, finds them by conditioning on the first step with explicit boundary conditions, and shows how a hitting time can be infinite and what that does to its mean.
Key terms
Absorbing state
Definition Let be a time-homogeneous Markov chain on a state space with transition matrix . A state is absorbing if , so that for every . Once the chain is in an absorbing state, it stays there at every later step. In a chain with absorbing states, entering one of them is called absorption. Write and for probabilities and expectations when the chain starts in state , that is, with .
In plain words An absorbing state is a final outcome, such as a finished job or a failed part. In a transition diagram its only outgoing arrow is a loop back to itself.
Example On the states A, B and C, in that order, take
States B and C are absorbing, and A is not. Started in A, the chain is still in A after steps with probability , which tends to , so with probability it is eventually absorbed in B or C. A state with is not absorbing. A chain started there may stay for a long time, but the probability that it stays forever is .
Hitting time
Definition For a nonempty set of target states, the hitting time of is
the first time the chain is in , with when the chain never enters . Time counts, so when . For a single state B write . The variable , which ignores time , is a different random time. It agrees with whenever the chain starts outside .
In plain words A hitting time is a clock that stops at the first visit to the target and ignores everything afterward. Its definition needs two choices, the target set and whether a start inside the target counts as time zero.
Example In the chain above, started in A, the path A, A, B, B and so on has and . The path A, C, C and so on has and , since it never reaches B. A chain started in B has . To have from A, the chain must stay in A for steps and then move to B, so
for , which gives , and for the first three values of .
Hitting probability
Definition For a target set and a start , the hitting probability is
the probability that the chain started at ever enters . It is a different quantity from the probability of reaching by a deadline and from the probability of being in at step . The events grow with and their union is , so increases to as . When every state of is absorbing, being in at step is the same event as .
In plain words A hitting probability asks whether the target is ever reached, with no deadline. A deadline probability is never larger, and it approaches the hitting probability as the deadline grows.
Example Started in A, the events for different are disjoint, since a path has only one first visit to B. Adding their probabilities,
By the deadline the probability is , less than . The chain reaches the set by step unless it stays in A for three steps, so . The three numbers answer three different questions.
First-step analysis
Definition First-step analysis finds hitting quantities by conditioning on the first step . For a target set , the hitting probabilities satisfy, for every state outside ,
The reason is that the first step goes to with probability , and by the Markov property and time homogeneity the chain then behaves like a new chain started at . Values that follow directly from the meaning of the question, rather than from this equation, are boundary conditions. For hitting probabilities they are for every in , and for every state from which cannot be reached. On a finite state space, the equations together with both kinds of boundary condition have exactly one solution.
In plain words Take one step, then ask the same question again from wherever the chain landed. The boundary conditions record the answers that need no calculation. Without them, the equations may fail to determine the answer.
Example For the target B in the chain above, the equation at A is
The boundary conditions are , since a chain started in B has , and , since a chain in C stays in C and never reaches B. The first-step equation at C would read , which every number satisfies, so it is the boundary condition that fixes . Substituting gives , so and , in agreement with the sum of first-hit probabilities. The same method with target C gives . The two answers add to because the probability of staying in A forever is .
Expected time to absorption
Definition For a target set , let . When is the set of absorbing states, is the expected time to absorption from . The boundary conditions are for in , not as for probabilities, and for outside first-step analysis gives
where the counts the step just taken and the sum is the expected remaining time. These equations should be treated as ordinary linear equations only after checking that the involved are finite. One check is the tail formula , valid for every random variable whose values are nonnegative integers or . On a finite state space, if can be reached from every state, then every is finite.
In plain words Count one step for the move just made, then add the average time still needed from the new state. The algebra treats each as an ordinary number, so first make sure it is one.
Example Take the absorbing set and start in A. The boundary conditions are , and the equation at A is
The chain is still in A after steps with probability , so and
which is finite. The equation then gives , so steps. In fact is geometric on with success probability , whose mean is .
Infinite hitting time
Definition A hitting time equals on every path that never enters . If , then , because for every . When , the conditional mean averages only over the paths that reach , and it can be finite even when is infinite. The mean can also be infinite when . On a finite state space this cannot happen, but on the integers it does, for the symmetric simple random walk started at with target .
In plain words An unconditional mean averages over all paths, including those that never arrive, and each of those contributes an infinite time. Averaging only over the paths that do arrive can give a finite number, but it answers a narrower question.
Example In the chain above, , the probability of absorption in C. So , and the answer for the target cannot be reused for B alone. The first-step equation agrees. With target B, a chain in C never reaches B, so , and the equation at A contains the infinite term . Given that B is reached, for
a geometric distribution with success probability and mean . A finite conditional mean and an infinite unconditional mean do not contradict each other, because they average over different collections of paths.
Check yourself
- Change the row of A so that the chain stays in A with probability , moves to B with probability and moves to C with probability , keep B and C absorbing, and start in A. Write the boundary conditions for reaching B, then find the probability that the chain ever reaches B and the probability that it never does.
Show the answer
The boundary conditions are and . The first-step equation at A is
so and . The chain stays in A forever with probability , so it is absorbed in C with probability , and that is the probability of never reaching B. As a check, adding the first-hit probabilities gives .
- For the same chain, find the expected number of steps until absorption, after checking that it is finite. A classmate concludes that is the same number. Is that right?
Show the answer
The target set is with . The chain is still in A after steps with probability , so , which is finite. The first-step equation gives the same value .
The classmate is wrong. The chain never reaches B with probability , so with positive probability and . The number does reappear as a conditional mean, since
a geometric distribution with success probability and mean . In this chain the time at which the chain leaves A does not depend on where it goes, so the paths that end in B take as long on average as all paths together.
- A walk on the states moves from or one step up or one step down with probability each, and the states and are absorbing. Starting at , find the probability of reaching and the expected time to absorption.
Show the answer
For the probability of reaching , first-step analysis at the two inner states gives
With the boundary conditions and these become and . Substituting gives , so and .
For the time, the boundary conditions change to . From or , the walk is still at an inner state after two steps along only one path, with probability , so the probability of no absorption in steps is and the expected time is finite. Then
so , which gives , and by symmetry . The walk started at reaches with probability and is absorbed after steps on average.