Discrete-Time Random Walks
Random Walks on Graphs
Random walks provide a framework for studying how probability, information, or agents move through a network. They connect graph structure with dynamical processes and are mathematically equivalent to Markov chains.
Two main versions are considered:
Discrete-time random walks: all walkers move at synchronized integer times.
Continuous-time random walks: walkers move at independently determined random times.
Applications include:
Studying diffusion and mixing on networks
Characterizing node importance through PageRank
Sampling hidden populations through respondent-driven sampling
Relating random-walk dynamics to consensus processes
Detecting bottlenecks and communities through spectral properties
Discrete-Time Random Walks
Basic process
Consider a graph with N nodes. A collection of walkers occupies the nodes, and all walkers move simultaneously at times
At each step, a walker located at node i chooses one of its neighboring nodes. For an unweighted graph, the walker typically chooses uniformly among the ki neighbors of node i, where ki is the degree of node i.
Thus, if node i has three neighbors, the walker moves to each neighbor with probability 31.
The transition probabilities must satisfy probability conservation:
where Tij is the probability of moving from node i to node j in one step.
A random walk is a probability-conserving process: all probability leaving a node must be distributed among possible destinations so that the total probability remains 1.
Probability vector
The distribution of walkers across the graph at time t is represented by
where pi(t) is the probability that a walker is located at node i at time t.
For a normalized probability distribution,
Random Walks and Markov Chains
A random walk on a graph is a Markov chain. The graph nodes correspond to Markov-chain states, and the edges determine the transition probabilities between states.
For an unweighted undirected graph, the adjacency matrix A is defined by
The transition matrix is
This means that a walker at node i selects each neighbor with equal probability.
Because the sum of the adjacency entries in row i is ki,
Therefore, T is a row-stochastic matrix.
One-step evolution
Using row-vector notation, the probability at node j at the next time is
The vector form is
Repeated application gives the formal solution
The transition matrix is generally a directed object, even when the underlying graph is undirected. This occurs because the probabilities of moving from i to j and from j to i are generally different when ki=kj:
Types of States in a Markov Chain
Absorbing states
An absorbing state is a state that cannot be left. For state i,
Equivalently,
Once a walker reaches an absorbing state, it remains there permanently.
Ergodic sets
An ergodic set is a closed, mutually reachable set of states.
A set of nodes forms an ergodic set when:
Every node in the set can reach every other node in the set, possibly after several steps.
No transition leads from the set to a node outside the set.
Once a walker enters an ergodic set, it remains there forever, and the states within the set communicate with each other.
An absorbing state is a special case of an ergodic set consisting of one node.
Transient states
A transient state is a state that does not belong to any closed ergodic set. Probability may eventually leak away from such a state and never return.
As time tends to infinity, the probability of finding the walker in a transient state approaches zero:
for transient node i, under the usual finite-state assumptions.
Stationary Distributions
A stationary distribution is a probability vector that remains unchanged under the transition process. It is denoted by p∗ and satisfies
Thus, p∗ is a left eigenvector of T with eigenvalue 1.
The existence of eigenvalue 1 follows from the row-stochastic property:
where 1 is the vector of all ones. Hence, 1 is a right eigenvalue of T, and a corresponding left eigenvector provides a stationary distribution.
For a connected undirected graph, the stationary distribution is proportional to node degree:
where M is the number of edges and
Therefore, high-degree nodes are visited more frequently than low-degree nodes.
Spectral Analysis of Random Walks
The formal solution p(t)=p(0)Tt describes the process but does not immediately explain how different dynamical modes evolve. Spectral analysis provides this insight by expressing the probability distribution in a basis formed by eigenvectors of the transition matrix.
Symmetrizing the transition matrix
For an undirected graph, define the degree matrix
The transition matrix can be written as
Although A is symmetric, T is generally not symmetric. However, T is similar to the symmetric normalized adjacency matrix
whose entries are
The matrices are related by
Because similar matrices have the same eigenvalues, T and A share the same spectrum.
Consequences
Since A is symmetric:
Its eigenvalues are real.
Its eigenvectors can be chosen to be orthogonal.
The transition matrix T also has real eigenvalues.
The eigenvectors of T can be constructed from those of A.
If Auℓ=λℓuℓ, then the corresponding right and left eigenvectors of T are proportional to
and
The eigenvalues are ordered as
For a connected graph, λ1=1 is unique.
The smallest eigenvalue satisfies
if and only if the graph is bipartite.
Eigenmode decomposition
Using the spectral decomposition of A,
the t-step transition matrix can be expressed as
Consequently, the probability distribution becomes
The coefficient
is the initial amplitude of the probability distribution in eigenmode ℓ.
The amplitude at time t is
Thus, the original coupled system of node probabilities can be viewed as N independent equations, one for each eigenmode.
Each eigenmode evolves independently, and its amplitude is multiplied by λℓ at every time step.
Graph Fourier Transform
Representing a graph signal in the eigenvector basis of a graph-related matrix is called a Graph Fourier Transform.
In this setting:
The node-probability vector is the original graph signal.
The eigenvectors of the transition matrix form the transformed basis.
The coefficients aℓ(t) are amplitudes associated with graph modes or spatial frequencies.
This is analogous to the ordinary Fourier transform, where a signal is decomposed into complex exponentials such as
In physical systems such as the heat equation, Fourier modes are eigenfunctions of the Laplacian and evolve independently. Graph Fourier analysis performs a similar operation on a network: it finds a basis adapted to the graph so that the dynamics become simpler.
Long-Term Behavior and Mixing
Eigenvalue 1
The eigenvalue
corresponds to the stationary mode. Since
this component does not decay over time.
For all other eigenvalues satisfying
the corresponding contributions vanish asymptotically:
Therefore, for a connected, non-bipartite graph,
The asymptotic distribution is determined by the left eigenvector associated with λ1=1.
For a connected undirected graph,
Bipartite graphs and oscillations
A connected bipartite graph has an eigenvalue λN=−1. Its contribution evolves as
which alternates sign between consecutive times.
This produces periodic oscillations. For example, if all probability begins on one part of a bipartite graph, it moves to the other part at the next step and returns to the first part after another step.
Consequently, the distribution may fail to converge at every individual time step, even though an appropriate time average can approach the stationary distribution.
Spectral gap
The second-largest eigenvalue, λ2, controls the slowest decaying mode after stationarity. The spectral gap is
For sufficiently large t, the dominant deviation from stationarity behaves approximately as
Since this is exponential decay, the spectral gap determines the relaxation speed:
Small γ: λ2 is close to 1, so convergence is slow.
Large γ: λ2 is well separated from 1, so convergence is fast.
The spectral gap is closely related to the mixing time, the time required for the random walk to become close to its stationary distribution.
Conductance and the Cheeger inequality
The conductance, or Cheeger constant, measures how easily a graph can be divided into two weakly connected portions.
For a set of nodes S, let Sˉ denote its complement. The volume of S is
The conductance of the partition is based on
where ∣∂S∣ is the number of edges connecting S to Sˉ.
The graph conductance is the minimum of this ratio over nontrivial sets S:
The normalization by volume prevents trivial solutions in which one side contains only a very small number of nodes.
Interpretation
A graph has small conductance when:
It can be separated into two relatively large sets.
Only a few edges connect the two sets.
The connection between the sets acts as a bottleneck.
The Cheeger inequality relates conductance to the spectral gap. In a standard normalized-Laplacian formulation,
The exact constants depend on the convention used for the Laplacian, but the central relationship is consistent:
Low conductance implies a small spectral gap.
A small spectral gap implies slow random-walk relaxation.
A bottleneck prevents probability from moving efficiently between regions.
Thus, a graph-theoretic property—how strongly two regions are connected—predicts a dynamical property: how quickly a random walk reaches stationarity.
PageRank
Centrality from random walks
PageRank uses the stationary distribution of a random walk to define node importance.
Unlike degree, betweenness, closeness, and Katz centrality, PageRank is based on how a dynamical process distributes probability throughout a network.
It is especially useful for directed networks, where the direction of links carries meaning.
Directed random walks
In a directed graph, a node has:
In-neighbors: nodes with links pointing toward it
Out-neighbors: nodes that it points toward
In-degree: number of incoming links
Out-degree: number of outgoing links
A directed random walker at node i chooses one of its out-neighbors. For an unweighted directed graph,
where Aij=1 if there is a directed edge from i to j.
The transition matrix is no longer generally symmetric, and the random walk may not have a unique stationary distribution.
PageRank definition
The PageRank vector is the stationary distribution of the directed random walk:
Componentwise,
The PageRank of node j is therefore the stationary probability assigned to node j.
Interpretation
A node receives high PageRank when:
Many links point to it.
Those incoming links originate from important nodes.
The important source nodes have relatively few outgoing links.
A node's importance is divided among all of its out-neighbors. An incoming link from a highly ranked node is therefore more valuable when that source node does not link to many other destinations.
For example, being followed by a highly influential account that follows only a few accounts contributes more PageRank than being followed by the same account if it follows millions of accounts.
Why ordinary directed random walks can fail
A directed graph may not be strongly connected. It can contain:
Several strongly connected components
Absorbing nodes or components
Transient nodes
Regions from which the walker cannot escape
In such cases, the stationary distribution may not be unique. The long-term distribution can depend on the starting node.
Consequences include:
Probability becoming concentrated in absorbing states
Transient nodes receiving PageRank equal to zero
Centrality values depending on initial conditions
No meaningful global ranking of all nodes
To solve this problem, PageRank introduces random teleportation.
PageRank with teleportation
At each step, the walker:
Follows a directed edge with probability α.
Teleports to a randomly selected node with probability 1−α.
The PageRank evolution is
or, using row-vector notation,
Here, u is the preference vector, satisfying
The teleportation component is independent of the graph's link structure.
The stationary PageRank vector satisfies
Solving for p∗ gives
When every ui is strictly positive and
teleportation makes the process ergodic. The PageRank vector is then unique, regardless of the original graph structure.
Meaning of α
The parameter α controls the balance between topology and teleportation:
Small α: frequent teleportation; the ranking is strongly influenced by the preference vector and weakly by the graph.
Large α: the walker follows links for longer periods; topology has greater influence, but convergence becomes slower and numerical difficulties may increase.
A commonly used historical value is
This value was motivated by the approximate lengths of browsing sessions in which users follow several hyperlinks before starting from a new page.
For an unpersonalized PageRank calculation, the usual preference vector is uniform:
For personalized PageRank, the preference vector is biased toward nodes or topics relevant to a particular user.
Walk interpretation of PageRank
Expanding the inverse matrix gives
Therefore,
This shows that PageRank combines contributions from walks of all lengths:
Length-0 walks represent immediate teleportation.
Length-1 walks represent one followed link.
Length-2 walks represent two consecutive followed links.
Longer walks receive weights proportional to αℓ.
As α increases, longer walks contribute more strongly.
PageRank therefore measures not merely the number of direct incoming links, but the influence transmitted through paths of arbitrary length.
Important PageRank properties
Regular directed graphs
Suppose every node has the same in-degree and out-degree k. Then no node is structurally distinguishable from another through the random-walk process.
With a uniform preference vector,
for every node, regardless of α.
Undirected graphs
For a connected undirected graph, the stationary random-walk distribution is
Thus, PageRank reduces to degree-proportional centrality on undirected graphs. This is why PageRank is especially valuable for directed networks: in undirected networks it provides little information beyond degree.
Dangling nodes
A dangling node has incoming links but no outgoing links. At such a node, the usual transition rule is undefined because the walker has no edge to follow.
The standard solution is to force teleportation whenever the walker reaches a dangling node. The walker then moves according to the preference vector rather than following an outgoing link.
Respondent-Driven Sampling
Sampling hidden populations
In many statistical settings, the full population cannot be directly sampled. This may occur because:
The population has no complete registry.
Individuals are difficult to identify.
The population is socially hidden or inaccessible.
Sampling every individual would be impractical.
Each individual, represented by a node, has an attribute Yi. The attribute might be:
Disease status
Age
Income
Demographic category
Another continuous or binary characteristic
The goal is to estimate a population statistic, such as the average of Y or the proportion of individuals with a particular attribute.
Social relationships between individuals can be used to explore the population through respondent-driven sampling, abbreviated RDS.
Basic RDS procedure
RDS typically proceeds as follows:
Select one or more initial individuals, called seeds.
Give each seed a limited number of recruitment coupons.
The seeds recruit friends or social contacts.
Recruited individuals report their attribute values.
Recruited individuals receive coupons and recruit additional contacts.
The process continues through successive recruitment waves.
This creates a chain or branching recruitment structure that explores the social network.
A naive estimate of the average attribute is
where S is the set of sampled individuals and Ns=∣S∣.
However, this estimate is generally biased.
Degree bias in random-walk sampling
Consider the simplified case in which:
Each individual recruits exactly one friend.
Sampling is with replacement.
The graph is undirected, unweighted, and connected.
Under these assumptions, the recruitment sequence behaves approximately like a discrete-time random walk.
The stationary probability of visiting node i is
Thus, high-degree individuals are sampled more frequently than low-degree individuals.
This creates degree-biased sampling. If the attribute Yi is correlated with degree, the naive sample average will be biased.
For example, if individuals with more social contacts are more likely to have a disease, a degree-biased sample may overestimate disease prevalence.
RDS2 estimator
To compensate for the greater sampling probability of high-degree nodes, each observed value is weighted inversely by degree.
The RDS2 estimator for a mean is
The factor ki1 gives:
Less weight to frequently sampled, high-degree nodes
More weight to infrequently sampled, low-degree nodes
This attempts to counterbalance the sampling probability, which is proportional to ki.
The estimator can be used for continuous variables, binary variables, and categorical variables.
Estimating a category proportion
Let A be a category of interest. The estimated proportion of the population belonging to category A is
For example, A could represent individuals who are infected, belong to a particular age group, or have a particular hair color.
Practical limitations of RDS
Degree reporting
RDS requires individuals to estimate their degree, meaning the number of relevant social contacts they have. This is difficult because:
The definition of a relevant contact may be ambiguous.
People may not know the full extent of their social network.
Reported degrees may be inaccurate.
Degree estimates may differ depending on the recruitment process being modeled.
Since the RDS2 estimator depends directly on ki, errors in degree reporting can produce biased estimates and increase variance.
Failure to reach stationarity
The random-walk justification assumes that the sample is sufficiently long for the process to approach stationarity.
In practice, samples are finite. If the graph contains communities connected by only a few edges, a sample beginning in one community may remain there for a long time.
If the observation time is shorter than the mixing time:
The sample may represent only one community.
Other parts of the population may be underrepresented or entirely absent.
Estimates may be biased if Y differs between communities.
This limitation is directly related to the spectral gap. Small conductance produces a small spectral gap, which produces slow mixing.
Sampling without replacement
The simple random-walk model assumes sampling with replacement, meaning that an individual may be contacted more than once.
Real recruitment often avoids inviting someone who has already participated. This changes the dynamics and means that a standard random walk may no longer be an accurate model.
Non-backtracking random walks
A refinement is the non-backtracking random walk. After moving from node i to node j, the walker is not allowed to immediately return to i.
If node j has three neighbors and one is the node from which the walker arrived, then only the other two neighbors are eligible for the next step. Each may be selected with probability 21.
Non-backtracking walks may better represent recruitment processes in which a participant cannot or does not recruit the person who recruited them. They can also provide a more realistic basis for refined RDS estimators.
Continuous-Time Random Walks
From synchronized to asynchronous motion
In a discrete-time random walk, all walkers move at the same sequence of times:
In a continuous-time random walk, walkers move at random times. Each walker has its own event process, so different walkers are generally not synchronized.
A continuous-time random walk requires two ingredients:
A rule specifying the destination when a jump occurs.
A rule specifying when jumps occur.
The destination rule can be the same as in a discrete-time random walk. The additional feature is the random timing of events.
Node-centric continuous-time random walks
In a node-centric model, the timing process is associated with the node occupied by the walker.
When a walker arrives at a node, it waits for a random time τ and then moves. The waiting times are generated by a Poisson process.
For a Poisson process with rate λ, the inter-event time has an exponential distribution:
For simplicity, one often sets
At the moment of movement, the walker chooses an outgoing edge according to the discrete-time transition matrix T.
Thus, the total rate of leaving a node is fixed, while the rate associated with any particular edge depends on the number of available neighbors. If node i has ki neighbors, the rate along each edge is proportional to
Master equation
The node-centric process satisfies
Equivalently, using the random-walk Laplacian
the equation becomes
The matrix Lrw has diagonal entries representing the rate of leaving a node and off-diagonal entries representing transition rates between nodes.
Because Lrw=I−T, the transition matrix and random-walk Laplacian have the same eigenvectors, while their eigenvalues are shifted:
Since λℓ∈[−1,1], the random-walk Laplacian eigenvalues lie in
The eigenvalue 0 corresponds to the stationary state, and the eigenvalue 2 occurs for a bipartite graph.
Stationary distribution
For a connected undirected graph, the node-centric continuous-time process has the same stationary distribution as the discrete-time walk:
The waiting-time mechanism changes the timing of movement but not the long-term distribution over nodes.
Edge-centric continuous-time random walks
In an edge-centric model, each edge is associated with an independent Poisson process, usually with rate 1.
A walker at a node can move along any active incident edge. The total rate at which the walker leaves node i is therefore proportional to the number of incident edges:
Consequently:
A node with many edges is left quickly.
A node with few edges is left slowly.
This is different from the node-centric model, where every node has the same total departure rate.
Master equation
For an undirected graph, the edge-centric process satisfies
where D is the degree matrix.
Using the combinatorial graph Laplacian
the equation becomes
The combinatorial Laplacian is symmetric for an undirected graph.
Stationary distribution
The stationary state satisfies
Because L has the all-ones vector as its zero-eigenvalue eigenvector, normalization gives
Thus, the edge-centric process has a uniform stationary distribution, unlike the node-centric process.
Comparing the two continuous-time models
Node-centric process
The waiting time is associated with the current node.
The total departure rate from every node is the same.
The walker chooses among neighbors after its waiting time.
Stationary distribution on an undirected graph:
Edge-centric process
Each edge has its own Poisson event process.
The total departure rate is proportional to node degree.
High-degree nodes are left more quickly.
Stationary distribution on an undirected graph:
The two models are equivalent on a regular graph, because every node has the same degree. On an irregular graph, they describe genuinely different dynamics and produce different stationary distributions.
Random Walks and Consensus Dynamics
Random walks and consensus processes are dual descriptions of related graph dynamics.
A random walk evolves a probability distribution over nodes. A consensus process evolves node states toward agreement.
For a Laplacian L∗ associated with a random-walk process, the corresponding consensus equation can be written as
Depending on whether the Laplacian acts from the left or right, one obtains either:
A random-walk equation for probabilities
A dual consensus equation for node states
For the combinatorial Laplacian L=D−A, the consensus process is
Its stationary state is proportional to the all-ones vector. After normalization, all nodes have the same value, representing consensus.
This duality shows that the same spectral structures govern:
Diffusion of probability
Relaxation toward consensus
Mixing times
Stationary states
Convergence rates
The network Laplacian therefore provides a common mathematical language for both random walks and consensus dynamics.
Central summary: Random walks translate network structure into dynamics. Their stationary distributions reveal node importance, their eigenvalues determine relaxation and mixing, their bottlenecks are captured by conductance, and their continuous-time versions expose how different assumptions about event timing lead to different long-term behavior.

Ask anything
We've read this whole study set, so questions about it get the best answers.