Skip to main content
QUICK REVIEW

[Paper Review] Are we there yet? When to stop a Markov chain while generating random graphs

Jaideep Ray, Ali Pinar|arXiv (Cornell University)|Feb 15, 2012
Complex Network Analysis TechniquesPhysics and Astronomy10 references5 citations
TL;DR

This paper proposes two practical methods to determine the number of Markov chain iterations (N) needed to generate approximately independent random graphs with a prescribed joint degree distribution. Method A uses a closed-form model assuming edge independence to estimate N, while Method B uses data-driven thinning of edge occurrence time-series to select the optimal thinning factor k. The key result is that N ≈ 30|E| provides nearly independent samples, with Method A's output statistically indistinguishable from Method B's at scale.

ABSTRACT

Markov chains are a convenient means of generating realizations of networks, since they require little more than a procedure for rewiring edges. If a rewiring procedure exists for generating new graphs with specified statistical properties, then a Markov chain sampler can generate an ensemble of graphs with prescribed characteristics. However, successive graphs in a Markov chain cannot be used when one desires independent draws from the distribution of graphs; the realizations are correlated. Consequently, one runs a Markov chain for N iterations before accepting the realization as an independent sample. In this work, we devise two methods for calculating N. They are both based on the binary "time-series" denoting the occurrence/non-occurrence of edge (u, v) between vertices u and v in the Markov chain of graphs generated by the sampler. They differ in their underlying assumptions. We test them on the generation of graphs with a prescribed joint degree distribution. We find the N proportional |E|, where |E| is the number of edges in the graph. The two methods are compared by sampling on real, sparse graphs with 10^3 - 10^4 vertices.

Motivation & Objective

  • To address the challenge of generating independent graph realizations from Markov chain Monte Carlo (MCMC) samplers, which produce correlated samples due to sequential dependence.
  • To eliminate initialization bias and reduce autocorrelation in MCMC-generated graph ensembles by determining the minimum number of iterations N before sampling.
  • To develop simple, practical, and approximate methods that avoid user-defined thresholds and high computational costs of full autocorrelation analysis across all edges.
  • To validate the proposed methods using real sparse graphs and compare their performance using graph-level metrics like diameter and edge distribution.
  • To provide a scalable solution for generating statistically reliable ensembles of graphs with a fixed joint degree distribution.

Proposed method

  • Method A ('multiple short runs') uses a closed-form model based on edge independence to estimate the number of iterations N required for the Markov chain to converge to its stationary distribution.
  • The method assumes that edge occurrences in the chain follow a Bernoulli process and derives N such that the chain has sufficiently 'forgotten' its initial state.
  • Method B ('one long run') analyzes the binary time-series of edge presence/absence over a single long MCMC run and progressively thins the chain by retaining every kth sample.
  • It uses likelihood comparison between a first-order Markov model and an independent sampling model, selecting the thinning factor k where the independent model has a lower BIC score.
  • The method is data-driven and does not require user-defined thresholds like ρ_min, making it more robust than prior autocorrelation-based approaches.
  • Both methods are tested on real sparse graphs (10^3–10^4 vertices), with results validated using graph metrics such as diameter and edge distribution.

Experimental results

Research questions

  • RQ1What is a practical and scalable method to determine the number of MCMC iterations N that ensures the generated graph realizations are approximately independent?
  • RQ2How can initialization bias and autocorrelation in MCMC-generated graph ensembles be minimized without relying on user-defined thresholds?
  • RQ3To what extent do the two proposed methods—Method A (model-based) and Method B (data-driven)—produce statistically equivalent graph ensembles?
  • RQ4How does the choice of N ≈ 30|E| compare to the data-driven k-factor in terms of preserving global graph properties like diameter and edge distribution?
  • RQ5What is the impact of residual correlation in a small number of rare edges on the overall distribution of graph metrics?

Key findings

  • The proposed Method A estimates N ≈ 30|E| as sufficient to generate nearly independent graph realizations, minimizing initialization bias and achieving near-stationarity.
  • Method B, which uses BIC-based model selection on edge time-series, identifies optimal thinning factors k that are typically in the range of 10|E| to 100|E|, confirming the practicality of N ≈ 30|E|.
  • Graph ensembles generated using Method A with N = 30|E| are statistically indistinguishable from those generated using Method B across multiple metrics, including diameter and edge distribution.
  • Despite the theoretical assumption of edge independence in Method A, the resulting ensembles show only minor differences from Method B, with distributions being marginally wider due to residual correlation in a small number of rare edges.
  • The differences between Method A and Method B are measurable but negligible in large graphs, indicating that N ≈ 30|E| is a robust and practical choice for generating independent samples.
  • The study demonstrates that both methods are effective and scalable, with Method A offering a computationally efficient alternative to full autocorrelation analysis across all |V|² edges.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.