Moran's I — Global Spatial Autocorrelation Index

Statistics
Introduced by
Patrick A. P. Moran
Year
1950
Type
Spatial autocorrelation statistic
Family
GIS / spatial

What does it do?

Moran's I is a global statistic for spatial autocorrelation, the tendency of nearby locations to have similar (positive) or dissimilar (negative) values.

Its observed value is compared with the expected value under spatial randomness, E[I] = −1/(n−1), so a single number and its significance test can indicate whether a geographic pattern looks clustered, dispersed or random.

The intuition behind the method

Imagine plotting income levels across a city. If wealthy neighbourhoods cluster together and low-income areas cluster elsewhere, nearby locations share similar values — positive spatial autocorrelation. If wealthy and poor areas alternate like a checkerboard, neighbouring values are dissimilar — negative autocorrelation. Moran's I quantifies this tendency by comparing each location's deviation from the mean with its neighbours' deviations, weighting the comparison by a spatial weights matrix that encodes who is 'near' whom.

History

Patrick A. P. Moran introduced the statistic in a 1950 Biometrika paper, "Notes on continuous stochastic phenomena", as a measure of association for spatially indexed variables. Cliff and Ord's 1981 monograph Spatial Processes: Models and Applications systematised the theory of the statistic for spatial analysis. Implementations in GeoDa and the spdep R package made the test widely available in exploratory spatial analysis.

When to use it

Choose Moran's I when your data are georeferenced, the outcome is continuous or count-valued, and you want one global test of whether the pattern departs from spatial randomness, for example before fitting a spatial regression or interpolation. A specific common use is applying it to OLS residuals to check whether a regression has left spatial dependence. Do not use it when locations carry no meaningful geographic relationship, when no weights matrix can be justified on substantive grounds, or when the question is where clusters occur; for that, use Local Moran's I (LISA).

Limitations and considerations

  • A single global value averages over the whole study area, so clustering confined to part of the region can be masked by areas without it.
  • Results depend on W: different contiguity, distance or k-nearest-neighbour definitions can give different values and conclusions.
  • The analytical test relies on its reference distribution holding; with skewed data or a small n, permutation inference is the safer choice.
  • Because the statistic summarises spatial dependence in one value, it cannot show whether dependence differs between sub-regions. Observations at the edge of the study area have fewer neighbours, so results can be sensitive to the weights definition near boundaries.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Gives one interpretable global summary of clustering or dispersion, with the expected value under randomness as a fixed reference point.
  • Analytical reference distributions are available under normality and randomisation assumptions, so a test can be run without simulation.
  • Permutation inference does not require the variable to be normally distributed; it relies on the null hypothesis that values could be reshuffled across locations.
  • Implemented in GeoDa, the spdep R package, PySAL and ArcGIS, so the same analysis can be replicated across tools when weights and inference settings match.
  • Its sign and size indicate whether spatial dependence is present, which helps decide whether OLS is adequate or a spatial regression model is needed.

Applications

  • Epidemiology: testing whether disease incidence rates cluster geographically before fitting spatial disease-mapping models.
  • Urban economics: detecting whether house prices, unemployment rates, or deprivation indices exhibit spatial dependence across census tracts.
  • Ecology: assessing whether species abundance or vegetation indices are spatially structured across landscapes.
  • Criminology: determining whether crime counts are randomly distributed across police beats or show spatial clustering.
  • Agricultural science: identifying spatial patterns in crop yield or soil properties across field plots.

How it works

How it works

1

A spatial weights matrix W specifies which locations count as neighbours and how strongly they are linked. Typical choices are contiguity (queen or rook adjacency), inverse-distance weights and k-nearest-neighbour weights. Because W enters every term of the statistic, it should be fixed on substantive grounds before the statistic is computed. W is usually row-standardised so that each row sums to 1. Since I changes with the scaling of W, the weighting used should be stated alongside any reported result so that values can be compared with the standard convention.

2

