Transcript
Page 1: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Local Measures ofSpatial Autocorrelation

Briggs Henan University 2010

1

Page 2: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Global Measures and Local Measures

Briggs Henan University 2010

2

An equivalent local measure can be calculated for most global measures

China

• Global Measures (last time)– A single value which applies to the entire data set

• The same pattern or process occurs over the entire geographic area

• An average for the entire area

• Local Measures (this time)– A value calculated for each observation unit

• Different patterns or processes may occur in different parts of the region

• A unique number for each location

Page 3: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Local Indicators of Spatial Association (LISA)

• We will look at local versions of Moran’s I, Geary’s C, and the Getis-Ord G statistic

• Moran’s I is most commonly used, and the local version is often called Anselin’s LISA, or just LISA

3

Briggs Henan University 2010

See: Luc Anselin 1995 Local Indicators of Spatial Association-LISA Geographical Analysis 27: 93-115

Page 4: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Local Indicators of Spatial Association (LISA)

– The statistic is calculated for each areal unit in the data

– For each polygon, the index is calculated based on neighboring polygons with which it shares a border

4

Briggs Henan University 2010

Page 5: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Local Indicators of Spatial Association (LISA) – Since a measure is

available for each polygon, these can be mapped to indicate how spatial autocorrelation varies over the study region

– Since each index has an associated test statistic, we can also map which of the polygons has a statistically significant relationship with its neighbors, and show type of relationship

5

Briggs Henan University 2010

Raw data

LISA

Page 6: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Calculating Anselin’s LISA• The local Moran statistic for areal unit i is:

where zi is the original variable xi in

“standardized form”

or it can be in “deviation form”

and wij is the spatial weight

The summation is across each row i of the spatial weights matrix.

An example follows

Briggs Henan University 2010

6

jj

ijii zwzI

x

ii SD

xxz

xxi

j

Page 7: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010

7

Page 8: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Example using seven China provinces --caution: “edge effects” will strongly influences the results because we have a very small number of observations

Briggs Henan University 2010 8

Page 9: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010 9

1

54

3

6 72

Contiguity Matrix 1 2 3 4 5 6 7Code Anhui Zhejiang Jiangxi Jiangsu Henan Hubei Shanghai Sum Neighbors Illiteracy

Anhui 1 0 1 1 1 1 1 0 5 6 5 4 3 2 14.49Zhejiang 2 1 0 1 1 0 0 1 4 7 4 3 1 9.36Jiangxi 3 1 1 0 0 0 1 0 3 6 2 1 6.49Jiangsu 4 1 1 0 0 0 0 1 3 7 2 1 8.05Henan 5 1 0 0 0 0 1 0 2 6 1 7.36Hubei 6 1 0 1 0 1 0 0 3 1 3 5 7.69Shanghai 7 0 1 0 1 0 0 0 2 2 4 3.97

Each row in the contiguity matrix describes the neighborhood for that location.

Page 10: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010

10

Contiguity Matrix 1 2 3 4 5 6 7

Code Anhui Zhejiang Jiangxi Jiangsu Henan Hubei Shanghai Sum

Anhui 1 0 1 1 1 1 1 0 5

Zhejiang 2 1 0 1 1 0 0 1 4

Jiangxi 3 1 1 0 0 0 1 0 3

Jiangsu 4 1 1 0 0 0 0 1 3

Henan 5 1 0 0 0 0 1 0 2

Hubei 6 1 0 1 0 1 0 0 3

Shanghai 7 0 1 0 1 0 0 0 2

Row Standardized Spatial Weights Matrix

Code Anhui Zhejiang Jiangxi Jiangsu Henan Hubei Shanghai Sum

Anhui 1 0.00 0.20 0.20 0.20 0.20 0.20 0.00 1

Zhejiang 2 0.25 0.00 0.25 0.25 0.00 0.00 0.25 1

Jiangxi 3 0.33 0.33 0.00 0.00 0.00 0.33 0.00 1

Jiangsu 4 0.33 0.33 0.00 0.00 0.00 0.00 0.33 1

Henan 5 0.50 0.00 0.00 0.00 0.00 0.50 0.00 1

Hubei 6 0.33 0.00 0.33 0.00 0.33 0.00 0.00 1

Shanghai 7 0.00 0.50 0.00 0.50 0.00 0.00 0.00 1

Contiguity Matrix and Row Standardized Spatial Weights Matrix

1/3

Page 11: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Calculating standardized (z) scores

Briggs Henan University 2010 11

x

ii SD

xxz

Deviations from Mean and z scores.

X X-Xmean X-Mean2 z

Anhui 14.49 6.29 39.55 2.101

