- Introduced by
- Arthur Getis and J. Keith Ord
- Year
- 1992–1995
- Type
- Local spatial association statistic
- Family
- GIS / spatial
What does it do?
The Local Getis-Ord Gi* statistic identifies statistically significant spatial clusters of high values (hot spots) and low values (cold spots) within a study area.
Unlike global measures, it produces a z-score for every location, so the extent of a concentration and its statistical confidence can be read location by location.
The intuition behind the method
Imagine asking, for each neighbourhood in a city: are this neighbourhood and its immediate neighbours collectively more affluent, or more deprived, than you would expect by chance? The Gi* statistic answers that question for each location. A large positive z-score means the focal location sits inside a hot spot, while a large negative z-score flags a cold spot. Gi* includes the focal unit itself in its local sum, unlike Gi, so the location's own value counts toward the result.
History
Getis and Ord (1992) introduced a family of G statistics for spatial association, compared them with Moran's I, and in the same paper introduced the local statistics G_i and G_i*, which detect local pockets of spatial dependence. Ord and Getis (1995) extended these local statistics, allowing nonbinary weights, relating them to Moran's I, deriving correlations between nearby values, and applying a Bonferroni criterion to approximate significance levels.
When to use it
Use Local Getis-Ord Gi* when you need to identify where high-value or low-value clusters are located, not only whether global clustering exists. It suits crime mapping, disease surveillance, retail site selection, environmental hazard assessment, and any application in which the spatial extent and location of a concentration matter. Prefer Gi* over Local Moran's I when you want to separate hot spots from cold spots without spatial outlier categories. Do not use Gi* when the data lack a meaningful spatial reference, when there are very few spatial units (where the normal approximation behind the z-scores may be poor and permutation-based inference is preferable), when the variable is nominal or binary without meaningful magnitude, or when the question concerns global rather than local clustering. The spatial weights specification should be justified on theoretical grounds rather than chosen to fit the data, because ad hoc weights can inflate apparent significance.
Limitations and considerations
- Sensitive to the choice of spatial weights matrix: different neighbourhood definitions can produce substantially different hot spot maps.
- Does not detect spatial outliers (high values surrounded by low neighbours or vice versa); Local Moran's I is better suited for that.
- Multiple testing inflation: testing significance at every location simultaneously increases the family-wise error rate unless corrected.
- Inference relies on approximations to the null distribution of the statistic under spatial randomness; Ord and Getis (1995) examine these distributional issues. Large-scale trends in the local mean, that is, departures from a constant mean across the study area, can produce spurious hot or cold spots, so the mean should be checked before interpretation.
- Edge effects can reduce reliability of Gi* values at the boundary of the study area where neighbourhood sums are incomplete.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Produces a z-score for every spatial unit, enabling direct mapping of statistically significant hot and cold spots.
- Includes the focal unit itself in the local sum, so the location's own value contributes to the local concentration measure, unlike Gi.
- Interpretable output: z-scores and p-values can be read at conventional confidence levels when mapping hot spots.
- Each local statistic is a weighted sum followed by standardisation, so it can be computed for every unit in a dataset without fitting a model.
- Accepts nonbinary weights, an extension treated by Ord and Getis (1995), so neighbour influence can be graded rather than all-or-nothing.
Applications
- Crime hot spot mapping to guide patrol resource allocation in urban policing.
- Epidemiological surveillance to detect geographic clusters of elevated disease incidence or mortality.
- Real estate market analysis to identify neighbourhoods with concentrated high or low property values.
- Environmental justice studies mapping clusters of pollution exposure or health risk.
- Retail and logistics siting by locating concentrations of high consumer demand.
- Ecological research identifying spatial concentrations of species abundance or biodiversity.
How it works
How it works
A spatial weights matrix W defines which locations are neighbours of each focal unit i. Choices include contiguity-based weights (rook or queen adjacency), distance-band weights, or inverse-distance weights. The neighbourhood definition directly influences which clusters are detected, so it should be specified on substantive grounds before the analysis is run.
For each location i, the numerator is the weighted sum of attribute values x over the neighbourhood of i, including i itself, minus the global mean x-bar multiplied by the sum of the weights. Here x-bar = (1/n) times the sum over all n units of x_j, and S = sqrt((1/n) times the sum of x_j squared, minus x-bar squared) is the global standard deviation. The denominator standardises the numerator by S and by a term built from n, the sum of the weights, and the sum of the squared weights for i's neighbourhood. For Gi*, the self-weight w_ii is positive, so the focal unit contributes to its own local sum; Gi sets w_ii = 0. The result is a standardised deviation of the local sum from what would be expected under spatial randomness.
Formula
G_i^* = \frac{\sum_j w_{ij} x_j - \bar{x}\sum_j w_{ij}}{S\sqrt{\frac{n\sum_j w_{ij}^2 - (\sum_j w_{ij})^2}{n-1}}}The result for each location is expressed as a z-score (standard normal deviate). Under the null hypothesis of spatial randomness, Gi* is asymptotically standard normal, so standard normal critical values apply directly: plus or minus 1.96 corresponds to p < 0.05 and plus or minus 2.58 to p < 0.01. These are two-sided cut-offs applied to each location separately; they do not correct for testing many locations at once, so see the multiple-testing guidance below. The approximation depends on sample size, as discussed in the FAQ.
Statistical significance is assessed by comparing each Gi* z-score against the chosen critical value. When many locations are tested simultaneously, a correction for multiple testing is needed. Ord and Getis (1995) apply a Bonferroni criterion to approximate significance levels when testing extreme values. The Benjamini-Hochberg false discovery rate (FDR) procedure is an alternative often used in practice and is less conservative than Bonferroni.
Significant positive Gi* values flag hot spots, meaning locations surrounded by high-value neighbours. Significant negative Gi* values flag cold spots. Non-significant values indicate no local concentration. Results are typically mapped as a choropleth showing hot and cold spots at chosen confidence levels.
Common pitfalls
- Choosing the bandwidth or neighbourhood distance to maximise the number of detected hot spots rather than on theoretical or prior grounds; this is a form of data dredging.
- Reporting raw p-values from hundreds of Gi* tests without multiple-testing correction, inflating the false discovery rate. Gi* values at nearby locations are correlated (Ord and Getis, 1995, derive these correlations), so the tests are not independent and this should be considered when interpreting corrected results.
- Interpreting Gi* as causal: a hot spot of high disease incidence does not identify the cause, only the location of concentration.
- Confusing the Gi statistic (which excludes the focal unit) with the Gi* statistic (which includes it); the two give different results, and the distinction matters when replicating prior work.
- Applying row-standardised weights when binary weights are more appropriate for the research question, since row standardisation changes the interpretation of the local sum.
Frequently asked questions
What is the difference between Gi and Gi*?
Gi excludes the focal unit i from its neighbourhood sum, whereas Gi* includes it, so the Gi* sum covers the location and its neighbours. The two give different results, so check which variant a software tool computes before comparing with earlier work.
How do I choose the right distance band or neighbourhood definition?
The neighbourhood should reflect the spatial scale at which the process of interest operates, for example walking distance for pedestrian crime or commuting distance for labour market analysis. Inspect variograms, or use a minimum distance that ensures every unit has at least one neighbour. Avoid choosing the bandwidth that maximises the number of significant clusters.
Should I correct for multiple testing?
Yes, when mapping Gi* across many locations simultaneously. Ord and Getis (1995) apply a Bonferroni criterion to approximate significance levels when testing extreme values. The Benjamini-Hochberg false discovery rate (FDR) procedure is an alternative often used in practice; it is less conservative than Bonferroni while still controlling the expected proportion of false discoveries.
Can Gi* detect both hot spots and spatial outliers?
Gi* detects hot spots (positive z-scores) and cold spots (negative z-scores) but cannot identify spatial outliers, where a high-value unit is surrounded by low-value neighbours. For spatial outliers use Local Moran's I, which produces a LISA cluster map distinguishing High-High, Low-Low, High-Low, and Low-High patterns.
What sample size is needed for reliable Gi* results?
The z-scores rely on a normal approximation, which generally becomes more reliable with more spatial units and with several neighbours per unit. For small study areas, consider permutation (randomisation) inference, which does not depend on the normal approximation.
Related methods
Sources
Getis, A., & Ord, J. K. (1992). The analysis of spatial association by use of distance statistics. Geographical Analysis, 24(3), 189–206.
Open DOI referenceOrd, J. K., & Getis, A. (1995). Local spatial autocorrelation statistics: Distributional issues and an application. Geographical Analysis, 27(4), 286–306.
Open DOI reference