Spatial2_空间数据分析_harvard_第二章
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Yuri M. Zhukov (IQSS, Harvard University)
Applied Spatial Statistics in R, Section 2
January 16, 2010
3/1
Spatial Autocorrelation
Global autocorrelation: Moran’s I
The expected counts of each type of join are: E[BB ] = 1 2
2 wij PB i j
E[WW ] =
1 2
wij (1 − PB )2
i j
1 E[BW ] = 2
wij 2PB (1 − PB )
i j
Where 1 i j wij is the total number of joins (of any type) on a 2 map, assuming a binary connectivity matrix. The observed counts are: 1 1 wij yi yj WW = wij (1 − yi )(1 − yj ) BB = 2 2
When the variable of interest is categorical, a join count analysis can be used to assess the degree of clustering or dispersion. A binary variable is mapped in two colors (Black & White), such that a join, or edge, is classified as either WW (0-0), BB (1-1), or BW (1-0). Join count statistics can show
positive spatial autocorrelation (clustering) if the number of BW joins is significantly lower than what we would expect by chance, negative spatial autocorrelation (dispersion) if the number of BW joins is significantly higher than what we would expect by chance, null spatial autocorrelation (random pattern) if the number of BW joins is approximately the same as what we would expect by chance.
Hale Waihona Puke Baidu
2
Spatial Data and Basic Visualization in R
Points Polygons Grids
3 4 5 6 7
Spatial Autocorrelation Spatial Weights Point Processes Geostatistics Spatial Regression
Yuri M. Zhukov (IQSS, Harvard University)
Applied Spatial Statistics in R, Section 2
January 16, 2010
6/1
Spatial Autocorrelation
Global autocorrelation: Join Counts
Applied Spatial Statistics in R, Section 2
January 16, 2010
1/1
Spatial Autocorrelation
Outline
1
Introduction
Why use spatial methods? The spatial autoregressive data generating process
i j
−n
i
(
j i (yi
wij +
j
wji )2 + 3(
i j
wij )2
s2 = s3 =
n −1 (n−1 1 2
− ¯)2 )2 i (yi − x (wij + wji )2 − 2n
j 2
x ¯ )4
i
1 2
(wij + wji )2
i j
+6
i
Yuri M. Zhukov (IQSS, Harvard University)
The Moran’s I coefficient calculates the ratio between the product of the variable of interest and its spatial lag, with the product of the variable of interest, adjusted for the spatial weights used. I= n
Calculating the variance of Moran’s I is a little more involved: ns1 − s2 s3 Var (I ) = (n − 1)(n − 2)(n − 3)( i j wij )2 1 (wij + wji )2 s1 =(n2 − 3n + 3) 2
i j i j
wij (yi − yj )2
i (yi
wij )
−y ¯ )2
where yi is the value of a variable for the i th observation, y ¯ is the sample mean and wij is the spatial weight of the connection between i and j . Values range from 0 (perfect correlation) to 2 (perfect dispersion). A value of 1 indicates a random spatial pattern.
Models for continuous dependent variables Models for categorical dependent variables Spatiotemporal models
Yuri M. Zhukov (IQSS, Harvard University)
Applied Spatial Statistics in R, Section 2
n i =1 n j =1 wij n i =1 n ¯ )(yj j =1 wij (yi − y n ¯ )2 i =1 (yi − y
−y ¯)
where yi is the value of a variable for the i th observation, y ¯ is the sample mean and wij is the spatial weight of the connection between i and j . Values range from –1 (perfect dispersion) to +1 (perfect correlation). A zero value indicates a random spatial pattern. Under the null hypothesis of no autocorrelation, E[I ] =
wij
j
January 16, 2010 5/1 Applied Spatial Statistics in R, Section 2
Spatial Autocorrelation
Global autocorrelation: Geary’s C
The Geary’s C uses the sum of squared differences between pairs of data values as its measure of covariation. C= (n − 1) 2(
Yuri M. Zhukov (IQSS, Harvard University)
Applied Spatial Statistics in R, Section 2
January 16, 2010
8/1
Spatial Autocorrelation
Global autocorrelation: Join Counts
January 16, 2010
2/1
Spatial Autocorrelation
What is Spatial Autocorrelation?
Spatial autocorrelation measures the degree to which a phenomenon of interest is correlated to itself in space (Cliff and Ord 1973, 1981). Tests of spatial autocorrelation examine whether the observed value of a variable at one location is independent of values of that variable at neighboring locations. Positive spatial autocorrelation indicates that similar values appear close to each other, or cluster, in space Negative spatial autocorrelation indicates that neighboring values are dissimilar or, equivalenty, that similar values are dispersed. Null spatial autocorrelation indicates that the spatial pattern is random.
The probabilities of BB and WW in two adjacent cells are
2 PBB = PB PB = PB
PWW = (1 − PB )(1 − PB ) = (1 − PB )2
The probability of BW in two adjacent cells is PBW = PB (1 − PB ) + (1 − PB )PB = 2PB (1 − PB )
Applied Spatial Statistics in R, Section 2
Spatial Autocorrelation
Yuri M. Zhukov
IQSS, Harvard University
January 16, 2010
Yuri M. Zhukov (IQSS, Harvard University)
By the naive definition of probability, if we have nB Black units and nW = n − nB White units, the respective probabilities of observing the two types of units are: PB = nB n PW = n − nB = 1 − PB n
−1 n−1
Yuri M. Zhukov (IQSS, Harvard University)
Applied Spatial Statistics in R, Section 2
January 16, 2010
4/1
Spatial Autocorrelation
Global autocorrelation: Moran’s I
Yuri M. Zhukov (IQSS, Harvard University)
Applied Spatial Statistics in R, Section 2
January 16, 2010
7/1
Spatial Autocorrelation
Global autocorrelation: Join Counts