I sums w_ij multiplied by the deviations of x_i and x_j from the mean, over all pairs, divides by the sum of squared deviations, and scales by n/S0, where S0 is the sum of all weights. Neighbouring pairs that lie on the same side of the mean add positive terms, so I rises when neighbours tend to be alike and falls when they tend to lie on opposite sides of the mean.

Formula
I = \frac{n}{S_0} \frac{\sum_i \sum_j w_{ij}(x_i - \bar{x})(x_j - \bar{x})}{\sum_i (x_i - \bar{x})^2}
3

Under spatial randomness the expected value is E[I] = −1/(n−1), a small negative number that approaches 0 as n grows. Observed values above E[I] point towards clustering and values below it towards dispersion. E[I] is the reference point for interpreting I, not a threshold that decides significance on its own.

Formula
E[I] = -\frac{1}{n-1}
4

Significance can be assessed analytically. Under a normality assumption, the expected value and variance of I depend only on the spatial weights; under a randomisation assumption, the variance also depends on the observed values of the variable. The test statistic is the z-score z = (I − E[I]) / √Var[I], from which a p-value is obtained using the normal distribution. Significance can also be assessed by permutation. Under the null hypothesis that any observed value can appear at any location with equal probability, the values are reshuffled across locations many times (roughly 10,000 Monte Carlo permutations), and the observed I is compared with the resulting empirical distribution.

Common pitfalls

  • Choosing the spatial weights matrix after seeing the data inflates the Type I error rate; the weights specification must be decided beforehand.
  • Reading a non-significant I as proof of spatial randomness when the test lacks power, for example with few observations or sparse weights.
  • Stopping at the global statistic when the research question concerns local hot spots; complement it with LISA maps for local investigation.
  • Treating a significant positive I as evidence for a particular causal process; it is a descriptive diagnostic, not a causal model.

Frequently asked questions

What does a Moran's I value of 0 mean?

A value near E[I] = −1/(n−1), which is approximately 0 for large samples, means that no clear spatial autocorrelation is detected at this sample size. Values above this baseline point towards clustering and values below it towards dispersion, provided the deviation is statistically significant. Whether a value near E[I] is consistent with spatial randomness depends on the significance test and its power, so it should not be read as proof of randomness.

How do I choose the spatial weights matrix?

The weights matrix should reflect the mechanism of spatial interaction in your study (e.g., shared borders for administrative data, inverse distance for diffusion processes, k-nearest neighbours for point data). The choice must be justified before analysis, not selected to maximise Moran's I.

Should I use the analytical or permutation test?

Permutation testing is generally preferred because it does not rely on a normality assumption for the variable. It is especially important when data are skewed, count-based, or have a small n. The analytical z-test relies either on a normality assumption or on a randomisation assumption, in which the moments are computed from the data values, so it is appropriate only when one of these assumptions is reasonable for your data.

If Moran's I is significant, must I use spatial regression?

A significant Moran's I on the raw variable does not by itself require spatial regression; what matters is whether the OLS residuals are spatially autocorrelated. Run Moran's I on the OLS residuals and examine Lagrange Multiplier tests to decide between a spatial lag model, a spatial error model, or OLS.

What is the difference between Moran's I and Geary's C?

Both measure global spatial autocorrelation, but Moran's I is based on cross-products of deviations from the mean, while Geary's C uses squared differences between neighbouring pairs and is more sensitive to local dissimilarities. Moran's I is more widely used and more directly comparable across studies.

Related methods

Sources

  1. Moran, P. A. P. (1950). Notes on continuous stochastic phenomena. Biometrika, 37(1/2), 17–23.

    Open DOI reference
  2. Cliff, A. D., & Ord, J. K. (1981). Spatial Processes: Models and Applications. Pion.

    ISBN: 9780850860818
  3. Kopczewska, K. (2021). Applied Spatial Statistics and Econometrics: Data Analysis in R, section 4.5.1.1 (Global Moran's I statistics), page not given in the library extract