Spatial weight matrix

From testwiki
Jump to navigation Jump to search

Template:Short description

The concept of a spatial weight is used in spatial analysis to describe neighbor relations between regions on a map.[1] If location i is a neighbor of location j then wij0 otherwise wij=0. Usually (though not always) we do not consider a site to be a neighbor of itself[2] so wii=0. These coefficients are encoded in the spatial weight matrix

W=(w11w12w1Nw21w22w2NwN1wN2wNN)

Where N is the number of sites under consideration. The spatial weight matrix is a key quantity in the computation of many spatial indices like Moran's I, Geary's C, Getis-Ord statistics and Join Count Statistics.

Contiguity-Based Weights

Common connectivity patterns described on a regular grid. Non-zero values of wAj are indicated by the red lines. For example in the rook's case, for the A row of the weight matrix only wAN,wAS,wAE,wAW0 and similarly in the other cases.

This approach considers spatial sites as nodes in a graph with links determined by a shared boundary or vertex.[3] The elements of the spatial weight matrix are determined by setting wij=1 for all connected pairs of nodes ij with all the other elements set to 0. This makes the spatial weight matrix equivalent to the adjacency matrix of the corresponding network. It is common[2] to row-normalize the matrix W,

wijwij/jwij

In this case the sum of all the elements of W equals N the number of sites.

African quadripoint. Using Rook neighbors, Zimbabwe is neighbours with Zambia and Botswana. Using Queen neighbors, Zimbabwe is also a neighbor of Namibia. Bishop neighbors are rarely used for polygonal data.

There are three common methods for linking sites[3] named after the chess pieces which make similar moves:

  • Rook: sites are neighbors if they share an edge
  • Bishop: sites are neighbours if they share a vertex
  • Queen: sites are neighbours if they share an edge or a vertex

In some cases statistics can be quite different depending on the definition used, especially for discrete data on a grid.[3] There are also other cases where the choice of neighbors is not obvious and can affect the outcome of the analysis. Bivand and Wong[4] describe a situation where the value of spatial indices of association (like Moran's I) depend on the inclusion or exclusion of a ferry crossing between counties. There are also cases where regions meet in a tripoint or quadripoint where Rook and Queen neighborhoods can differ.

Distance-Based Weights

Another way to define spatial neighbors is based on the distance between sites. One simple choice is to set wij=1 for every pair (i,j) separated by a distance less than some threshold δ.[5] Cliff and Ord[1] suggest the general form

wij=g(dij,βij)

Where g is some function of dij the distance between i and j and βij is the proportion of the perimeter of i in contact with j. The function

wij=dijαβijb

is then suggested. Often the β term is not included and the most common values for α are 1 and 2.[3] Another common choice for the distance decay function is[6]

wij=exp(dij)

though a number of different Kernel functions can be used. The exponential and other Kernel functions typically set wii=1 which must be considered in applications.

It is possible to make the spatial weight matrix a function of 'distance class':[7] wijwij(d) where d denotes the 'distance class', for example d=1,2,3, corresponding to first, second, third etc. neighbors. In this case, functions of the spatial weight matrix become distance class dependent. For example, Moran's I is

I(d)=N|W(d)|i=1Nj=1Nwij(d)(xix¯)(xjx¯)i=1N(xix¯)2

This defines a type of spatial correlogram, in this case, since Moran's I measures spatial autocorrelation, I(d) measures how the autocorrelation of the data changes as a function of distance class. Remembering Tobler's first law of geography, "everything is related to everything else, but near things are more related than distant things" it usually decreases with distance.

Common distance functions include[5] Euclidean distance, Manhattan distance and Great-circle distance.

Spatial Lag

One application of the spatial weight matrix is to compute the spatial lag[8]

[Wx]i=jwijxj

For row-standardised weights initially set to wij=1 and with wii=0, [Wx]i is simply the average value observed at the neighbors of i. These lagged variables can then be used in regression analysis to incorporate the dependence of the outcome variable on the values at neighboring sites.[9] The standard regression equation is

yi=kxikβk+ϵi

The spatial lag model adds the spatial lag vector to this

yi=ρjwijyj+kxikβk+ϵi

where ρ is a parameter which controls the degree of autocorrelation of y.[10] This is similar to an autoregressive model in the analysis of time series.


See Also

References

Template:Reflist

  1. 1.0 1.1 Template:Cite book
  2. 2.0 2.1 Template:Cite web
  3. 3.0 3.1 3.2 3.3 Dale MR, Fortin MJ. Spatial analysis: a guide for ecologists. Cambridge University Press; 2014 Sep 11.
  4. Bivand RS, Wong DW. Comparing implementations of global and local indicators of spatial association. Test. 2018 Sep;27(3):716-48.
  5. 5.0 5.1 Template:Cite web
  6. Template:Cite web
  7. Legendre P, Legendre L. Numerical ecology. Elsevier; 2012 Jul 21.
  8. Template:Cite web
  9. Anselin L, Griffith DA. Do spatial effecfs really matter in regression analysis?. Papers in Regional Science. 1988 Jan 1;65(1):11-34.
  10. Seya H, Yoshida T, Yamagata Y. Spatial econometric models. InSpatial Analysis Using Big Data 2020 Jan 1 (pp. 113-158). Academic Press.