math.STJul 16, 2026

Measuring Spatial Clustering via Metropolis-Hastings Diffusion Distance

Authors: Thomas WeighillChidinma Williams

Organizations: Department of Mathematics and Statistics, University of North Carolina at Greensboro, Greensboro, NC 27402

Abstract

We propose a novel measure of the discrepancy between two probability distributions ff and gg on a graph - which we call the diffusion distance - that measures the rate of convergence of ff to gg under a graph-constrained Markov chain with stationary distribution gg. As a default choice for this Markov chain, we use the Metropolis-Hastings transition matrix targeting gg with proposals given by a random walk on the graph. Our primary case of interest is when the second distribution gg is uniform, in which case the diffusion distance becomes a measure of spatial clustering in ff. Used in this way, (Metropolis-Hastings) diffusion distance to uniformity extends Moran's II-type measures of spatial autocorrelation by incorporating global graph geometry rather than just local patterns. Indeed, Moran's II, the most well-known measure of spatial autocorrelation, can be viewed as a one-step heuristic for diffusion distance, so long as specific spatial weights are used. We establish theoretical bounds and a stability result for our measure, connecting it to graph spectra and optimal transport. We then turn our attention to outlining a statistical test for spatial clustering using diffusion distance. Under permutation null models, we derive high-probability bounds on diffusion distance underpinned by exact spectral formulas for convergence of distributions, enabling an efficient statistical test for spatial clustering on large datasets. We empirically compare diffusion distance to Moran's II both as a numerical measure and as a statistical test. We show that diffusion distance exhibits higher power on synthetic data using a stochastic block model. Empirical analysis of Black population distributions for 100 U.S. cities shows that diffusion distance detects subtle differences in urban segregation patterns that Moran's II does not.

Explore similar work

CardsList
  1. Scalable and Distributed Silhouette Approximation

    Jul 2, 2026Ilie Sarpe, Federico Altieri, Andrea Pietracaprina +2Image ClusteringApproximation Algorithms