Spatial analysis

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Applications.

In spatial data, spatial analysis is the statistical treatment of observations that carry locations and of the dependence between neighbours. A pollutant, a house price, or a disease count is not only a number. It is a number at a place, and places near each other tend to look alike. Spatial analysis is the statistical treatment of that fact. The observations carry coordinates, or they are areas that share borders, and the methods ask whether the pattern on the map is more than a random assignment of the same values. Geology, epidemiology, ecology, and official small-area statistics all hand the subject this kind of data. A histogram of the values, computed as if the locations did not exist, still describes the marginal distribution. It does not describe the map.[1]

Spatial analysis

Spatial analysis
Fact Value
Topic Applications
Listed on Applications

Definition

Spatial analysis, or spatial statistics, is the analysis of observations distributed in space, with explicit attention to their locations and to dependence between neighbours. Two observations close together are expected to resemble each other more than two that are far apart. Dodge’s statement of the distinguishing feature is that the analysis takes the spatial information into account, and the relation between two spatial data. The data may come from geology, earth science, image analysis, epidemiology, agriculture, ecology, astronomy, or forestry. Sometimes the locations themselves are random, as in a point pattern of event sites. Sometimes they are fixed areas or fixed sample sites, and only the values are treated as random. The subject includes exploring that dependence and testing it, not only drawing the map. A map of concentrations that ignored the grouping of small values with small values, and of large values with large values, would miss the continuous transition the spatial summary is built to detect.[1]

Geostatistics is the branch aimed at geology and hydrology, and more generally at variables measured at known coordinates. The modelling slogan recorded for it is local models, assembled into a global analysis. Simple conditional models are built at each level of a hierarchy, and the joint model that results can be complex while the analysis of the pieces remains possible. The aim is to describe and forecast how a variable is distributed in space and, when the series requires it, in time. The word geostatistics was used by Hart in 1954 in a geographical context. Areal data, the other large class, are values on regions rather than on a continuous coordinate. Spatial autocorrelation is the dependence among those values. Positive autocorrelation means similar values cluster. Negative autocorrelation means dissimilar values sit next to each other.[1][2]

Global Moran’s II is the index that turns that description into a number. For regions with values YiY_i and mean Yˉ\bar Y, and with spatial weights wijw_{ij} that say which regions are neighbours,

I=n∑i∑jwij(Yi−Yˉ)(Yj−Yˉ)(∑i≠jwij)∑i(Yi−Yˉ)2,I = \frac{n\sum_i\sum_j w_{ij}(Y_i-\bar Y)(Y_j-\bar Y)}{\bigl(\sum_{i\neq j} w_{ij}\bigr)\sum_i (Y_i-\bar Y)^2},

where nn is the number of regions and wii=0w_{ii}=0. The weights depend on the variable and the setting. Under a null hypothesis of no spatial autocorrelation, the YiY_i are independent and identically distributed, and II is treated as asymptotically normal with mean −1/(n−1)-1/(n-1). Values significantly above that mean indicate positive autocorrelation, neighbouring regions with similar values. Values significantly below it indicate negative autocorrelation, neighbours with dissimilar values. Values near the null mean indicate the absence of a spatial pattern of that form. The index usually ranges from −1-1 to 11, though the exact attainable range depends on the weights.[2]

Properties

Ordinary summaries still apply, and they answer a different question. A histogram, a mean, a median, a coefficient of variation, and a measure of skewness describe the values while ignoring the map. For several variables at once, a scatterplot and a correlation remain available, and they do not use the coordinates either. Those tools are the first description of the marginal distribution. They become the wrong last step when the scientific question is about the arrangement on the map. Tools that do use the coordinates include the variogram, which describes how variation grows with separation, a spatial Poisson process for event locations, and indices of areal association. Moran’s II and Geary’s CC are the classical indices of that last kind. The weights wijw_{ij} encode who is a neighbour: a shared border, a distance band, or a declining function of separation. The index is then a weighted product of deviations from the mean, scaled by the total variation. Changing the weights changes the index, because it changes which pairs are allowed to contribute.[1][2]

A single global number cannot say where the clustering sits. Local Moran’s II, one of the local indicators of spatial association introduced in that form by Anselin in 1995, gives a similarity between each area’s value and the values of its neighbours. A desirable property of such local indicators is that their sum across regions equals a multiple of the global index, so the global statistic decomposes into local pieces. A map of the local indices shows clusters of high values surrounded by high values, low values surrounded by low values, and the contrasting cases in which a high value sits among low values or the reverse. The global index can be near its null mean while a local cluster is still present, if clusters of opposite kinds cancel. That is a reason to report both.[2]

The null mean −1/(n−1)-1/(n-1) is not zero. For a small number of regions the difference matters. With n=10n=10, the null mean is −1/9≈−0.111-1/9\approx -0.111. An observed index of 0.20.2 is then further above the null than a reader who compares it with zero would think, and an observed index of −0.1-0.1 is close to the null rather than evidence of negative autocorrelation. With n=100n=100, the null mean is about −0.010-0.010, and the distinction shrinks. The variance formula that accompanies the normal approximation depends on three weight summaries,

