A Pure Hypothesis Test for Inhomogeneous Random Graph Models Based on a Kernelised Stein Discrepancy
Anum Fatima, Gesine Reinert
TL;DR
This work introduces IRG-gKSS, a pure hypothesis test for assessing the fit of a pre-specified inhomogeneous random graph model using a kernelised Stein discrepancy tailored to graphs. It defines a Stein operator for IRGs, derives a computable graph-kernel statistic, and implements a Monte Carlo testing framework that requires only a single observed network and no asymptotic regime assumptions. The method demonstrates strong power against structured alternatives (e.g., planted hubs/cliques) and yields plausible inferences on real networks, with theoretical guarantees including a non-asymptotic normal approximation under fairly general conditions. Practical considerations include the use of graph kernels like Weisfeiler-Lehman, edge-resampling for large graphs, and the potential for multiple kernels to improve robustness and power. Overall, IRG-gKSS provides a principled, scalable, and assumption-light tool for validating IRG models in network analysis.
Abstract
Complex data are often represented as a graph, which in turn can often be viewed as a realisation of a random graph, such as an inhomogeneous random graph model (IRG). For general fast goodness-of-fit tests in high dimensions, kernelised Stein discrepancy (KSD) tests are a powerful tool. Here, we develop a KSD-type test for IRG models that can be carried out with a single observation of the network. The test applies to a network of any size, but is particularly interesting for small networks for which asymptotic tests are not warranted. We also provide theoretical guarantees.
