1. Home
  2. Explore
  3. Mathematics
  4. Discrete-Time Random Walks

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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 NNN nodes. A collection of walkers occupies the nodes, and all walkers move simultaneously at times

t=0,1,2,…t=0,1,2,\ldotst=0,1,2,…

At each step, a walker located at node iii chooses one of its neighboring nodes. For an unweighted graph, the walker typically chooses uniformly among the kik_iki​ neighbors of node iii, where kik_iki​ is the degree of node iii.

Thus, if node iii has three neighbors, the walker moves to each neighbor with probability 13\frac{1}{3}31​.

The transition probabilities must satisfy probability conservation:

∑jTij=1\sum_j T_{ij}=1∑j​Tij​=1

where TijT_{ij}Tij​ is the probability of moving from node iii to node jjj 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 111.

Probability vector

The distribution of walkers across the graph at time ttt is represented by

p(t)=(p1(t),p2(t),…,pN(t)),\mathbf{p}(t)=\left(p_1(t),p_2(t),\ldots,p_N(t)\right),p(t)=(p1​(t),p2​(t),…,pN​(t)),

where pi(t)p_i(t)pi​(t) is the probability that a walker is located at node iii at time ttt.

For a normalized probability distribution,

∑ipi(t)=1.\sum_i p_i(t)=1.∑i​pi​(t)=1.

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 AAA is defined by