S0=∑i≠jwij,S1=12∑i≠j(wij+wji)2,S2=∑k(∑jwkj+∑iwik)2,S_0=\sum_{i\neq j}w_{ij},\qquad S_1=\frac12\sum_{i\neq j}(w_{ij}+w_{ji})^2,\qquad S_2=\sum_k\Bigl(\sum_j w_{kj}+\sum_i w_{ik}\Bigr)^2,

and on nn. A test that quotes only II without nn and without the weights has not stated the null it is using.[2]

Dependence also changes the standard error of an ordinary mean. If neighbouring areas share a shock, the effective number of independent observations is smaller than the number of areas. A standard error computed as if the areas were a simple random sample is then too small, and a confidence interval built from it is too narrow. The same dependence is why a choropleth of raw counts often reproduces the map of population. A large city has more cases of almost any disease because it has more people. Rates, or counts standardised by a population offset, are the values that belong in an autocorrelation index when the scientific question is risk rather than the size of the place. Superposing the statistical summary on the map is the step Dodge recommends for seeing how neighbouring values influence one another. The map without the rate, and the rate without the map, each omit half of that step.[1][2]

A small numerical sketch makes the sign of the index concrete. Three areas in a line have values 1, 2 and 9, so the mean is 4 and the deviations are −3,−2,5-3,-2,5. If only consecutive areas are neighbours, with w12=w21=w23=w32=1w_{12}=w_{21}=w_{23}=w_{32}=1 and the other weights zero, the numerator of the unnormalised product is

w12(−3)(−2)+w21(−2)(−3)+w23(−2)(5)+w32(5)(−2)=6+6−10−10=−8.w_{12}(-3)(-2)+w_{21}(-2)(-3)+w_{23}(-2)(5)+w_{32}(5)(-2)=6+6-10-10=-8.

The neighbouring products of the two small deviations are positive, and the products that cross from 2 to 9 are negative and larger in magnitude. The negative total is the arithmetic of a dissimilar pair sitting next to a similar pair. A rearrangement that placed 1, 9 and 2 in that order would change which products are negative. The index is a property of the values and of the neighbour relation together. The same three numbers, with a different neighbour graph, are a different spatial pattern.[2]

Connections

Spatial analysis neighbours time series, which is dependence along one ordered index, and official statistics, which publishes many of the areal counts. Geostatistics is the coordinate-based branch aimed at geology, hydrology, and interpolation. Moran’s I is the areal index written above. Epidemiology uses the map when an exposure is a place, as in a water supply, and the same warning about counts versus rates applies to a disease atlas. A histogram and a scatterplot remain the pictures of the values once the locations have been set aside. A spatial Poisson process is the model for event locations when the pattern of the points, rather than a value at each point, is the object. Dependence between neighbours is also why a sample of areas is not a simple random sample of independent units, and why the sampling variance has to be computed from the design and from the covariance, not from the number of areas alone.[1][2]

History

Edmond Halley, in 1686, overlaid wind directions and the monsoon on a map and tried to explain them. The statistical models came later. Fisher’s work at Rothamsted in the 1920s and 1930s set out randomisation, blocking, and replication for field experiments. Those designs are spatial even though their aim is an agricultural comparison rather than a map of dependence: plots that share a soil gradient are blocked so that the treatment contrast is not confounded with the gradient. Geostatistics as a named application grew up around spatial interpolation for natural resources. Matheron’s theory of regionalised variables, and the mining geostatistics that followed it, gave interpolation a covariance that depends on separation. Hart’s 1954 use of the word geostatistics belongs to the geographical side of the same family of problems. Areal indices of autocorrelation, among them Moran’s II from 1950 and Geary’s CC from 1954, gave a test for the pattern on a choropleth map. Local indicators, in Anselin’s 1995 form, then split the global index into a value at each region.[1][2]

See also

Abundance estimation · Actuarial science · Astrostatistics · Biostatistics · Business analytics · Censoring · Chemometrics · Computational biology

Glossary and index

References

  1. ^ a b c d e f g a. (p. 501) b. (p. 501) c. (p. 229) d. (p. 501) e. (p. 501) f. (pp. 229, 501) g. (pp. 229, 501) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
  2. ^ a b c d e f g h i a. (§8.1) b. (§8.1) c. (§8.1) d. (§8.1, §8.4) e. (§8.1) f. (§8.1) g. (§8.1) h. (§8.1) i. (§8.1, §8.4) Moraga, Paula (2023). Spatial Statistics for Data Science: Theory and Practice with R. Chapman & Hall/CRC. https://www.paulamoraga.com/book-spatial/
Cite this page
Plain text
StatWiki (2026). "Spatial analysis." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/spatial-analysis.html
BibTeX
@misc{statwiki_spatial_analysis,
  author = {{StatWiki}},
  title = {{Spatial analysis}},
  year = {2026},
  url = {https://www.statwiki.io/articles/spatial-analysis.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}