Contents
We are working on the expected hitting time in a random walk on a graph, where
is the expected number of steps needed for a walk starting at node to reach node for the first time. It is defined for a Markov chain on the graph and is obtained by solving a linear system induced by the transition matrix. This quantity links random-walk dynamics to network structure, commute time, and resistance-based interpretations.
Deep Breakdown
Expected hitting time is one of the central quantities in random walks on graphs and Markov processes in networks. At an intuitive level, it answers: > If I start at node and move randomly according to the graph transition probabilities, how long do I expect to wait before I visit node for the first time? This is written as:
where:
- is the first time the walk reaches node ,
- means expectation given that the walk starts at node .
This is a first-passage or first-arrival quantity. It is not the expected number of visits, and it is not the probability of ever reaching in one step. It is specifically about the expected waiting time until the first arrival. For a Markov chain on a graph with transition matrix , the hitting time satisfies a recursive relation:
- if you are already at the target node , the hitting time is zero,
- otherwise, you take one step, then continue from the next node.
That gives the system:
and for :
This is the main linear equation for expected hitting time.
Inputs:
- a graph or Markov chain,
- a transition matrix ,
- a starting node ,
- a target node .
Outputs:
- the expected number of steps to hit for the first time.
Why it matters in DA/DS:
- it measures how navigable a network is from one node to another,
- it is sensitive to graph bottlenecks and connectivity patterns,
- it supports ranking of nodes by accessibility,
- it connects to commute time and resistance distance,
- it is useful in recommendation, influence propagation, network routing, and random-walk embeddings.
In graph terms, a node with low average incoming hitting time is easy to reach from the rest of the network. A node with large hitting times may be isolated, peripheral, or shielded by bottlenecks.
This object links directly to:
- transition matrix, because the recursion uses ,
- Markov chains, because the random walk is a Markov process,
- commute time, because commute time is built from two hitting times,
- resistance distance, because in undirected graphs commute times are tied to electrical-network quantities.