Zhejiang 9.36 1.16 1.34 0.387

Jiangxi 6.49 (1.71) 2.93 (0.572)

Jiangsu 8.05 (0.15) 0.02 (0.051)

Henan 7.36 (0.84) 0.71 (0.281)

Hubei 7.69 (0.51) 0.26 (0.171)

Shanghai 3.97 (4.23) 17.90 (1.414)

Mean and Standard DeviationSum 57.41 0.00 62.71 Mean 57.41 / 7 = 8.20Variance 62.71 / 7 = 8.96 SD √ 8.96 = 2.99

Page 12: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Row Standardized Spatial Weights Matrix

Code Anhui Zhejiang Jiangxi Jiangsu Henan Hubei Shanghai

Anhui 1 0.00 0.20 0.20 0.20 0.20 0.20 0.00

Zhejiang 2 0.25 0.00 0.25 0.25 0.00 0.00 0.25

Jiangxi 3 0.33 0.33 0.00 0.00 0.00 0.33 0.00

Jiangsu 4 0.33 0.33 0.00 0.00 0.00 0.00 0.33

Henan 5 0.50 0.00 0.00 0.00 0.00 0.50 0.00

Hubei 6 0.33 0.00 0.33 0.00 0.33 0.00 0.00

Shanghai 7 0.00 0.50 0.00 0.50 0.00 0.00 0.00

Z-Scores for row Province and its potential neighbors

Anhui Zhejiang Jiangxi Jiangsu Henan Hubei ShanghaiZi

Anhui 2.101 2.101 0.387 (0.572) (0.051) (0.281) (0.171) (1.414)

Zhejiang 0.387 2.101 0.387 (0.572) (0.051) (0.281) (0.171) (1.414)

Jiangxi (0.572) 2.101 0.387 (0.572) (0.051) (0.281) (0.171) (1.414)

Jiangsu (0.051) 2.101 0.387 (0.572) (0.051) (0.281) (0.171) (1.414)

Henan (0.281) 2.101 0.387 (0.572) (0.051) (0.281) (0.171) (1.414)

Hubei (0.171) 2.101 0.387 (0.572) (0.051) (0.281) (0.171) (1.414)

Shanghai (1.414) 2.101 0.387 (0.572) (0.051) (0.281) (0.171) (1.414)

Spatial Weight Matrix multiplied by Z-Score Matrix (cell by cell multiplication)

Anhui Zhejiang Jiangxi Jiangsu Henan Hubei Shanghai SumWijZj LISA Lisa fromZi 0.000 GeoDA

Anhui 2.101 - 0.077 (0.114) (0.010) (0.056) (0.034) - (0.137) -0.289 -0.248

Zhejiang 0.387 0.525 - (0.143) (0.013) - - (0.353) 0.016 0.006 0.005

Jiangxi (0.572) 0.700 0.129 - - - (0.057) - 0.772 -0.442 -0.379

Jiangsu (0.051) 0.700 0.129 - - - - (0.471) 0.358 -0.018 -0.016

Henan (0.281) 1.050 - - - - (0.085) - 0.965 -0.271 -0.233

Hubei (0.171) 0.700 - (0.191) - (0.094) - - 0.416 -0.071 -0.061

Shanghai (1.414) - 0.194 - (0.025) - - - 0.168 -0.238 -0.204

Calculating LISA

jj

ijii zwzI

wij

zj

wijzj

Page 13: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Significance levels are calculated by simulations. They may differ each time software is run.

I expected Anhui to be High-Low!(high illiteracy surrounded by low)

High

Low

Low-High

Moran’s I = -.01889

Results

Raw Data

Province Literacy % LISA Significance

Anhui 14.49 -0.25 0.12

Zhejiang 9.36 0.01 0.46

Jiangxi 6.49 -0.38 0.04

Jiangsu 8.05 -0.02 0.32

Henan 7.36 -0.23 0.14

Hubei 7.69 -0.06 0.28

Shanghai 3.97 -0.20 0.37

Page 14: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

LISA for Illiteracy for all China Provinces

14

Briggs Henan University 2010

Illiteracy Rates

LISA

High

Low

Moran’s I = 0.2047

Page 15: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Moran Scatter Plot

Briggs Henan University 2010 15

Low/High negative SA

High/High positive SA

Low/Low positive SA

Scatter Diagram between X and Lag-X, the “spatial lag” of X formed by averaging all the values of X for the neighboring polygons

Identifies which type of spatial autocorrelation exists.

High/Low negative SA

Page 16: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Quadrants of Moran Scatterplot

GISC 7361 Spatial Statistics

16

00

