Global Moran's I — Measuring Overall Spatial Autocorrelation

Statistics
Introduced by
Patrick Alfred Pierce Moran
Year
1950
Type
Global spatial autocorrelation test / index
Family
GIS / spatial

What does it do?

Global Moran's I is a widely used single-number summary of spatial autocorrelation across an entire study area.

It compares each location's attribute value with values at neighbouring locations, as defined by a spatial weights matrix. Positive values indicate that similar values cluster, negative values indicate that high and low values alternate, and values near the expected value under spatial randomness indicate no overall pattern. The statistic is conventionally read on a scale from −1 to +1, but it is not strictly bounded to that range, and a significance test is needed to judge whether the observed pattern departs from chance.

The intuition behind the method

Think of Global Moran's I as asking: 'Do similar values tend to sit next to each other on the map?' If high values cluster near other high values (and low near low), I is positive and the pattern is clustered. If high values are consistently surrounded by low values (a checkerboard), I is negative and the pattern is dispersed. A value near zero means the spatial arrangement looks like a random shuffling of the attribute. The statistic computes a weighted covariance between each location and its neighbours, normalised by the overall variance.

History

The statistic was introduced by P. A. P. Moran in 1950, in a paper in Biometrika on continuous stochastic phenomena, as part of a broader treatment of such phenomena over geographic space. Cliff and Ord (1981) give a detailed treatment of inference for the statistic and related measures. Local variants that decompose the global index into location-specific components, collectively known as local indicators of spatial association, were developed later.

When to use it

Use Global Moran's I when you want to know whether an attribute is spatially clustered, dispersed, or random across the whole study area, typically as a first diagnostic. It applies to continuous or ordinal values measured at areal units (such as districts or census tracts) or at point locations with a defined neighbourhood structure. It is especially useful before fitting a regression model: significant positive autocorrelation in OLS residuals indicates that the independence assumption is violated and that a spatial model may be needed. Do not use it when the question is where clusters are (use Local Moran's I or Getis-Ord Gi* instead), when no meaningful spatial weights matrix can be defined, or when the variable is categorical, because the formula is designed for continuous attributes.

Limitations and considerations

  • Being a global summary, it cannot reveal where clusters or outliers are located; a large positive I may hide local pockets of negative autocorrelation.
  • Results depend on the choice of spatial weights matrix (contiguity definition, distance threshold, or number of neighbours k), and different choices can yield different conclusions.
  • For very large datasets the computational cost of the full n×n weights matrix can be prohibitive unless sparse representations are used.
  • The normal-approximation inference is less reliable in small samples or when the attribute is strongly skewed, in which case permutation inference is preferred.

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

Strengths

  • Provides a single index of the overall degree of spatial clustering or dispersion that is easy to communicate.
  • Has analytical expressions for its expected value and variance, which allow a z-score, and permutation testing is available when distributional assumptions are doubtful.
  • Applicable to both polygon (areal) and point data through flexible spatial weights matrix specifications.
  • Widely implemented in standard software (GeoDa, R spdep, ArcGIS, Python PySAL), making results reproducible and comparable.
  • Directly usable as a model-specification diagnostic: significant I in OLS residuals flags the need for a spatial regression model.

Applications

  • Testing whether disease incidence clusters geographically before fitting a spatial epidemiological model, after smoothing rates where populations differ in size (see pitfalls).
  • Checking OLS regression residuals for spatial autocorrelation to decide whether a spatial lag or spatial error model is needed.
  • Examining whether house prices, income levels, or unemployment rates show spatial clustering across administrative units.
  • Environmental science: assessing whether soil contamination or biodiversity indices are spatially patterned.
  • Urban planning: evaluating the spatial concentration of land uses or socioeconomic deprivation across city districts.
  • Criminology: establishing whether crime rates are clustered before hotspot mapping or spatial regression analysis.

How it works

How it works

1

The spatial weights matrix W encodes which locations are neighbours and how strongly they are linked. For polygon data, contiguity weights (queen or rook adjacency) are common; for point data, distance-based weights such as inverse distance or k-nearest neighbours are typical. Row standardisation makes each row of W sum to one, so locations with different numbers of neighbours are placed on a comparable footing.

Formula
w_{ij} \in W \text{ (spatial weights matrix, row-standardised)}
2

