Robust Getis-Ord Gi* Statistic

Statistics
Introduced by
Getis & Ord (base statistic); robust extensions developed in subsequent spatial statistics literature
Year
1992 (base); robust variants circa 2000s–2010s
Type
Local spatial statistic
Family
GIS / spatial

What does it do?

Robust Getis-Ord Gi* is a local spatial statistic that adapts the classical Gi* hot-spot measure of Getis and Ord (1992) so that a few extreme attribute values exert less influence on the result.

The variant replaces the global location and scale terms in the Gi* formula with outlier-resistant estimates. The robust form is not attributed to a single verified source in this entry, and no verified estimator-specific formula is given here. The displayed Gi* formula is the classical one, so the choice of estimator should be treated as an analyst decision.

The intuition behind the method

The standard Getis-Ord Gi* asks whether the sum of values in a neighbourhood is unusually high or low relative to the global distribution. One extreme outlier can dominate the global mean and variance, masking genuine clusters or creating spurious ones. The robust version replaces these sensitive global statistics with outlier-resistant counterparts, so the clustering signal reflects the bulk of the spatial pattern rather than a handful of extreme observations. Comparing the robust and classical maps shows which clusters depend on those extreme values.

History

Getis and Ord introduced the Gi* statistic in 1992 as a local measure of spatial association, and their paper compares the G statistics with Moran's I. Robust variants are not attributed to a verified originator or year in this entry, and the references listed here do not document a specific robust extension. The origin of the robust form should therefore be treated as unverified, and the choice of estimator remains the analyst's responsibility.

When to use it

Use Robust Getis-Ord Gi* when a small number of extreme attribute values, such as a single very high crime count or an anomalously large income figure, may be distorting hot-spot results from the standard Gi*. It is appropriate when diagnostics show skewed or heavy-tailed distributions, or when removing a few observations shifts the classical Gi* results substantially. Typical cases include crime mapping, disease surveillance, ecological surveys and real-estate analysis, where outlying values are common. Do not use it as a blanket replacement for the standard Gi* when the data are well behaved, because the added complexity then adds little. As a rule of thumb from analyst practice, avoid it for very small datasets (fewer than about 30 locations), since robust estimators themselves become unstable.

Limitations and considerations

  • No single universally agreed-upon robust variant exists; the choice of trimming proportion or M-estimator introduces analyst discretion and affects results.
  • Robust estimators require larger samples than the standard Gi* to achieve stable estimates; as a rule of thumb, results can be unreliable with fewer than about 30 spatial units.
  • Computationally more intensive than the standard Gi*, especially when using iterative M-estimators or permutation inference on large grids.
  • Interpreting the degree of robustness introduced (how much trimming, which estimator) requires familiarity with robust statistics beyond typical GIS workflows.
  • Software implementations vary; many GIS platforms offer only the classical Gi*, requiring custom scripting in R or Python for robust variants.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Resistant to the distorting influence of extreme attribute values that inflate or deflate the global mean and variance used in the standard Gi*.
  • Preserves the intuitive hot-spot/cold-spot interpretation of the original Getis-Ord Gi* while improving reliability in skewed or contaminated datasets.
  • Compatible with permutation-based inference, which avoids the normal approximation when building the null distribution of the chosen statistic.
  • Applicable to both point and areal data, with flexibility in the spatial weights specification (distance-based, contiguity-based, or k-nearest-neighbours).
  • Diagnostic comparison with the standard Gi* reveals which clusters are genuine spatial patterns versus artefacts of outliers.

Applications

  • Crime mapping: identifying persistent hot spots of burglary or assault after adjusting for a few extreme precincts with anomalously high counts.
  • Epidemiology: locating disease cluster zones in surveillance data where a small number of high-incidence areas would otherwise dominate global statistics.
  • Real-estate analysis: detecting genuine spatial clusters of high or low property values in markets with a handful of trophy sales or distressed properties.
  • Ecological surveys: mapping species abundance hot spots in field data that include outlying plots affected by sampling artefacts.
  • Urban planning: identifying neighbourhood deprivation clusters in census data that contain occasional data errors or administrative boundaries with extreme values.
  • Environmental monitoring: clustering of pollution readings across sensor networks where sensor malfunctions produce occasional extreme spikes.

How it works

How it works

1

Construct a spatial weights matrix W(d) that defines which locations are neighbours of each focal location i, typically using a distance band or a k-nearest-neighbours rule. Row-standardised weights sum to one for each location; the raw Gi* formulation uses binary weights. Gi* includes the focal location i in its own neighbourhood sums, so the self-weight enters both sums. The Gi statistic omits it. Apply the same convention throughout the analysis.

2

The classical formula uses the global mean x̄ and standard deviation s. In the robust variant these are replaced by resistant estimates, such as a trimmed mean (dropping a set proportion of the highest and lowest observations), a median with the median absolute deviation (MAD) scaled to approximate the standard deviation, or an M-estimator that iteratively down-weights extreme values. The analyst chooses the estimator and its tuning, including the trimming proportion.

