Near-neighbor spatial correlation (at lag 1) captures the increasingly correlation between neighboring spatial sites. It can be quantified by the spatial correlation function, or Moran’s I, between ecological states z[i, j] and z[m, n] separated by a distance r:
(1) ![Rendered by QuickLaTeX.com \begin{equation*} C_2(r) = \frac{MN\sum_{i=1}^M \sum_{m=1}^M \sum_{j=1}^N \sum_{n=1}^N w[i,j; m,n] (z[i,j]-\bar{z})(z[m,n]-\bar{z})} {W\sum_{m=1}^M \sum_{n=1}^N (z[m,n]-\bar{z})^2} \end{equation*}](https://www.early-warning-signals.org/wp-content/ql-cache/quicklatex.com-fa3fbdde3e1cd92bdc64463ecd369b41_l3.png)
where
is the spatial mean of the state variable (
),
is
if spatial units
and
are separated by a distance
, and is 0 otherwise,
is the total number of units separated by the distance
. In the notation
, the subscript
stands for 2-dimensional space. The near-neighbor spatial correlation
, the analog of autocorrelation at lag 1 for time series, is calculated for the distance
corresponding nearest neighboring units of the system.