- Introduced by
- Geary (1954); Bayesian extension via hierarchical spatial modeling literature
- Year
- 1954 (Bayesian framing: 2000s onward)
- Type
- Bayesian spatial autocorrelation statistic
- Family
- GIS / spatial
What does it do?
Bayesian Geary's C refers to placing Geary's contiguity ratio inside a Bayesian model, so that spatial autocorrelation is reported as a posterior distribution rather than a single estimate with an asymptotic p-value.
The classical statistic is the ratio given in the mechanics formula, built from squared differences between neighbouring areal units. Bayesian Geary's C is not a standardised method. No single Bayesian formulation of this statistic is established, so the analyst must specify the likelihood, priors and posterior target explicitly, and results are comparable only when that full specification is reported.
The intuition behind the method
Classical Geary's C compares squared differences between neighbouring values with the overall variance of the data. Geary's 1954 abstract describes the ratio as tending to fall below unity when adjoining units are more alike than non-adjoining ones, with an average value of unity when the values are distributed at random. The Bayesian version does not replace this comparison with a single test decision. Instead, it places a probability model on the unknown spatial structure and reports a distribution for the quantity of interest, whose shape depends on both the data and the chosen prior.
History
Roy C. Geary introduced the contiguity ratio in 1954 as a generalisation of the Von Neumann ratio, to test whether values for adjoining areas are more alike than chance would produce. The origin of a Bayesian version is not established, so the term is best read as a label for a model-based construction rather than a named method. The Banerjee, Carlin and Gelfand (2004) book is a general reference on hierarchical modelling of spatial data and CAR priors; it is not a source for the definition of this statistic.
When to use it
Use Bayesian Geary's C for areal (lattice) data when you want uncertainty about local spatial dependence expressed as a posterior distribution, and when you can state a defensible model and prior. It is a reasonable choice when prior information from earlier work on the same region is available, or when the spatial term needs to be estimated jointly with covariates or random effects in a hierarchical model. Do not use it for point-referenced (geostatistical) data, where spatial covariance models are more appropriate. For a quick descriptive check, or when no prior or model can be justified, classical Geary's C is simpler; its inference rests on randomisation or on an approximate normal distribution, as the 1954 abstract describes.
Limitations and considerations
- No single standard Bayesian formulation of C is established, so results depend on the model the analyst writes and must be reported with the full specification to be comparable.
- Requires MCMC or another approximate inference method, which is considerably more computation than evaluating classical C from the formula.
- The weights matrix enters both the numerator and the denominator of the statistic, so conclusions can change with the contiguity definition.
- Posterior probabilities are only as informative as the prior and the data allow; when the number of areas is small, the prior may contribute much of the posterior.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Reports posterior distributions for the spatial parameter, so uncertainty is stated directly rather than through an asymptotic standard error.
- Lets prior information from earlier studies enter the analysis explicitly, which can be useful when such information exists and its influence is checked.
- Can be estimated within a hierarchical model that includes covariates and random effects, so the spatial term is fitted jointly with the other terms.
- Retains the neighbour-difference structure of Geary's ratio, so the chosen weights directly determine which contrasts drive the result.
Applications
- Disease mapping with small area counts, using a model-based specification for the counts (see howItWorks), with the posterior uncertainty of local spatial dependence reported alongside the rates.
- Environmental monitoring on areal units, where sparse measurements make the posterior uncertainty of spatial dependence relevant to interpretation.
- Regional economic indicators across administrative areas, where a hierarchical model includes covariates and a spatial random effect.
- Ecological grid-cell data in which a prior derived from earlier surveys is used to inform the spatial parameter, with its influence checked by sensitivity analysis.
How it works
How it works
Define the spatial weights matrix W, where w_ij describes whether areal units i and j are neighbours (for example rook or queen contiguity for polygons). Binary coding and row standardisation are not interchangeable: row standardisation changes the relative weight given to neighbours of units with different numbers of neighbours, and therefore changes the value of C.
The classical statistic is the ratio in the mechanics formula: weighted squared differences between neighbouring pairs, divided by the total weight W and by the sum of squared deviations from the mean. Because the numerator uses only differences between linked units, the weights determine which contrasts contribute to the result. The classical statistic is written for continuous attributes. Its normal-theory inference assumes the observations may be regarded as a random sample from a normal universe, whereas the randomisation approach makes no assumption about the frequency distribution (Geary 1954). For count attributes, state a model-based or rate-based specification explicitly before computing a neighbour contrast.
Formula
C = \frac{(n-1)\sum_{i}\sum_{j} w_{ij}(x_i - x_j)^2}{2W\sum_{i}(x_i - \bar{x})^2}Specify prior distributions for the parameters of the chosen model, which may include a spatial dependence parameter, variance components and other nuisance parameters. In hierarchical spatial work, conditional autoregressive (CAR) priors are a common choice for spatially structured random effects. No specific prior is fixed for this statistic, so the prior must be justified for the chosen model and tested for sensitivity.
Combine the likelihood, the weights and the priors to obtain the posterior distribution of the unknown parameters given the observed data. Where no closed form is available, the posterior is usually approximated by MCMC or by integrated nested Laplace approximation (INLA), using tools such as Stan, OpenBUGS or R-INLA.
Summarise the posterior with posterior means or medians and credible intervals, and, if needed, report posterior probabilities for events such as the parameter lying below a reference value. Such probabilities depend on the prior and the model, so both must be reported with them.
Common pitfalls
- Using a default or vague prior without checking whether it is in fact informative for the spatial parameter; a prior sensitivity analysis should show how far the posterior moves.
- Reporting results without MCMC convergence diagnostics (for example R-hat and trace plots), so conclusions may rest on chains that have not converged.
- Reporting a posterior mean as if it were the classical C value, without credible intervals.
- Applying the method to point-referenced data instead of areal data.
- Treating the classical reference value of 1 as a fixed decision threshold in the Bayesian setting; the comparison depends on the model and the posterior, not on the 1954 randomisation benchmark alone.
- Changing the weights definition (for example queen versus rook, or binary versus row-standardised) without rerunning the analysis and reporting the difference.
Frequently asked questions
How does Bayesian Geary's C differ from classical Geary's C?
Classical Geary's C is a single value with an inference based on randomisation or an approximate normal distribution. The Bayesian version treats the spatial parameters as unknown, places priors on them, and reports a posterior distribution, so uncertainty and prior information are stated explicitly.
How should Geary's C values be interpreted?
In the classical setting, values below 1 indicate that adjoining units are more alike than non-adjoining units, and an average value of 1 corresponds to randomness (Geary 1954). Values well above 1 indicate dissimilarity between neighbours. In the Bayesian version, these categories are not fixed decisions; they become posterior probabilities that depend on the model and the prior.
Is Bayesian Geary's C better than Bayesian Moran's I?
Neither is generally better. Both depend on the weights matrix and summarise spatial dependence in different ways, so the choice should follow the question and the model. Reporting both can help show whether conclusions depend on the statistic chosen.
Which software can fit a Bayesian Geary's C model?
Stan (through RStan or PyStan), OpenBUGS or WinBUGS, and R-INLA are common options. In R, the spdep package computes classical Geary's C; the Bayesian model itself must be written in the chosen platform, with the likelihood and priors specified by the analyst.
How should priors for the spatial parameter be chosen?
The spatial parameter is defined by the model chosen, so its prior cannot be specified independently of that model. Name the parameter in the model specification, state its admissible range, and identify the value that corresponds to no spatial dependence (spatial randomness). Where the prior is centred on that value, confirm that the parameterisation maps randomness onto it. Then run a prior sensitivity analysis to see how much the posterior changes.
Related methods
Sources
Geary, R. C. (1954). The contiguity ratio and statistical mapping. The Incorporated Statistician, 5(3), 115–145.
Open DOI referenceBanerjee, S., Carlin, B. P., & Gelfand, A. E. (2004). Hierarchical Modeling and Analysis for Spatial Data. Chapman & Hall/CRC.
ISBN: 978-1584884101