3

Each location's Gi* is the weighted local sum of attribute values minus the expected value, divided by the standard error, as written in the formula. The displayed formula is the classical Gi* with the global mean x̄ and standard deviation s; it is not a robust formula. A robust variant would replace x̄ and s with a named resistant location and scale estimate. That substitution must be stated and documented for the chosen estimator, and no verified expression for it is supplied on this page.

Formula
G_i^*(d) = \frac{\sum_j w_{ij}(d)\, x_j - \bar{x}\sum_j w_{ij}(d)}{s\left[\frac{n\sum_j w_{ij}^2 - (\sum_j w_{ij})^2}{n-1}\right]^{1/2}}
4

Significance can be assessed with the approximate normal reference (a two-sided threshold of about 1.96 for the 5% level) or with a conditional permutation test. The permutation test reallocates attribute values across locations and recomputes Gi* to build an empirical null distribution, which avoids reliance on the normal approximation. Whichever route is used, the null distribution should be checked for the chosen robust estimator, since it may differ from the classical case.

5

Classify each location as a statistically significant high-value cluster (hot spot), low-value cluster (cold spot), or not significant. A significantly positive z-score marks a high-value cluster, and a significantly negative z-score marks a low-value cluster. Because many local tests are run, false positives accumulate across locations, so apply a multiple-testing correction or treat isolated significant units with caution. Map the results to show the spatial pattern after outlier adjustment.

Common pitfalls

  • Applying heavy trimming (e.g., 20%) without justification can discard legitimate spatial extremes that are substantively meaningful, such as genuinely dangerous crime hot spots.
  • Failing to compare robust and classical Gi* maps; if results are identical, the extra complexity adds no value, but if they diverge sharply, the diverging locations deserve substantive scrutiny.
  • Ignoring edge effects: locations near the study boundary have fewer neighbours, so their weighted sums and z-scores are based on a smaller and differently shaped neighbourhood, and their variance differs from that of interior units. Check boundary units separately, and compare row-standardised with binary weights to see whether their classification changes.
  • Treating permutation p-values from robust Gi* as fully equivalent to classical p-values without acknowledging that the test statistic distribution changes under the robust estimator.
  • Using an arbitrary fixed bandwidth for the weights matrix without sensitivity-testing alternative bandwidths; cluster boundaries can shift substantially with different neighbourhood definitions.

Frequently asked questions

How does Robust Gi* differ from the standard Getis-Ord Gi*?

The standard Gi* uses the global mean and standard deviation of all attribute values in its z-score denominator. If a few extreme values inflate or deflate those statistics, every location's z-score is affected. The robust variant replaces the sensitive global mean and variance with resistant alternatives, such as trimmed means, medians, or M-estimators, so that outliers have diminished influence on the overall clustering assessment.

Which robust estimator should I choose: trimmed mean, median, or M-estimator?

For moderate skewness, a symmetric trimming of around 5–10% of the global distribution is a common starting point in analyst practice; it is a rule of thumb, not an established threshold. The median and MAD offer the highest breakdown point (50%) but sacrifice efficiency for nearly normal data. M-estimators (e.g., Huber or Tukey bisquare) adaptively down-weight outliers and offer a good bias-variance trade-off. Run a sensitivity analysis across several trimming proportions or at least two estimators, and count how many clusters change. If results agree, the specific choice matters little.

Can I run Robust Gi* in standard GIS software like ArcGIS or QGIS?

Standard hot-spot tools in ArcGIS (Optimized Hot Spot Analysis) and QGIS implement the classical Gi* and do not offer built-in robust variants. You can implement Robust Gi* in R (spdep + robustbase) or Python (PySAL / esda), then import the resulting z-scores and p-values back into GIS for mapping.

How do I know whether to use Robust Gi* or the standard Gi*?

Compute both and compare the maps. Also inspect the attribute distribution: significant right-skew, a kurtosis well above 3, or influential-observation diagnostics flagging a small number of extreme values all argue for the robust variant. If the two maps are nearly identical, use the simpler standard Gi*.

Does using a permutation test make robustness adjustments unnecessary?

Not fully. Permutation inference avoids the normal approximation by building an empirical null distribution, which helps with inference validity. However, it does not change the z-score numerator or denominator; extreme values still distort the global mean and variance used to compute the test statistic itself. Robust estimators address the statistic's construction, while permutation addresses its distribution. Using both together is common analyst practice.

Related methods

Sources

  1. Getis, A., & Ord, J. K. (1992). The analysis of spatial association by use of distance statistics. Geographical Analysis, 24(3), 189–206.

    Open DOI reference
  2. Anselin, L., & Liu, X. (2010). Spatial panel econometrics. In Handbook of Applied Economic Statistics. Robust spatial statistics variants are discussed in the context of outlier-resistant local indicators. See also: Anselin, L. (2018). A local indicator of multivariate spatial association. Geographical Analysis, 51(2), 133–150.

    Open publication reference