English

Fast Spatial Autocorrelation

Methodology 2020-10-20 v1 Data Structures and Algorithms

Abstract

Physical or geographic location proves to be an important feature in many data science models, because many diverse natural and social phenomenon have a spatial component. Spatial autocorrelation measures the extent to which locally adjacent observations of the same phenomenon are correlated. Although statistics like Moran's II and Geary's CC are widely used to measure spatial autocorrelation, they are slow: all popular methods run in Ω(n2)\Omega(n^2) time, rendering them unusable for large data sets, or long time-courses with moderate numbers of points. We propose a new SAS_A statistic based on the notion that the variance observed when merging pairs of nearby clusters should increase slowly for spatially autocorrelated variables. We give a linear-time algorithm to calculate SAS_A for a variable with an input agglomeration order (available at https://github.com/aamgalan/spatial_autocorrelation). For a typical dataset of n63,000n \approx 63,000 points, our SAS_A autocorrelation measure can be computed in 1 second, versus 2 hours or more for Moran's II and Geary's CC. Through simulation studies, we demonstrate that SAS_A identifies spatial correlations in variables generated with spatially-dependent model half an order of magnitude earlier than either Moran's II or Geary's CC. Finally, we prove several theoretical properties of SAS_A: namely that it behaves as a true correlation statistic, and is invariant under addition or multiplication by a constant.

Keywords

Cite

@article{arxiv.2010.08676,
  title  = {Fast Spatial Autocorrelation},
  author = {Anar Amgalan and Lilianne R. Mujica-Parodi and Steven S. Skiena},
  journal= {arXiv preprint arXiv:2010.08676},
  year   = {2020}
}

Comments

To be published in ICDM 2020

R2 v1 2026-06-23T19:24:58.499Z