Spatial Weights Matrix
   HOME

TheInfoList



OR:

The concept of a spatial weight is used in
spatial analysis Spatial analysis is any of the formal Scientific technique, techniques which study entities using their topological, geometric, or geographic properties, primarily used in Urban design, Urban Design. Spatial analysis includes a variety of techni ...
to describe neighbor relations between regions on a map. If location i is a neighbor of location j then w_ \neq 0 otherwise w_ = 0. Usually (though not always) we do not consider a site to be a neighbor of itself so w_ = 0. These coefficients are encoded in the spatial weight matrix : W = \begin w_ & w_ & \ldots & w_ \\ w_ & w_ & \ldots & w_ \\ \vdots & \vdots & \vdots & \vdots \\ w_ & w_ & \ldots & w_ \\ \end 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

This approach considers spatial sites as nodes in a
graph Graph may refer to: Mathematics *Graph (discrete mathematics), a structure made of vertices and edges **Graph theory, the study of such graphs and their properties *Graph (topology), a topological space resembling a graph in the sense of discret ...
with links determined by a shared boundary or vertex.Dale MR, Fortin MJ. Spatial analysis: a guide for ecologists. Cambridge University Press; 2014 Sep 11. The elements of the spatial weight matrix are determined by setting w_ = 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 In graph theory and computer science, an adjacency matrix is a square matrix used to represent a finite graph (discrete mathematics), graph. The elements of the matrix (mathematics), matrix indicate whether pairs of Vertex (graph theory), vertices ...
of the corresponding network. It is common to row-normalize the matrix W, :w_ \rightarrow w_/\sum_j w_ In this case the sum of all the elements of W equals N the number of sites. There are three common methods for linking sites named after the
chess Chess is a board game for two players. It is an abstract strategy game that involves Perfect information, no hidden information and no elements of game of chance, chance. It is played on a square chessboard, board consisting of 64 squares arran ...
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. There are also other cases where the choice of neighbors is not obvious and can affect the outcome of the analysis. Bivand and Wong 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 A triple border, tripoint, trijunction, triple point, or tri-border area is a geography, geographical point at which the boundaries of three countries or Administrative division, subnational entities meet. There are 175 international tripoints ...
or
quadripoint A quadripoint is a point on Earth where four distinct political territories meet. The territories can be of different types, such as national and provincial. In North America, several such places are commonly known as Four Corners (disambiguatio ...
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 w_ = 1 for every pair (i,j) separated by a distance less than some threshold \delta. Cliff and Ord suggest the general form : w_ = g(d_, \beta_) Where g is some function of d_ the distance between i and j and \beta_ is the proportion of the perimeter of i in contact with j. The function : w_ = d_^ \beta_^ is then suggested. Often the \beta term is not included and the most common values for \alpha are 1 and 2. Another common choice for the distance decay function is : w_ = \exp( - d_ ) though a number of different
Kernel Kernel may refer to: Computing * Kernel (operating system), the central component of most operating systems * Kernel (image processing), a matrix used for image convolution * Compute kernel, in GPGPU programming * Kernel method, in machine learnin ...
functions can be used. The exponential and other Kernel functions typically set w_ = 1 which must be considered in applications. It is possible to make the spatial weight matrix a function of 'distance class': w_ \rightarrow w_(d) where d denotes the 'distance class', for example d=1,2,3,\ldots 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) = \frac \frac 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
Euclidean distance In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
,
Manhattan distance Taxicab geometry or Manhattan geometry is geometry where the familiar Euclidean distance is ignored, and the distance between two point (geometry), points is instead defined to be the sum of the absolute differences of their respective Cartesian ...
and
Great-circle distance The great-circle distance, orthodromic distance, or spherical distance is the distance between two points on a sphere, measured along the great-circle arc between them. This arc is the shortest path between the two points on the surface of the ...
.


Spatial Lag

One application of the spatial weight matrix is to compute the spatial lag : xi = \sum_j w_ x_j For row-standardised weights initially set to w_ = 1 and with w_ = 0, xi 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. The standard regression equation is : y_i = \sum_k x_ \beta_k + \epsilon_i The ''spatial lag model'' adds the spatial lag vector to this : y_i = \rho\sum_j w_y_j + \sum_k x_ \beta_k + \epsilon_i where \rho is a parameter which controls the degree of autocorrelation of y.Seya H, Yoshida T, Yamagata Y. Spatial econometric models. InSpatial Analysis Using Big Data 2020 Jan 1 (pp. 113-158). Academic Press. This is similar to an
autoregressive model In statistics, econometrics, and signal processing, an autoregressive (AR) model is a representation of a type of random process; as such, it can be used to describe certain time-varying processes in nature, economics, behavior, etc. The autoregre ...
in the analysis of
time series In mathematics, a time series is a series of data points indexed (or listed or graphed) in time order. Most commonly, a time series is a sequence taken at successive equally spaced points in time. Thus it is a sequence of discrete-time data. ...
.


See Also

*
Spatial Analysis Spatial analysis is any of the formal Scientific technique, techniques which study entities using their topological, geometric, or geographic properties, primarily used in Urban design, Urban Design. Spatial analysis includes a variety of techni ...
* Moran's I * Geary's C * Join Count Statistics Spatial analysis Covariance and correlation


References

{{reflist