Global Getis-Ord Gi* Statistic

Statistics
Introduced by
Arthur Getis and J. Keith Ord
Year
1992
Type
Global spatial clustering statistic
Family
GIS / spatial

What does it do?

The Global Getis-Ord General G entry describes a study-wide test of whether high or low values of a continuous, non-negative attribute cluster across a study region as a whole.

It returns a single Z-score for the entire dataset, computed from distance-band weights and the cross-products of attribute values for pairs of distinct locations (i not equal to j). Its formula is shown in the mechanics section below.

The intuition behind the method

Think of the statistic as asking whether, across the whole map, large values tend to sit near other large values, or small values near small values. The test is directional in the sense that a significantly positive Z-score points to clustering of high values and a significantly negative Z-score points to clustering of low values. Moran's I, by contrast, reports general spatial association without this distinction. The result is one verdict for the whole area and does not identify which locations drive the pattern.

History

Getis and Ord (1992) introduced a family of G statistics as measures of spatial association, including a general G statistic designed to test whether high or low values cluster within a specified distance. Their paper compared the general G statistic with Moran's I and also introduced the local G_i and G_i* statistics. Ord and Getis (1995) extended these local statistics to nonbinary weights, related them to Moran's I, and examined their distributional properties.

When to use it

Use this statistic when you need one study-wide test of whether high or low values of a continuous, non-negative attribute cluster spatially, for example before deciding whether local analysis is worthwhile. It suits a defined study area with a theoretically motivated distance threshold. Do not use it when the attribute takes negative values, since the statistic assumes non-negative data. Do not use it when the aim is to locate specific hot or cold spots, for which the local statistic is the appropriate tool. If the question is general spatial association regardless of whether high or low values cluster, Moran's I is the more direct choice.

Limitations and considerations

  • The attribute must be non-negative; negative values fall outside the basis on which the statistic was developed.
  • The result depends on the distance threshold d, so different distance bands can lead to different significance conclusions.
  • Because it summarises the study area in one number, it can mask local variation: opposing high and low clusters may offset one another and yield a non-significant global result.
  • A single study-wide statistic treats the clustering process as if it operated in the same way everywhere, which may not hold in spatially heterogeneous settings.
  • The normal approximation for the Z-score may be unreliable for small datasets or irregular spatial configurations, in which case permutation inference is an alternative.

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

Strengths

  • Gives a directional result: a positive Z-score refers to clustering of high values and a negative Z-score to clustering of low values, which the general Moran's I does not report.
  • Produces a single Z-score and p-value for the whole study area, which is easy to report.
  • The observed statistic and the expected value are direct functions of the weights and attribute values, so these two quantities can be computed by hand; the variance is computed by the software.
  • Useful as a preliminary global check before running local statistics, since a global result can indicate whether local clustering is likely to be present.

Applications

  • Testing whether county-level rates of an infant-mortality outcome such as sudden infant death syndrome cluster across a region, as in the North Carolina example in Getis and Ord (1992).
  • Assessing whether dwelling unit prices show concentrations of high or low values across zip-code districts, as in the San Diego example in Getis and Ord (1992).
  • Using the global G alongside Moran's I, as Getis and Ord (1992) recommend, to reveal characteristics of spatial patterns that Moran's I alone may not show.
  • Applying the related local G_i and G_i* statistics to spatial-temporal AIDS data for counties surrounding San Francisco, where Ord and Getis (1995) report that the epidemic was intensifying in recent years.

How it works

How it works

1

A binary spatial weights matrix W(d) is constructed: locations i and j receive a weight of 1 if they lie within the threshold distance d of each other, and 0 otherwise. The choice of d should reflect the spatial scale of the clustering process being hypothesised, because the weights define which pairs contribute to the statistic.

Formula
w_{ij}(d) = 1 \text{ if } d_{ij} \le d, \text{ else } 0
2

G(d) is the sum of attribute cross-products x_i x_j over neighbouring pairs (within distance d), divided by the sum of cross-products over all pairs of distinct locations (i not equal to j). A high ratio means that neighbours tend to share high values at the same time.

Formula
G(d) = \frac{\sum_i \sum_j w_{ij}(d)\, x_i x_j}{\sum_i \sum_j x_i x_j}, \quad i \neq j
3

Under the null hypothesis of spatial randomness, the expected value E[G(d)] depends only on the number of neighbour pairs and the total number of locations, as given in the formula. This provides the reference against which the observed G(d) is compared.

Formula
E[G(d)] = \frac{\sum_i \sum_j w_{ij}}{n(n-1)}
4

The Z-score is obtained by subtracting the expected value from the observed G(d) and dividing by the square root of its variance. The variance term is computed internally by the software and its expression is not given here, so the Z-score is best checked against the software output rather than by hand. Under large-sample conditions the Z-score is approximately standard normal, which allows conventional p-value inference.

Formula
Z(G) = \frac{G(d) - E[G(d)]}{\sqrt{\text{Var}[G(d)]}}
5

Using a two-sided test at alpha = 0.05, a Z-score above 1.96 indicates significant clustering of high values and a Z-score below -1.96 indicates significant clustering of low values. A result within these bounds does not indicate significant clustering at the chosen distance band. The p-value from the normal approximation is approximate, and for small or irregular datasets permutation inference is an alternative.

Common pitfalls

  • Choosing a distance band for convenience rather than for the scale of the process under study. Choose d from substantive knowledge of the process before testing. If several distances are examined and reported, state this and correct for multiple testing, as the FAQ notes.
  • Reading a non-significant result as evidence of no clustering. High and low clusters may cancel globally, so a local follow-up is needed.
  • Applying the statistic to zero-inflated or negative data without first checking the non-negativity requirement.
  • Ignoring boundary treatment. With a distance-band weights matrix, locations near the edge of the study area have fewer neighbours, and the way these locations are handled affects the result, so the treatment should be stated and checked.
  • Treating the Global G and Moran's I as interchangeable. They describe related but different aspects of spatial association, and the directional information of the G statistic is absent from Moran's I.

Frequently asked questions

What is the difference between Global G and Moran's I?

Moran's I measures general spatial autocorrelation, in which similar values cluster together, and can indicate positive or negative association. The global statistic described here is directional: a positive Z-score refers to clustering of high values and a negative Z-score to clustering of low values. It also requires non-negative attribute values, whereas Moran's I does not carry this requirement.

How do I choose the distance threshold d?

The threshold should reflect the spatial scale of the process you hypothesise is driving clustering, and it should be chosen from substantive knowledge before testing. If you also examine a range of distances, report this and correct for multiple testing, as described below.

Why does my Global G show no significance when I can see obvious clusters on the map?

A global statistic can yield a non-significant result when high-value clusters and low-value clusters co-exist and offset each other. In that case, apply the local G_i* statistics (see the local Getis-Ord Gi* entry) to identify the individual locations involved.

Can I use permutation inference instead of the normal approximation?

Yes. For small or irregular datasets, where the normal approximation may be unreliable, permutation inference is a suitable alternative. Permutation testing randomly reassigns attribute values across locations many times to build an empirical null distribution, avoiding reliance on the asymptotic normal approximation.

Does the Global G control for multiple comparisons?

No. The Global G produces a single test for the whole study area, so multiple-comparison correction is not directly relevant. However, if you test multiple distance thresholds, you should adjust for multiple testing (e.g., Bonferroni correction) to avoid spurious significance.

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. Ord, J. K., & Getis, A. (1995). Local spatial autocorrelation statistics: Distributional issues and an application. Geographical Analysis, 27(4), 286-306.

    Open DOI reference