For a statistical method to be explicitly spatial, it needs to contain some representation of the geography, or spatial context
One of the most common ways is through Spatial Weights Matrices
Core element in several spatial analysis techniques:
wii = 0 by convention
...What is a neighbor???
A neighbor is "somebody" who is:
Sharing boundaries to any extent
Weight is (inversely) proportional to distance between observations
Weights are assigned based on discretionary rules loosely related to geography
For example:
See Anselin & Rey (2014) for an in-detail discussion.
No neighbors receive zero weight: wij = 0
Neighbors, it depends, wij can be:
Some proportion (0 < wij < 1, continuous) which can be a function of:
Should be based on and reflect the underlying channels of interaction for the question at hand.
Examples:
In some applications (e.g. spatial autocorrelation) it is common to standardize W
The most widely used standardization is row-based: divide every element by the sum of the row:
where wi· is the sum of a row.
Product of a spatial weights matrix W and a given variably Y
Ysl = WY
ysl − i = ∑jwijyj
Heavily used in both ESDA and spatial regression to delineate neighborhoods. Examples:
Geographic Data Science'17 - Lecture 5 by Dani Arribas-Bel is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.