00XX

WXWX

Q1 (values [+], nearby values [+]): H-H

Q3 (values [-], nearby values [-]): L-L

Q2 (values [-], nearby values [+]): L-H

Q4 (values [+], nearby values [-]): H-L

Q2 Q1

Q4Q3

Locations of positive spatial association(“I’m similar to my neighbors”).

Locations of negative spatial association(“I’m different from my neighbors”).

Low/High negative SA

High/High positive SA

Low/Low positive SA

High/Low negative SA

Each quadrant corresponds to one of the four different types of spatial association (SA)

Page 17: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Why is Moran’s I low for China provinces?

• For illiteracy = .2047

• Are provinces really “local”

Briggs Henan University 2010

17

Page 18: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010

18

LISA for Median Income, 2000 in D/FWSource: Eric Hajek, 2008

Moran’s I = .59

Page 19: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010

19

Examples of LISA for 7 Ohio counties: median income

(p< 0.05)

(p< 0.10)

Source: Lee and Wong

Ashtabula

Geauga

Lake

Trumbull

PortageSummit

Cuyahoga

MedianIncome

Ashtabula has a statistically significantNegative spatial autocorrelation ‘cos it isa poor county surrounded by rich ones (Geauga and Lake in particular)

Page 20: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Local Getis-Ord G Statistic

Briggs Henan University 2010

20

jj

jj

ij

i x

xw

dG

)(Local Getis-OrdIt is the proportion of all x values in the study area accounted for by the neighbors of location i

G will be high where high values clusterG will be low where low values clusterInterpreted relative to expected value if randomly distributed. 1

)(

))((

n

dw

dGE jij

i

jj

ijii zwzI Local Moran’s I ji

ji

jij

iji

xx

xxdw

dG

)(

)(Global Getis-Ord G

For comparison

Page 21: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Getis with0.5 distance

Getis with1.0 distance

LISA and Getis G with Different Distance Weights

Getis with2.0 distance

Results for Getis G vary depending on distance band used.

Data for crime in Columbus, Ohio from Anselin, 1995

LISA with0,1 contiguity

Page 22: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010 22

LISA using Contiguity Weights

Local Getis G*with Fixed Distance Bands at2, 1, and 0.5

Running in ArcGIS

Page 23: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010 23

Can map the statistical significance level and use it as a measure of the “strength” of the spatial autocorrelation--note how the significance level is higher at the center of each cluster.

Page 24: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010

24

Bivariate LISA• Moran’s I is the correlation between X

and Lag-X--the same variable but in nearby areas– Univariate Moran’s I

• Bivariate Moran’s I is a correlation between X and a different variable in nearby areas.

Moran Scatter Plot for Crime v. Income

Moran Cluster Map for Crime v. IncomeMoran Significance Map for Crime v. Income

Page 25: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Bivariate LISAand the Correlation Coefficient• Correlation Coefficient is

the relationship between two different variables in the same area

• Bivariate LISA is a correlation between two different variables in an area and in nearby areas.

Briggs Henan University 2010

25

Scatter Diagram for relationship between income and crime

Correlation coefficient r = 0.696

Bivariate Moran’s I:--less strong relationship --greater scatter --lower slopeMoran’s I = -.45

Page 26: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010

26

Bivariate LISA: a local version of the correlation coefficient

– Can view Bivariate LISA as a “local” version of the correlation coefficient

– It shows how the nature & strength of the association between two variables varies over the study region

– For example, how home values are associated with crime in surrounding areas

Classic suburb: high value/low crime

Gentrification?High value/High crime

Classic Inner City:Low value/High crime

Unique:Low value/Low crime

Page 27: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

What have we learned today?Local Indicators of Spatial Autocorrelation

– Anselin’s LISA– Local Getis Ord G

Spatial autocorrelation can be calculated for each areal unit

Spatial autocorrelation can vary across the region in strength and in type

Next time (Friday)

Using GeoDA software to explore spatial autocorrelation

Next week

Spatial regression and modelingBriggs Henan University 2010

27

Page 28: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

References

• Getis, A. and Ord, J.K. (1992) The analysis of spatial association by use of distance statistics Geographical Analysis, 24(3) 189-206

• Ord, J.K. and Getis A. (1995) Local Spatial Autocorrelation Statistics: distributional issues and an application Geographical Analysis, 27(4) 286-306

• Anselin, L. (1995) Local Indicators of Spatial Association-LISA Geographical Analysis 27: 93-115

Briggs Henan University 2010

28

Page 29: Local Measures of Spatial Autocorrelation Briggs Henan University 2010 1

Briggs Henan University 2010

29


Top Related