Fast Spatial Autocorrelation

Anar Amgalan, Lilianne R. Mujica-Parodi, Steven S. Skiena
10/17/2020
stat.MEcs.DS

Official code: aamgalan/spatial_autocorrelation (10 stars, Python, last commit 2021-09-28).

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.

Show full abstract

Although statistics like Moran's $I$ and Geary's $C$ are widely used to measure spatial autocorrelation, they are slow: all popular methods run in $Ω(n^2)$ time, rendering them unusable for large data sets, or long time-courses with moderate numbers of points. We propose a new $S_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 $S_A$ for a variable with an input agglomeration order (available at https://github.com/aamgalan/spatial_autocorrelation). For a typical dataset of $n \approx 63,000$ points, our $S_A$ autocorrelation measure can be computed in 1 second, versus 2 hours or more for Moran's $I$ and Geary's $C$. Through simulation studies, we demonstrate that $S_A$ identifies spatial correlations in variables generated with spatially-dependent model half an order of magnitude earlier than either Moran's $I$ or Geary's $C$. Finally, we prove several theoretical properties of $S_A$: namely that it behaves as a true correlation statistic, and is invariant under addition or multiplication by a constant.

View on arXivView PDF

Code Implementations(1)

100PythonSep 9, 20205 years ago

Similar Papers

Cite this paper

@article{amgalan2020fast,
  title  = {Fast Spatial Autocorrelation},
  author = {Anar Amgalan and Lilianne R. Mujica-Parodi and Steven S. Skiena},
  year   = {2020},
  eprint = {2010.08676},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.08676}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.08676.svg)](https://codeofpaper.com/paper/2010.08676)

Discussion