Aij={1,if nodes i and j are connected,0,otherwise.A_{ij}= \begin{cases} 1, & \text{if nodes } i \text{ and } j \text{ are connected},\\ 0, & \text{otherwise}. \end{cases}Aij​={1,0,​if nodes i and j are connected,otherwise.​

The transition matrix is

Tij=Aijki.T_{ij}=\frac{A_{ij}}{k_i}.Tij​=ki​Aij​​.

This means that a walker at node iii selects each neighbor with equal probability.

Because the sum of the adjacency entries in row iii is kik_iki​,

∑jTij=∑jAijki=kiki=1.\sum_j T_{ij} = \sum_j \frac{A_{ij}}{k_i} = \frac{k_i}{k_i} = 1.∑j​Tij​=∑j​ki​Aij​​=ki​ki​​=1.

Therefore, TTT is a row-stochastic matrix.

One-step evolution

Using row-vector notation, the probability at node jjj at the next time is

pj(t+1)=∑ipi(t)Tij.p_j(t+1)=\sum_i p_i(t)T_{ij}.pj​(t+1)=∑i​pi​(t)Tij​.

The vector form is

p(t+1)=p(t)T.\mathbf{p}(t+1)=\mathbf{p}(t)T.p(t+1)=p(t)T.

Repeated application gives the formal solution

p(t)=p(0)Tt.\mathbf{p}(t)=\mathbf{p}(0)T^t.p(t)=p(0)Tt.

The transition matrix is generally a directed object, even when the underlying graph is undirected. This occurs because the probabilities of moving from iii to jjj and from jjj to iii are generally different when ki≠kjk_i\neq k_jki​=kj​:

Tij=1ki,Tji=1kj.T_{ij}=\frac{1}{k_i}, \qquad T_{ji}=\frac{1}{k_j}.Tij​=ki​1​,Tji​=kj​1​.

Types of States in a Markov Chain

Absorbing states

An absorbing state is a state that cannot be left. For state iii,

Tii=1.T_{ii}=1.Tii​=1.

Equivalently,

Tij=0for all j≠i.T_{ij}=0 \qquad \text{for all }j\neq i.Tij​=0for all j=i.

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:

  1. Every node in the set can reach every other node in the set, possibly after several steps.

  2. 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:

lim⁡t→∞pi(t)=0\lim_{t\to\infty}p_i(t)=0limt→∞​pi​(t)=0

for transient node iii, 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∗\mathbf{p}^*p∗ and satisfies

p∗=p∗T.\mathbf{p}^*=\mathbf{p}^*T.p∗=p∗T.

Thus, p∗\mathbf{p}^*p∗ is a left eigenvector of TTT with eigenvalue 111.

The existence of eigenvalue 111 follows from the row-stochastic property:

T1=1,T\mathbf{1}=\mathbf{1},T1=1,

where 1\mathbf{1}1 is the vector of all ones. Hence, 111 is a right eigenvalue of TTT, and a corresponding left eigenvector provides a stationary distribution.

For a connected undirected graph, the stationary distribution is proportional to node degree:

pi∗=ki2M,p_i^*=\frac{k_i}{2M},pi∗​=2Mki​​,

where MMM is the number of edges and

2M=∑iki.2M=\sum_i k_i.2M=∑i​ki​.

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\mathbf{p}(t)=\mathbf{p}(0)T^tp(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

D=diag⁡(k1,k2,…,kN).D=\operatorname{diag}(k_1,k_2,\ldots,k_N).D=diag(k1​,k2​,…,kN​).

The transition matrix can be written as

T=D−1A.T=D^{-1}A.T=D−1A.

Although AAA is symmetric, TTT is generally not symmetric. However, TTT is similar to the symmetric normalized adjacency matrix

A~=D−1/2AD−1/2,\widetilde{A}=D^{-1/2}AD^{-1/2},A=D−1/2AD−1/2,

whose entries are

A~ij=Aijkikj.\widetilde{A}_{ij} = \frac{A_{ij}}{\sqrt{k_i k_j}}.Aij​=ki​kj​​Aij​​.

The matrices are related by

T=D−1/2A~D1/2.T=D^{-1/2}\widetilde{A}D^{1/2}.T=D−1/2AD1/2.

Because similar matrices have the same eigenvalues, TTT and A~\widetilde{A}A share the same spectrum.

Consequences

Since A~\widetilde{A}A is symmetric:

  • Its eigenvalues are real.

  • Its eigenvectors can be chosen to be orthogonal.

  • The transition matrix TTT also has real eigenvalues.

  • The eigenvectors of TTT can be constructed from those of A~\widetilde{A}A.

If A~uℓ=λℓuℓ\widetilde{A}\mathbf{u}_\ell=\lambda_\ell\mathbf{u}_\ellAuℓ​=λℓ​uℓ​, then the corresponding right and left eigenvectors of TTT are proportional to

uℓ R=D−1/2uℓ\mathbf{u}^{\,R}_\ell=D^{-1/2}\mathbf{u}_\elluℓR​=D−1/2uℓ​

and

uℓ L=D1/2uℓ.\mathbf{u}^{\,L}_\ell=D^{1/2}\mathbf{u}_\ell.uℓL​=D1/2uℓ​.

The eigenvalues are ordered as

1=λ1≥λ2≥⋯≥λN≥−1.1=\lambda_1\geq\lambda_2\geq\cdots\geq\lambda_N\geq -1.1=λ1​≥λ2​≥⋯≥λN​≥−1.

For a connected graph, λ1=1\lambda_1=1λ1​=1 is unique.

The smallest eigenvalue satisfies

λN=−1\lambda_N=-1λN​=−1

if and only if the graph is bipartite.


Eigenmode decomposition

Using the spectral decomposition of A~\widetilde{A}A,

A~=∑ℓ=1NλℓuℓuℓT,\widetilde{A} = \sum_{\ell=1}^{N}\lambda_\ell \mathbf{u}_\ell\mathbf{u}_\ell^{\mathsf T},A=∑ℓ=1N​λℓ​uℓ​uℓT​,

the ttt-step transition matrix can be expressed as

Tt=∑ℓ=1Nλℓtuℓ Ruℓ L.T^t = \sum_{\ell=1}^{N} \lambda_\ell^t \mathbf{u}^{\,R}_\ell \mathbf{u}^{\,L}_\ell.Tt=∑ℓ=1N​λℓt​uℓR​uℓL​.

Consequently, the probability distribution becomes

p(t)=∑ℓ=1Nλℓt[p(0)uℓ R]uℓ L.\mathbf{p}(t) = \sum_{\ell=1}^{N} \lambda_\ell^t \left[\mathbf{p}(0)\mathbf{u}^{\,R}_\ell\right] \mathbf{u}^{\,L}_\ell.p(t)=∑ℓ=1N​λℓt​[p(0)uℓR​]uℓL​.

The coefficient

aℓ(0)=p(0)uℓ Ra_\ell(0)=\mathbf{p}(0)\mathbf{u}^{\,R}_\ellaℓ​(0)=p(0)uℓR​

is the initial amplitude of the probability distribution in eigenmode ℓ\ellℓ.

The amplitude at time ttt is

aℓ(t)=λℓtaℓ(0).a_\ell(t)=\lambda_\ell^t a_\ell(0).aℓ​(t)=λℓt​aℓ​(0).

Thus, the original coupled system of node probabilities can be viewed as NNN independent equations, one for each eigenmode.

Each eigenmode evolves independently, and its amplitude is multiplied by λℓ\lambda_\ellλℓ​ 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)a_\ell(t)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

eikx.e^{ikx}.eikx.

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 111

The eigenvalue

λ1=1\lambda_1=1λ1​=1

corresponds to the stationary mode. Since

1t=1,1^t=1,1t=1,

this component does not decay over time.

For all other eigenvalues satisfying

∣λℓ∣<1,|\lambda_\ell|<1,∣λℓ​∣<1,

the corresponding contributions vanish asymptotically:

lim⁡t→∞λℓt=0.\lim_{t\to\infty}\lambda_\ell^t=0.limt→∞​λℓt​=0.

Therefore, for a connected, non-bipartite graph,

lim⁡t→∞p(t)=p∗.\lim_{t\to\infty}\mathbf{p}(t)=\mathbf{p}^*.limt→∞​p(t)=p∗.

The asymptotic distribution is determined by the left eigenvector associated with λ1=1\lambda_1=1λ1​=1.

For a connected undirected graph,

pi∗=ki2M.p_i^*=\frac{k_i}{2M}.pi∗​=2Mki​​.

Bipartite graphs and oscillations

A connected bipartite graph has an eigenvalue λN=−1\lambda_N=-1λN​=−1. Its contribution evolves as

(−1)taN(0),(-1)^t a_N(0),(−1)taN​(0),

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\lambda_2λ2​, controls the slowest decaying mode after stationarity. The spectral gap is

γ=1−λ2.\gamma=1-\lambda_2.γ=1−λ2​.

For sufficiently large ttt, the dominant deviation from stationarity behaves approximately as

λ2t.\lambda_2^t.λ2t​.

Since this is exponential decay, the spectral gap determines the relaxation speed:

  • Small γ\gammaγ: λ2\lambda_2λ2​ is close to 111, so convergence is slow.

  • Large γ\gammaγ: λ2\lambda_2λ2​ is well separated from 111, 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 SSS, let Sˉ\bar{S}Sˉ denote its complement. The volume of SSS is

vol⁡(S)=∑i∈Ski.\operatorname{vol}(S)=\sum_{i\in S}k_i.vol(S)=∑i∈S​ki​.

The conductance of the partition is based on

∣∂S∣min⁡{vol⁡(S),vol⁡(Sˉ)},\frac{|\partial S|} {\min\{\operatorname{vol}(S),\operatorname{vol}(\bar S)\}},min{vol(S),vol(Sˉ)}∣∂S∣​,

where ∣∂S∣|\partial S|∣∂S∣ is the number of edges connecting SSS to Sˉ\bar SSˉ.

The graph conductance is the minimum of this ratio over nontrivial sets SSS:

h=min⁡S∣∂S∣min⁡{vol⁡(S),vol⁡(Sˉ)}.h= \min_{S} \frac{|\partial S|} {\min\{\operatorname{vol}(S),\operatorname{vol}(\bar S)\}}.h=minS​min{vol(S),vol(Sˉ)}∣∂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,

h22≤1−λ2≤2h.\frac{h^2}{2}\leq 1-\lambda_2\leq 2h.2h2​≤1−λ2​≤2h.

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 iii chooses one of its out-neighbors. For an unweighted directed graph,

Tij=Aijkiout,T_{ij}=\frac{A_{ij}}{k_i^{\mathrm{out}}},Tij​=kiout​Aij​​,

where Aij=1A_{ij}=1Aij​=1 if there is a directed edge from iii to jjj.

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:

p∗=p∗T.\mathbf{p}^*=\mathbf{p}^*T.p∗=p∗T.

Componentwise,

pj∗=∑ipi∗Aijkiout.p_j^* = \sum_i p_i^* \frac{A_{ij}}{k_i^{\mathrm{out}}}.pj∗​=∑i​pi∗​kiout​Aij​​.

The PageRank of node jjj is therefore the stationary probability assigned to node jjj.

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:

  1. Follows a directed edge with probability α\alphaα.

  2. Teleports to a randomly selected node with probability 1−α1-\alpha1−α.

The PageRank evolution is

pi(t+1)=α∑jpj(t)Tji+(1−α)ui,p_i(t+1) = \alpha\sum_j p_j(t)T_{ji} + (1-\alpha)u_i,pi​(t+1)=α∑j​pj​(t)Tji​+(1−α)ui​,

or, using row-vector notation,

p(t+1)=αp(t)T+(1−α)u.\mathbf{p}(t+1) = \alpha\mathbf{p}(t)T + (1-\alpha)\mathbf{u}.p(t+1)=αp(t)T+(1−α)u.

Here, u\mathbf{u}u is the preference vector, satisfying

ui>0,∑iui=1.u_i>0, \qquad \sum_i u_i=1.ui​>0,∑i​ui​=1.

The teleportation component is independent of the graph's link structure.

The stationary PageRank vector satisfies

p∗=αp∗T+(1−α)u.\mathbf{p}^* = \alpha\mathbf{p}^*T + (1-\alpha)\mathbf{u}.p∗=αp∗T+(1−α)u.

Solving for p∗\mathbf{p}^*p∗ gives

p∗=(1−α)u(I−αT)−1.\mathbf{p}^* = (1-\alpha)\mathbf{u}(I-\alpha T)^{-1}.p∗=(1−α)u(I−αT)−1.

When every uiu_iui​ is strictly positive and

0≤α<1,0\leq \alpha<1,0≤α<1,

teleportation makes the process ergodic. The PageRank vector is then unique, regardless of the original graph structure.

Meaning of α\alphaα

The parameter α\alphaα controls the balance between topology and teleportation:

  • Small α\alphaα: frequent teleportation; the ranking is strongly influenced by the preference vector and weakly by the graph.

  • Large α\alphaα: 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

α=0.85.\alpha=0.85.α=0.85.

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:

ui=1N.u_i=\frac{1}{N}.ui​=N1​.

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

(I−αT)−1=∑ℓ=0∞αℓTℓ.(I-\alpha T)^{-1} = \sum_{\ell=0}^{\infty}\alpha^\ell T^\ell.(I−αT)−1=∑ℓ=0∞​αℓTℓ.

Therefore,

p∗=(1−α)∑ℓ=0∞αℓuTℓ.\mathbf{p}^* = (1-\alpha) \sum_{\ell=0}^{\infty} \alpha^\ell \mathbf{u}T^\ell.p∗=(1−α)∑ℓ=0∞​αℓuTℓ.

This shows that PageRank combines contributions from walks of all lengths:

  • Length-000 walks represent immediate teleportation.

  • Length-111 walks represent one followed link.

  • Length-222 walks represent two consecutive followed links.

  • Longer walks receive weights proportional to αℓ\alpha^\ellαℓ.

As α\alphaα 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 kkk. Then no node is structurally distinguishable from another through the random-walk process.

With a uniform preference vector,

pi∗=1Np_i^*=\frac{1}{N}pi∗​=N1​

for every node, regardless of α\alphaα.

Undirected graphs

For a connected undirected graph, the stationary random-walk distribution is

pi∗=ki2M.p_i^*=\frac{k_i}{2M}.pi∗​=2Mki​​.

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 YiY_iYi​. 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 YYY 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:

  1. Select one or more initial individuals, called seeds.

  2. Give each seed a limited number of recruitment coupons.

  3. The seeds recruit friends or social contacts.

  4. Recruited individuals report their attribute values.

  5. Recruited individuals receive coupons and recruit additional contacts.

  6. 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

Y^naive=1Ns∑i∈SYi,\widehat{Y}_{\mathrm{naive}} = \frac{1}{N_s} \sum_{i\in S}Y_i,Ynaive​=Ns​1​∑i∈S​Yi​,

where SSS is the set of sampled individuals and Ns=∣S∣N_s=|S|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 iii is

pi∗=ki2M.p_i^*=\frac{k_i}{2M}.pi∗​=2Mki​​.

Thus, high-degree individuals are sampled more frequently than low-degree individuals.

This creates degree-biased sampling. If the attribute YiY_iYi​ 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

Y^RDS2=∑i∈SYiki∑i∈S1ki.\widehat{Y}_{\mathrm{RDS2}} = \frac{ \displaystyle\sum_{i\in S}\frac{Y_i}{k_i} }{ \displaystyle\sum_{i\in S}\frac{1}{k_i} }.YRDS2​=i∈S∑​ki​1​i∈S∑​ki​Yi​​​.

The factor 1ki\frac{1}{k_i}ki​1​ 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 kik_iki​.

The estimator can be used for continuous variables, binary variables, and categorical variables.

Estimating a category proportion

Let AAA be a category of interest. The estimated proportion of the population belonging to category AAA is

P^(A)=∑i∈S∩A1ki∑i∈S1ki.\widehat{P}(A) = \frac{ \displaystyle\sum_{i\in S\cap A}\frac{1}{k_i} }{ \displaystyle\sum_{i\in S}\frac{1}{k_i} }.P(A)=i∈S∑​ki​1​i∈S∩A∑​ki​1​​.

For example, AAA 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 kik_iki​, 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 YYY 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 iii to node jjj, the walker is not allowed to immediately return to iii.

If node jjj 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 12\frac{1}{2}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:

t=0,1,2,…t=0,1,2,\ldotst=0,1,2,…

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:

  1. A rule specifying the destination when a jump occurs.

  2. 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 τ\tauτ and then moves. The waiting times are generated by a Poisson process.

For a Poisson process with rate λ\lambdaλ, the inter-event time has an exponential distribution:

f(τ)=λe−λτ.f(\tau)=\lambda e^{-\lambda\tau}.f(τ)=λe−λτ.

For simplicity, one often sets

λ=1.\lambda=1.λ=1.

At the moment of movement, the walker chooses an outgoing edge according to the discrete-time transition matrix TTT.

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 iii has kik_iki​ neighbors, the rate along each edge is proportional to

1ki.\frac{1}{k_i}.ki​1​.

Master equation

The node-centric process satisfies

dp(t)dt=p(t)(T−I).\frac{d\mathbf{p}(t)}{dt} = \mathbf{p}(t)(T-I).dtdp(t)​=p(t)(T−I).

Equivalently, using the random-walk Laplacian

Lrw=I−T,L_{\mathrm{rw}}=I-T,Lrw​=I−T,

the equation becomes

dp(t)dt=−p(t)Lrw.\frac{d\mathbf{p}(t)}{dt} = -\mathbf{p}(t)L_{\mathrm{rw}}.dtdp(t)​=−p(t)Lrw​.

The matrix LrwL_{\mathrm{rw}}Lrw​ has diagonal entries representing the rate of leaving a node and off-diagonal entries representing transition rates between nodes.

Because Lrw=I−TL_{\mathrm{rw}}=I-TLrw​=I−T, the transition matrix and random-walk Laplacian have the same eigenvectors, while their eigenvalues are shifted:

μℓ=1−λℓ.\mu_\ell=1-\lambda_\ell.μℓ​=1−λℓ​.

Since λℓ∈[−1,1]\lambda_\ell\in[-1,1]λℓ​∈[−1,1], the random-walk Laplacian eigenvalues lie in

μℓ∈[0,2].\mu_\ell\in[0,2].μℓ​∈[0,2].

The eigenvalue 000 corresponds to the stationary state, and the eigenvalue 222 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:

pi∗=ki2M.p_i^*=\frac{k_i}{2M}.pi∗​=2Mki​​.

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 111.

A walker at a node can move along any active incident edge. The total rate at which the walker leaves node iii is therefore proportional to the number of incident edges:

leaving rate of node i∝ki.\text{leaving rate of node }i\propto k_i.leaving rate of node i∝ki​.

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

dp(t)dt=p(t)(A−D),\frac{d\mathbf{p}(t)}{dt} = \mathbf{p}(t)(A-D),dtdp(t)​=p(t)(A−D),

where DDD is the degree matrix.

Using the combinatorial graph Laplacian

L=D−A,L=D-A,L=D−A,

the equation becomes

dp(t)dt=−p(t)L.\frac{d\mathbf{p}(t)}{dt} = -\mathbf{p}(t)L.dtdp(t)​=−p(t)L.

The combinatorial Laplacian is symmetric for an undirected graph.

Stationary distribution

The stationary state satisfies

p∗L=0.\mathbf{p}^*L=0.p∗L=0.

Because LLL has the all-ones vector as its zero-eigenvalue eigenvector, normalization gives

pi∗=1N.p_i^*=\frac{1}{N}.pi∗​=N1​.

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:

pi∗=ki2M.p_i^*=\frac{k_i}{2M}.pi∗​=2Mki​​.

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:

pi∗=1N.p_i^*=\frac{1}{N}.pi∗​=N1​.

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∗L^*L∗ associated with a random-walk process, the corresponding consensus equation can be written as

dx(t)dt=−L∗x(t).\frac{d\mathbf{x}(t)}{dt} = -L^*\mathbf{x}(t).dtdx(t)​=−L∗x(t).

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−AL=D-AL=D−A, the consensus process is

dx(t)dt=−Lx(t).\frac{d\mathbf{x}(t)}{dt} = -L\mathbf{x}(t).dtdx(t)​=−Lx(t).

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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent