- Introduced by
- Clayton & Kaldor (1987); Lawson (2001 onward)
- Year
- 1987
- Type
- Bayesian spatial cluster detection
- Family
- GIS / spatial
What does it do?
Bayesian hot spot analysis is a family of approaches for identifying areas with elevated risk or intensity in count or rate data.
Each area's observed count is combined with a prior model of spatial variation, so neighbouring areas inform each estimate and rates are stabilised where populations or expected counts are small. In a full Bayesian fit, areas are flagged when the posterior probability that risk exceeds a chosen threshold is high. Empirical Bayes shrinkage estimators, such as that of Clayton and Kaldor, provide smoothed risks but do not by themselves yield posterior exceedance probabilities.
The intuition behind the method
Raw rates in small areas are unstable: one case in a small population produces an extreme rate. Clayton and Kaldor (1987) addressed this in disease mapping by replacing the standardised mortality ratio (SMR) with an empirical Bayes estimate that is a weighted compromise between the area's own SMR, the overall mean relative rate, and a local mean of nearby areas. The weight given to the area's own value depends on its reliability and on the overall dispersion of relative rates across districts. Bayesian hot spot analysis follows this logic: an area is treated as a hot spot only if its risk remains elevated after neighbourhood information is taken into account. A full Bayesian implementation also reports how probable that elevation is, rather than a single yes/no flag.
History
Clayton and Kaldor (1987) introduced empirical Bayes estimates of age-standardised relative risks for disease mapping, shrinking each area's standardised ratio towards the overall mean and a local neighbourhood mean. Full Bayesian hierarchical models with structured and unstructured random effects, such as the BYM model, later became a common framework for disease mapping. Lawson's Bayesian Disease Mapping (3rd ed., 2018) covers hierarchical modelling for spatial epidemiology.
When to use it
Use Bayesian hot spot analysis for areal count data, such as disease cases, crime incidents or accidents, where each area has an expected count or population denominator and areas differ substantially in size. It is suited to questions about which areas have credibly elevated risk after accounting for small-number instability. Do not use it when the data are point patterns without a meaningful denominator, because the relative risk in the model is not defined without expected counts. It is also unsuitable when the spatial neighbourhood structure is unclear or when the analyst cannot specify, fit and check a Bayesian model, since the method requires MCMC or INLA fitting and convergence checks.
Limitations and considerations
- Fitting requires MCMC sampling or INLA approximation, and both need checks that the model has been fitted correctly, which is more demanding than computing a classical local statistic.
- Estimates depend on the spatial weight matrix (for example, queen contiguity or distance-based weights) and on the prior; the flagged areas can change when these are altered, so a sensitivity analysis is needed.
- A strong spatial prior smooths across real boundaries, so sharp differences between adjacent high-risk and low-risk areas can be understated.
- Specifying, running and interpreting hierarchical spatial models requires Bayesian and spatial statistics expertise that a non-specialist may not have.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The posterior probability P(theta_i > c | y) states how probable exceedance of the threshold is under the chosen model and prior, giving a per-area measure of confidence. It changes with those choices, so sensitivity checks are needed.
- Shrinkage of small-area estimates towards neighbouring values reduces spurious extremes caused by a few events in small populations, as Clayton and Kaldor (1987) addressed for standardised mortality ratios.
- In the BYM model, the structured and unstructured random effects are estimated separately, so the analyst can see whether elevated risk is spatially clustered or reflects general overdispersion.
- Known covariates and prior information can be included in the linear predictor of the model.
Applications
- Disease mapping: smoothed relative risk of cases per area, using expected counts from population structure.
- Crime analysis: identifying areas whose counts remain elevated after adjusting for population size.
- Traffic safety: flagging road segments whose accident rates remain high after adjusting for traffic volume.
How it works
How it works
A prior is placed on the relative risk surface. Two common specifications exist. In the empirical Bayes approach, theta_i ~ Gamma(alpha, beta), with the prior parameters estimated from the data; Clayton and Kaldor's estimator also incorporates a local mean of nearby areas. In full Bayesian approaches such as the BYM model, log(theta_i) = mu + u_i + v_i, where u_i is a spatially structured (CAR) random effect for local clustering and v_i is an unstructured random effect for extra-Poisson variation.
Formula
\theta_i \sim \text{Gamma}(\alpha, \beta) \quad \text{(empirical Bayes)};\qquad \log(\theta_i) = \mu + u_i + v_i \quad \text{(full Bayesian, BYM)}The observed count in each area is modelled as Poisson with expected count E_i and area-specific relative risk theta_i. This links the observed counts to the latent risk surface.
Formula
y_i | \theta_i \sim \text{Poisson}(E_i \, \theta_i)Bayes' theorem combines the likelihood and prior into a posterior distribution for the relative risk in each area. Posterior summaries are usually obtained by MCMC sampling, for example with Stan, or by the Laplace approximation implemented in INLA, which approximates the posterior without sampling.
Formula
p(\theta_i | y) \propto p(y_i | \theta_i)\, p(\theta_i)
Posterior means or medians are the smoothed risk estimates. In the Gamma-Poisson empirical Bayes case the posterior mean is (y_i + alpha)/(E_i + beta), a compromise between the area's own ratio and the prior mean. In the full Bayesian case, summaries come from the posterior samples or approximation. Areas with small expected counts are pulled towards the regional average, while areas with large, consistently high counts keep elevated estimates. The amount of shrinkage depends on the prior and on how much information each area contributes.
Formula
\hat{\theta}_i = \mathrm{E}(\theta_i \mid y) = \frac{y_i + \alpha}{E_i + \beta} \quad \text{(Gamma-Poisson case)}An area is flagged as a hot spot when its posterior probability of exceeding a chosen risk threshold c, written P(theta_i > c | y), is greater than a decision threshold tau. The threshold values are set on substantive grounds for the application, and the probabilities for each area are reported so that readers can see how confident each flag is.
Formula
P(\theta_i > c \mid y) > \tau
Common pitfalls
- Reporting only which areas exceed a single risk threshold without the posterior probabilities hides how confident each flag is.
- Accepting MCMC output without convergence diagnostics; unconverged chains give unreliable posterior summaries.
- Treating the smoothed risk surface as evidence of cause: the method locates where risk is elevated, not why.
- Applying the method to point data without a defined denominator or expected count, which leaves the relative risk undefined.
Frequently asked questions
How does Bayesian hot spot analysis differ from Getis-Ord Gi*?
Getis-Ord Gi* is a frequentist statistic that compares local weighted sums with their expectation and reports a z-score. Bayesian hot spot analysis models the posterior distribution of relative risk for each area, uses spatial priors to share information between neighbours, and reports the probability that each area exceeds a risk threshold. The two methods answer related but different questions, so their outputs are not directly interchangeable.
What software can run Bayesian hot spot analysis?
Models of this kind can be fitted with MCMC software such as Stan or with INLA, which uses a Laplace approximation. Check each tool's documentation for the spatial model types it supports.
What is the BYM model?
The Besag-York-Mollie (BYM) model decomposes the area-level log relative risk into a spatially structured component, given a conditional autoregressive prior, and an unstructured component that captures extra variation. This separation allows the model to distinguish localised spatial clustering from general heterogeneity.
How do I choose the risk threshold c and the decision threshold tau?
There is no universal value. Choose c from what counts as a practically important excess risk in the application, and choose tau according to how many false alarms are acceptable. Report results across several combinations so readers can see how sensitive the set of flagged areas is.
Can Bayesian hot spot analysis handle covariates?
Yes. Covariates such as a deprivation index or age structure can be added to the linear predictor of the hierarchical model. Remaining spatial clustering after adjustment then indicates elevated risk that the covariates do not explain.
Related methods
Sources
Lawson, A. B. (2018). Bayesian Disease Mapping: Hierarchical Modeling in Spatial Epidemiology (3rd ed.). CRC Press.
ISBN: 978-1138575424Clayton, D., & Kaldor, J. (1987). Empirical Bayes estimates of age-standardized relative risks for use in disease mapping. Biometrics, 43(3), 671-681.
Open DOI reference