Software: SpaceStat, then GeoDa (Anselin et al., 2006), and spdep in R.
Core ESDA: three ways of looking
Map the spatial distribution (the choropleth from the previous section).
Link plots to the map: brush a box plot or scatter plot and the same areas highlight.
Spot atypical locations: a value unlike its neighbours is a spatial outlier.
These lead to one question: is there spatial pattern at all?
Neighbours and the spatial lag
To make a method spatial, encode geography as a spatial weights matrixW: who is a neighbour, and how strongly.
The spatial lag of a variable is the (weighted) average of its neighbours.
Plotting a value against its spatial lag is the first quantitative ESDA step.
Global autocorrelation, by hand
Run this in R and change the values: watch Moran’s I move from independence (near 0) toward clustering (toward +1).
# Four regions in a row: 1-2-3-4y <-c(2, 3, 8, 9) # try c(2, 9, 3, 8) for a "checkerboard"W <-matrix(c(0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0), nrow =4, byrow =TRUE) # who neighbours whomWr <- W /rowSums(W) # row-standardised weightsz <- y -mean(y) # centre the valueslag <-as.vector(Wr %*% y) # spatial lag = neighbour averagelag
[1] 3 5 6 8
moran_I <-sum(z * (Wr %*% z)) /sum(z^2)moran_I # global Moran's I
[1] 0.5405405
We introduce live, in-browser webR cells (runnable here, embeddable in Moodle as iframes) in Session-III.
Reading global Moran’s I
I > 0: similar values sit together (clustering of highs and of lows).
I ≈ 0: no spatial pattern (spatial randomness).
I < 0: neighbours are dissimilar (a checkerboard).
It answers yes/no, is there pattern. It does not say where.
ESDA in public health
Map disease rates, flag candidate hot spots, and form hypotheses about drivers before modelling (Delmelle & Kanaroglou, 2013).
Central to surveillance: which areas may be at risk?
Extends to space and time (for example, dengue across districts of Punjab, India).
Connects directly to NFHS and notification data at district / facility level.
What comes next (later session)
From one global number to local indicators that say where the clusters are: local Moran’s I and the LISA map, and Getis-Ord hot spots (Anselin, 1995).
That is the Spatial Data Analysis & Clustering session. We stop here, at the exploratory stage.
Key references
Tukey, J.W. (1977). Exploratory Data Analysis. Addison-Wesley.
Tobler, W. (1970). A computer movie simulating urban growth. Economic Geography 46.
Anselin, L. (1988). Spatial Econometrics. Kluwer.
Anselin, L. (1999). Interactive techniques and ESDA. In Geographical Information Systems.
Bailey, T.C. & Gatrell, A.C. (1995). Interactive Spatial Data Analysis. Longman.
Haining, R. (2003). Spatial Data Analysis: Theory and Practice. Cambridge.