Written and maintained by CASRAI Editorial Board
Published
On this page
Spatial epidemiology is the description and analysis of geographically indexed health data with respect to demographic, environmental, behavioral, socioeconomic, genetic and infectious risk factors. In practice it answers three questions: where is disease risk higher or lower than expected, is the pattern more clustered than chance would produce, and which area-level factors travel with the pattern. This guide defines the field, works one spatial statistic (Moran’s I) by hand, and shows how to read, report and compute it.
Definition: what spatial epidemiology is
Elliott and Wartenberg (2004) define spatial epidemiology as the description and analysis of geographically indexed health data and place it in a tradition of geographic analysis that goes back to the 1800s, when maps of disease rates began to be used to characterise outbreaks of infectious diseases such as yellow fever and cholera. Beale and colleagues (2008) describe the modern field as drawing on epidemiology, statistics and geographic information systems (GIS), and note that risk patterns tend to have both a temporal and a spatial component. Spatial epidemiology extends the older tradition of ecologic studies, which use differences between places to understand the causes of disease (see what epidemiology is for the parent discipline, and biostatistics versus epidemiology for how the statistical side differs).
The unit of analysis is usually an area (a district, tract or postcode sector) with a count of cases and a population at risk, though point data such as geocoded addresses are also used. Elliott and Wartenberg concentrate on small-area analyses, which they split into disease mapping, geographic correlation studies, disease clusters and clustering. The comparison table below organises those tasks.
What are examples of spatial analysis in epidemiology?
Four examples cover most published work, all described in the two review papers cited here:
- Disease mapping. Mapping standardised ratios of observed to expected cases by area, then smoothing unstable estimates toward neighbouring or overall values (see medical geography and geovisualization for map design).
- Cluster testing and location. Testing whether cases are more spatially autocorrelated than expected (Moran’s index, Tango’s test) and scanning the study region with circular or elliptical windows to find the group of contiguous areas with the most significant excess risk.
- Geographic correlation (ecologic) studies. Relating area disease rates to area measures of environment, socioeconomic status or lifestyle, with random effects to allow for spatial autocorrelation.
- GIS exposure assessment. Calculating rates and relative risks within distance bands around one or more sources, using geocoded health and population data.
How are statistics used in epidemiology, and where do spatial methods fit?
Epidemiology uses statistics to turn counts into comparable measures (rates, ratios, relative risks), to quantify uncertainty, and to test whether an association is larger than chance. Spatial methods add one requirement: nearby areas are rarely independent, so the usual assumption of independent observations fails and the analysis must model or test the dependence. That is why Beale and colleagues list overdispersion and autocorrelation tests alongside the familiar chi-square homogeneity test.
Formula: the two measures used in this guide
Standardised incidence ratio (SIR). SIRi = Yi / Ei, where Yi is the observed number of cases in area i and Ei is the number expected if the area had the reference (for example overall) rate applied to its own population and age structure. A value above 1 means more cases than expected. In the Poisson mapping model of Besag, York and Mollié described by Waller and Carlin (2010), Yi is modelled as Poisson with mean Ei exp(β0 + ui + vi), where ui is a spatially structured effect, vi is an independent area effect, and Ei comes from a constant-risk null model.
Moran’s I (global spatial autocorrelation). I = (n / S0) × [ Σi Σj wij zi zj ] / [ Σi zi² ], with these symbols:
- n: the number of areas;
- xi: the rate or ratio in area i, and zi = xi − x̄, its deviation from the mean;
- wij: the spatial weight between areas i and j (1 if they are neighbours, 0 otherwise, and 0 for i = j);
- S0: the sum of all weights wij.
With no spatial autocorrelation the expected value of I is −1/(n − 1), which is close to zero for many areas. Positive values mean neighbouring areas have similar values; negative values mean they differ more than chance would give.
Worked example: Moran’s I for six districts, arithmetic shown
The numbers below are an illustrative composite, not real surveillance data. Six districts lie in a chain (1–2–3–4–5–6), each touching only the next one. The rate per 1,000 people is 8, 10, 9, 15, 17 and 16.
- Mean: (8 + 10 + 9 + 15 + 17 + 16) / 6 = 75 / 6 = 12.5.
- Deviations z: −4.5, −2.5, −3.5, 2.5, 4.5, 3.5.
- Sum of squared deviations: 20.25 + 6.25 + 12.25 + 6.25 + 20.25 + 12.25 = 77.5.
- Neighbour pairs: (1,2), (2,3), (3,4), (4,5), (5,6). Cross-products: 11.25, 8.75, −8.75, 11.25, 15.75, which sum to 38.25. Each pair appears twice in the double sum (w12 and w21), so Σ Σ wij zi zj = 76.5.
- S0 = 10 (five pairs counted in both directions).
- I = (6 / 10) × (76.5 / 77.5) = 0.6 × 0.9871 = 0.59.
- Expected value under no autocorrelation: −1/(6 − 1) = −0.20.
To judge whether 0.59 is unusual, shuffle the six rates among the districts and recompute I for every ordering. Of the 720 possible orderings, 26 give an I of 0.59 or higher, so the one-sided permutation p-value is 26/720 = 0.036.
Interpretation: reading guidance for Moran’s I
| Result | What it suggests | What to check next |
|---|---|---|
| I clearly above −1/(n − 1), small p-value | Neighbouring areas have more similar values than chance gives (clustering of similar values) | Locate the clusters with a local method or scan statistic; check whether population size or a shared risk factor explains it |
| I close to −1/(n − 1) | No evidence of spatial autocorrelation in these data at this scale | Check power: few areas or small expected counts can hide a real pattern |
| I clearly below −1/(n − 1) | Neighbouring areas differ more than chance gives | Check the weights definition and data errors before interpreting |
The result in the worked example is a global statement: it says the rates are spatially structured, not where the excess sits. Here the three eastern districts carry the higher rates, but a global statistic alone does not name them. Cluster-location methods (scan windows) and local statistics answer the “where” question, and software such as GeoDa was built for exploring this kind of pattern. For health indicators already mapped at area level, CDC PLACES is an example of small-area data of the kind these methods are applied to.
Assumptions and common mistakes
- Small numbers. Elliott and Wartenberg warn that a large random component can dominate rates across small areas. Bayesian smoothing helps, but sensitivity to detect high-risk areas stays limited when expected counts are small.
- Population-sparse areas dominate the map. Large rural areas look prominent yet carry the least precise estimates, because administrative areas are larger where population is sparse.
- Ecologic fallacy. Beale and colleagues state that results from aggregate data should not be used to assume the association at the individual level; small-area data reduce but do not remove within-area heterogeneity bias.
- Exposure misclassification. People move between areas, and exposure has to be linked to when and where it occurred, not just where a case lives at diagnosis.
- Confounding and data quality. Socioeconomic factors are a particular confounding concern, and data errors can produce large apparent excesses.
- Choosing the weights. The result depends on the neighbour definition and area boundaries; report the weights you used.
- Maps without uncertainty. Beale and colleagues note that techniques for visualising uncertainty are being developed so that inferences are more meaningful; report intervals or probabilities with a map.
What is landscape epidemiology?
Landscape epidemiology studies how the physical setting of a place (vegetation, water, land use, climate) shapes where a pathogen and its hosts or vectors persist and where people are at risk. It grew from the Russian concept of the natural focus of disease, an ecosystem in which a pathogen circulates independently of humans, and it is applied to diseases such as malaria, Lyme disease and Chagas disease using GIS and remote sensing. It is the environmental-ecology branch of spatial epidemiology rather than a separate statistics toolkit: the same mapping, autocorrelation and regression tools apply.
How to report spatial autocorrelation (APA example)
State the statistic, the weights, the number of areas, the reference value and the test used. Example wording for the worked example: “Rates showed positive global spatial autocorrelation across the six districts, Moran’s I = 0.59 (expected under no autocorrelation = −0.20; binary contiguity weights), one-sided permutation p = .036 (all 720 orderings).” Name the software and version, and describe how rates were computed (crude or standardised, and the reference population).
How to calculate it in Excel, R or Python
Excel. Put the rates in A2:A7 and the deviations in B2:B7 (=A2-AVERAGE($A$2:$A$7)). Build a 6 × 6 weight matrix of 1s and 0s in D2:I7 (symmetric, zero diagonal). Then: =(6/SUM(D2:I7))*SUMPRODUCT(MMULT(D2:I7,B2:B7),B2:B7)/SUMSQ(B2:B7). It returns 0.592.
R (package spdep; moran.mc runs a permutation test and by default tests for positive autocorrelation):
y = c(8,10,9,15,17,16)W = matrix(0,6,6); W[cbind(1:5,2:6)] = 1; W = W + t(W)lw = spdep::mat2listw(W, style = "B")spdep::moran.mc(y, lw, nsim = 9999)
Python (no packages needed; this reproduces the hand calculation):
y = [8, 10, 9, 15, 17, 16]n = len(y); m = sum(y) / n; z = [v - m for v in y]num = sum(2 * z[i] * z[i + 1] for i in range(n - 1)) # w_ij = 1 for adjacent pairsS0 = 2 * (n - 1)I = (n / S0) * num / sum(v * v for v in z)print(round(I, 3)) # 0.592
What kind of jobs do epidemiologists do, and what does spatial work involve?
Epidemiologists design studies, analyse health data and interpret the results for public-health decisions. The sources show spatial work in several settings: a national small-area health statistics unit (the Small Area Health Statistics Unit at Imperial College London, home of Elliott’s group), and international surveillance programmes such as the World Health Organization’s HealthMapper, which supports surveillance and disease mapping for diseases including malaria, HIV/AIDS and tuberculosis. Typical tasks are geocoding case data, computing expected counts, fitting smoothing or regression models, running cluster tests and presenting maps with their uncertainty.
Frequently asked questions
What are examples of spatial analysis?
Disease mapping with standardised ratios, tests for clustering such as Moran’s index, scan-window cluster detection, area-level regression of disease on environment, and GIS exposure analysis within distance bands around a source.
What is landscape epidemiology?
The study of how landscape features such as vegetation, water and land use shape where pathogens, hosts and vectors persist and where people are exposed, using GIS and remote sensing.
How are statistics used in epidemiology?
To convert counts into rates and ratios, to quantify uncertainty and to test associations; in spatial work they also model the dependence between neighbouring areas.
What kind of jobs do epidemiologists do?
They design and analyse studies of disease patterns and causes, for example in small-area health statistics units and surveillance programmes; spatial epidemiologists add geocoding, mapping and cluster analysis to that work.
Is spatial epidemiology the same as medical geography?
They overlap. Spatial epidemiology emphasises statistical analysis of health outcomes by place; medical geography is the broader study of health and place.
Sources
- Elliott P, Wartenberg D. Spatial epidemiology: current approaches and future challenges. Environ Health Perspect 2004;112(9):998–1006. doi:10.1289/ehp.6735 (PMC1247193), read 2026-11-19.
- Beale L, Abellan JJ, Hodgson S, Jarup L. Methodologic issues and approaches to spatial epidemiology. Environ Health Perspect 2008;116(8):1105–1110. doi:10.1289/ehp.10816 (PMC2516558), read 2026-11-19.
- Waller LA, Carlin BP. Disease mapping. In: Handbook of Modern Statistical Methods, Chapman and Hall/CRC, 2010:217–243. doi:10.1201/9781420072884-c14 (PMC4180601), read 2026-11-19.
- spdep package documentation, moran.mc: permutation test for Moran’s I statistic, read 2026-11-19.
Data: Spatial epidemiology tasks and the methods named in review literature
Compares five common small-area spatial epidemiology tasks, the question each answers and the method named for it, compiled from three peer-reviewed review chapters and articles.
Period covered: 2004/2010.
| Task | Question it answers | Method named in the source | Source |
|---|---|---|---|
| Disease mapping | Where is risk higher or lower than expected for the population at risk? | Standardised ratio of observed to expected cases; Bayesian smoothing toward neighbouring or overall values (Besag-York-Mollie model) | Elliott and Wartenberg 2004; Waller and Carlin 2010 |
| Testing for clustering | Is disease more spatially autocorrelated or overdispersed than chance gives? | Chi-square homogeneity test; Moran's index; Tango's test | Beale et al. 2008 |
| Locating clusters | Which contiguous areas carry the most significant excess risk? | Scanning the region with circular or elliptical windows (scan statistics) | Beale et al. 2008 |
| Geographic correlation study | Do area-level exposures, socioeconomic or lifestyle measures track area disease rates? | Ecologic regression with random effects for spatial autocorrelation | Elliott and Wartenberg 2004; Beale et al. 2008 |
| GIS exposure assessment | What are rates and relative risks near a source? | Rates and relative risks in distance bands around one or more sources using geocoded data | Beale et al. 2008 |
Sources
- Elliott P, Wartenberg D. Spatial epidemiology: current approaches and future challenges. Environ Health Perspect 2004 (accessed 2026-11-19)
- Beale L et al. Methodologic issues and approaches to spatial epidemiology. Environ Health Perspect 2008 (accessed 2026-11-19)
- Waller LA, Carlin BP. Disease mapping. Handbook of Modern Statistical Methods 2010 (accessed 2026-11-19)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