The numerator sums w_ij multiplied by the product of mean-centred values over all pairs of locations, measuring how far neighbouring values co-vary around the mean. The denominator is the total sum of squared deviations. The factor n/S0, where S0 is the sum of all weights, rescales this ratio. Under row standardisation every row sums to one, so S0 equals n and the factor reduces to one; the factor matters only when the weights are not row-standardised.

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 the null hypothesis of complete spatial randomness, the expected value of I is −1/(n−1), which is close to zero for large n. A value of I substantially above this expectation indicates positive spatial autocorrelation; a value substantially below it indicates negative autocorrelation.

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

A z-score is formed by subtracting the expected value from I and dividing by the square root of its variance under the null. That variance is derived analytically under either a normality or a randomisation assumption; the two give different expressions and can lead to different p-values, so the assumption behind a reported p-value should be stated. The z-score is an approximation, least reliable in small samples or when the attribute is strongly skewed. Permutation testing offers an alternative that does not depend on the analytical variance: attribute values are randomly reassigned to locations many times, and the observed I is compared with the resulting empirical null distribution. Readers who need the explicit variance expressions should consult Cliff and Ord (1981).

Formula
z = \frac{I - E[I]}{\sqrt{\mathrm{Var}(I)}}

Common pitfalls

  • Treating the spatial weights matrix as a given without justifying the neighbourhood definition; the choice of W is a substantive decision that should reflect the process under study.
  • Interpreting a non-significant I as evidence of no spatial structure; it may simply mean that the chosen weights matrix does not capture the relevant scale of dependence.
  • Applying the test to regression residuals as if they were raw observations. Residuals come from a fitted model: the estimated parameters use up degrees of freedom, and residuals are not independent draws from the raw variable, so the expectation and variance formulas for raw data are only approximate for them. Treat the p-value as indicative rather than exact, and prefer tests or diagnostics designed for model residuals where available.
  • Using the statistic on nominal or binary variables without recognising that the underlying formula is designed for continuous attributes.
  • Ignoring the modifiable areal unit problem (MAUP): I will change if the same data are aggregated to different zone systems.
  • Computing I on rates or percentages calculated from unequal population sizes. The statistic assumes constant variance, which such values do not have, so I can mislead and suggest clustering that reflects differences in population size. Smooth the rates first, for example with an empirical Bayes index, or use a conditional randomisation approach that accommodates non-constant variance.

Frequently asked questions

What is the difference between Global Moran's I and Local Moran's I?

Global Moran's I returns a single value summarising autocorrelation across the entire study area. Local Moran's I (a LISA statistic) decomposes this into location-specific values, identifying which individual areas contribute clusters or spatial outliers. Use Global Moran's I to answer 'Is there clustering?' and Local Moran's I to answer 'Where is it?'

How do I choose the spatial weights matrix?

The choice should reflect your theory about which locations influence each other. For polygon data, queen contiguity (shared boundary or vertex) is common. For point data, k-nearest neighbours or an inverse-distance kernel are typical. Sensitivity analysis, running the test with several plausible W matrices, is good practice for checking how robust your conclusions are.

Should I use the normal-approximation or permutation inference?

Permutation inference (randomisation test) is often preferred when the analytical normal approximation is doubtful, for example in small samples or with skewed attributes. It works by repeatedly reassigning values across locations and recomputing I to build an empirical null distribution. It rests on the null assumption that values are exchangeable across locations, and it does not by itself correct for non-constant variance; for rates based on unequal populations, smoothing or a conditional randomisation approach is needed. The normal approximation is convenient for large samples when the attribute is approximately normal.

What does a significant negative Moran's I mean?

A significantly negative I indicates spatial dispersion: high values tend to be surrounded by low values and vice versa, producing a checkerboard pattern. This is less common than positive autocorrelation in many social and environmental datasets, but it can occur in some competitive spatial systems, such as market territories or certain ecological niches.

Can I apply Global Moran's I to regression residuals?

Yes, and this is one of its most important uses. A significant I in OLS residuals indicates that spatial dependence has not been adequately captured by the predictors, violating the independence assumption and biasing inference. The remedy is typically to re-specify the model as a spatial lag or spatial error model. Because the fitted model changes the expectation and variance of I for residuals, the p-value should be treated as approximate.

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: 0850860814
  3. Applied Spatial Statistics and Econometrics: Data Analysis in R (K. Kopczewska, 2021), p. ?