Expected hitting and return times of finite Markov chains #
Let P : MarkovChain V be a Markov chain on a finite state space V, with transition
probabilities P x y. Probabilities and expectations live in ℝ≥0∞, so that expected values may
be infinite and need no summability side conditions.
For a target state v, let τ_v = min {t ≥ 0 | X_t = v} be the hitting time of v. The
probability P_x(τ_v > t) that the chain started at x avoids v at times 0, …, t is
survival P v t x, defined by conditioning on the first step. It depends only on the first t
steps of the chain, so it is computed exactly from P. The expected hitting time is defined by the
tail-sum formula E_x[τ_v] = ∑' t, P_x(τ_v > t) (hittingTime), which is exact for random
variables with values in ℕ ∪ {∞}; it is not a finite-horizon approximation. Likewise the
expected return time E_v[τ⁺_v], where τ⁺_v = min {t ≥ 1 | X_t = v}, is
∑' t, P_v(τ⁺_v > t) (returnTime).
The results are the classical facts about these quantities Levin and Peres, Sections 1.5 and 10.2:
- first-step equations:
E_x[τ_v] = 1 + ∑ y, P x y * E_y[τ_v]forx ≠ v(hittingTime_eq_of_ne) andE_v[τ⁺_v] = 1 + ∑ y, P v y * E_y[τ_v](returnTime_eq); - finiteness: if every state of a set closed under transitions reaches
valong transitions of positive probability, thenE_x[τ_v] < ∞on that set (hittingTime_ne_top), becauseP_x(τ_v > t)decays geometrically; - the triangle inequality
E_x[τ_w] ≤ E_x[τ_v] + E_v[τ_w](hittingTime_le_add), proved by splitting each trajectory at its first visit tov; - Kac's formula: for a stationary measure
π,π v * E_v[τ⁺_v] = ∑ x, π xwhenever∑ x, π x * E_x[τ_v]is finite (mul_returnTime_eq); for a stationary distribution,π v * E_v[τ⁺_v] = 1(IsStationary.mul_returnTime_eq_one); - Markov's inequality in tail form:
(t + 1) * P_x(τ_v > t) ≤ E_x[τ_v](mul_survival_le_hittingTime).
The simple random walk on a graph (Cslib.Probability.MarkovChain.randomWalk) is the main
instance.
Main definitions #
Cslib.Probability.MarkovChain.survival: the probabilityP_x(τ_v > t).Cslib.Probability.MarkovChain.firstHit: the probabilityP_x(τ_v = t).Cslib.Probability.MarkovChain.hittingTime: the expected hitting timeE_x[τ_v].Cslib.Probability.MarkovChain.returnSurvival,Cslib.Probability.MarkovChain.returnTime: the probabilityP_v(τ⁺_v > t)and the expected return timeE_v[τ⁺_v].
Main results #
Cslib.Probability.MarkovChain.hittingTime_eq_of_ne,Cslib.Probability.MarkovChain.returnTime_eq: first-step equations.Cslib.Probability.MarkovChain.hittingTime_ne_top: hitting times are finite in a closed set from which the target is reachable.Cslib.Probability.MarkovChain.hittingTime_le_add: the triangle inequality.Cslib.Probability.MarkovChain.mul_returnTime_eq,Cslib.Probability.MarkovChain.IsStationary.mul_returnTime_eq_one: Kac's formula.Cslib.Probability.MarkovChain.mul_survival_le_hittingTime: Markov's inequality.
References #
The transition probabilities from each state sum to 1.
survival P v t x is the probability P_x(τ_v > t) that the chain with transition
probabilities P, started at x, avoids v at all times 0, …, t.
firstHit P v t x is the probability P_x(τ_v = t) that the chain started at x visits v
for the first time at time t.
The expected hitting time E_x[τ_v] of v from x, by the tail-sum formula
E_x[τ_v] = ∑' t, P_x(τ_v > t). It is 0 when x = v and may be ∞.
returnSurvival P v t is the probability P_v(τ⁺_v > t) that the chain started at v does
not return to v at any of the times 1, …, t.
The expected return time E_v[τ⁺_v] to v, by the tail-sum formula
E_v[τ⁺_v] = ∑' t, P_v(τ⁺_v > t).
Survival probabilities #
Survival probabilities are probabilities.
Markov property of survival. If, from every state of a set S closed under transitions,
the probability of avoiding v for m more steps is at most c, then
P_x(τ_v > t + m) ≤ c * P_x(τ_v > t) for x ∈ S.
Survival probabilities do not increase with time.
One step towards y lowers the survival probability by P x y times the probability of
hitting v from y.
If v is reachable from x along transitions of positive probability, then the chain from
x hits v within some finite time with positive probability.
Expected hitting and return times #
First-step equation for expected hitting times.
First-step equation for the expected return time.
Markov's inequality for hitting times: the probability of avoiding v up to time t is
at most E_x[τ_v] / (t + 1).
Finiteness of hitting times. If every state of a set S closed under transitions reaches
v along transitions of positive probability, the expected hitting time of v from every state
of S is finite: the survival probabilities decay geometrically.
The triangle inequality #
By time t, the chain has either visited v for the first time at some time j ≤ t or
avoided it.
To avoid w up to time t, the chain either avoids v or visits v first at some time
j ≤ t and then avoids w for the remaining t - j steps.
Triangle inequality for expected hitting times: E_x[τ_w] ≤ E_x[τ_v] + E_v[τ_w].
Kac's formula #
Kac's formula. If π is a stationary measure (∑ x, π x * P x y = π y) and the
π-average of the hitting times of v is finite, then π v * E_v[τ⁺_v] = ∑ x, π x. For a
stationary distribution, the expected return time to v is 1 / π v.
Kac's formula for a stationary distribution π: if the hitting times of v are finite
from every state in the support of π, then π v * E_v[τ⁺_v] = 1.