Community Correlations and Testing Independence Between Binary Graphs

Junhao Xiong, Cencheng Shen, Jesús Arroyo, Joshua T VogelsteinarXiv 2019 · DOI

Abstract

Graph data presents unique challenges for statistical analysis due to its inherent dependencies. Traditional correlation measures often fail because they assume independent and identically distributed (i.i.d.) data. This paper introduces a novel framework for measuring dependence between binary graphs by accounting for community structures. We propose community correlations to measure edge associations within specific community pairs, leading to tests for both conditional and unconditional independence. Using a computationally efficient graph encoder embedding, we derive asymptotic null distributions that allow for fast, consistent hypothesis testing. The utility of this approach is demonstrated through simulations and applications to the Enron email network and mouse connectome data.

Introduction

In classical statistics, correlation measures typically rely on the assumption that data points are independent and identically distributed. However, graph data—where nodes represent entities and edges represent relationships—violates this assumption. The probability of an edge existing between two nodes is often influenced by the communities to which those nodes belong. Furthermore, edges sharing a vertex are inherently linked.

A critical challenge in network science is distinguishing between unconditional dependence (where two graphs are related in any general sense) and conditional dependence (where edges remain related even after accounting for shared community structures). For instance, two brain networks might appear correlated simply because they share a similar anatomical layout (communities), even if the specific functional connections are independent. This paper addresses this gap by providing a framework to test these distinct forms of independence.

The Community Correlation Framework

The proposed method utilizes the Stochastic Block Model (SBM) to define three hierarchical measures of correlation:

  1. Community Correlation ($\rho(k, l)$): This measures the association between edges within or between specific community pairs $k$ and $l$. It equals zero if and only if the two graphs are conditionally independent within those specific communities.
  2. Maximum Community Correlation ($\rho^m$): Defined as the maximum correlation across all possible community pairs, this serves as a rigorous test for conditional independence across the entire graph.
  3. Graph Correlation ($\rho$): This provides an overall measure of association that ignores community labels, testing for unconditional independence.

Computational Efficiency via Graph Encoder Embedding

To ensure the framework is scalable, the authors introduce a "graph encoder" technique. Traditional spectral methods often require expensive Singular Value Decompositions (SVD) and manual tuning. In contrast, the graph encoder projects adjacency matrices using a normalized one-hot matrix of community labels. This approach reduces computational complexity to $O(n^2)$ for dense graphs and $O(nK + s)$ for sparse graphs (where $n$ is the number of nodes, $K$ is the number of communities, and $s$ is the number of edges).

Crucially, the authors derive the asymptotic null distribution for these measures. This allows researchers to calculate p-values analytically, bypassing the need for computationally intensive permutation tests.

Experimental Results

Synthetic Simulations

The framework was tested against various Stochastic Block Models and Degree-Corrected SBMs. While traditional methods like distance correlation (DCor) on spectral embeddings often suffered from inflated Type 1 error rates (reaching 1.0 in some conditional independence scenarios), the proposed community correlation test maintained a stable error rate of 0.05. This demonstrates the method's unique ability to avoid "false positives" caused by shared community structures.

Enron Email Corpus

The method was applied to 18 undirected graphs representing email traffic among 184 Enron employees. The analysis successfully captured the organizational collapse. While unconditional graph correlation remained high throughout the period, the specific patterns of community correlation shifted significantly following the CEO's resignation in August 2001 and the subsequent bankruptcy in December. This highlights the method's ability to provide granular diagnostics on how specific groups (e.g., Managers vs. Traders) change their interaction patterns.

Mouse Connectome

In a study of 32 brain graphs across four mouse lines, the framework identified distinct connectivity structures. Specifically, it highlighted the BTBR mouse line—a known model for autism—as having a significantly different connectivity profile compared to other lines (B6, CAST, DBA2). This result aligns with established neuroanatomical abnormalities associated with the BTBR strain.

Discussion and Limitations

The community correlation framework provides a fast, mathematically consistent way to analyze graph dependencies. However, some limitations remain. The current theory is optimized for binary graphs; while the embedding technique can be applied to weighted graphs, the underlying population properties for weighted edges require further investigation. Additionally, the conditional test relies on community labels. While these can be estimated via community detection algorithms, the sensitivity of the test to noisy labels is an area for future research. Finally, for extremely sparse graphs, a variance threshold is necessary to prevent spurious correlations, suggesting a need for further refinement in "ultra-sparse" contexts.

Conclusion

By accounting for community structure, this framework moves beyond simple edge-counting to provide a nuanced understanding of how networks relate to one another. Its computational efficiency and statistical validity make it a powerful tool for large-scale network analysis in fields ranging from sociology to neuroscience.

Summary updated

BibTeX
@misc{xiong2019community,
  author = {Junhao Xiong and Cencheng Shen and Jesús Arroyo and Joshua T Vogelstein},
  title = {{Community Correlations and Testing Independence Between Binary Graphs}},
  year = {2019},
  eprint = {1906.03661},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.03661},
}
Figure