Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
Spatial autocorrelation statistic
Getis–Ord statistics, also known as Gi, are used in spatial analysis to measure the local and global spatial autocorrelation. Developed by statisticians Arthur Getis and J. Keith Ord they are commonly used for Hot Spot Analysis to identify where features with high or low values are spatially clustered in a statistically significant way. Getis-Ord statistics are available in a number of software libraries such as CrimeStat, GeoDa, ArcGIS, PySAL and R.
Local statistics
There are two different versions of the statistic, depending on whether the data point at the target location is included or not
Here is the value observed at the spatial site and is the spatial weight matrix which constrains which sites are connected to one another. For the denominator is constant across all observations.
A value larger (or smaller) than the mean suggests a hot (or cold) spot corresponding to a high-high (or low-low) cluster. Statistical significance can be estimated using analytical approximations as in the original work however in practice permutation testing is used to obtain more reliable estimates of significance for statistical inference.
Global statistics
The Getis-Ord statistics of overall spatial association are
The local and global statistics are related through the weighted average
The relationship of the and statistics is more complicated due to the dependence of the denominator of on .
Relation to Moran's I
Moran's I is another commonly used measure of spatial association defined by
where is the number of spatial sites and is the sum of the entries in the spatial weight matrix. Getis and Ord show that
Where , , and . They are equal if is constant, but not in general.
Ord and Getis also show that Moran's I can be written in terms of
Bivand, R.S.; Wong, D.W. (2018). "Comparing implementations of global and local indicators of spatial association". Test. 27 (3): 716–748. doi:10.1007/s11749-018-0599-x. hdl:11250/2565494.