Bayesian Ecological Study — Bayesian Disease Mapping and Ecological Regression

Statistics
Introduced by
Andrew Lawson; Julian Besag (spatial Bayesian foundations)
Year
1991–2000s (Besag 1991 for spatial priors; Lawson 2001 for disease mapping framework)
Type
Observational epidemiological design with Bayesian statistical framework
Family
Clinical / epidemiology

What does it do?

A Bayesian ecological study analyses aggregate data for geographic areas or time periods within a Bayesian hierarchical framework, rather than individual records.

Latent spatial effects receive prior distributions, most often the Besag-York-Mollié (BYM) convolution prior, and the posterior estimates yield smoothed disease risk maps and credible intervals for area-level associations between exposures and outcomes. Because the data are observational and group-level, inference applies to areas rather than to individuals.

The intuition behind the method

Imagine you have cancer counts for every district of a country and want to know which areas carry elevated risk after accounting for noisy small-area data. A raw rate map is dominated by random fluctuation in sparsely populated districts. A Bayesian ecological model borrows strength from neighbouring areas: a district surrounded by high-risk neighbours has its low observed count pulled toward the cluster, because part of that count may be noise. The framework also lets prior knowledge enter the analysis explicitly, produces full uncertainty intervals rather than point estimates alone, and fits hierarchical structures that respect the group-level nature of the data. It does not remove the ecological fallacy: the estimates describe areas, not the individuals living in them.

History

Comparing health outcomes across geographic areas has a long history in epidemiology, and ecological studies date to the 19th century. The Bayesian spatial framework for ecological disease mapping is usually traced to Besag, York and Mollié (1991), whose convolution prior combines spatially structured and unstructured random effects. Lawson's Bayesian Disease Mapping monograph (2nd edition, 2013) develops this approach as a hierarchical modelling framework for spatial epidemiology. Fast approximate alternatives to full MCMC, such as INLA, are described in the FAQ.

When to use it

Use a Bayesian ecological study when (1) only aggregate outcome and exposure data are available across geographic areas or time periods, (2) the question concerns spatial or temporal variation in disease rates, or the association between area-level determinants and health outcomes, and (3) many areas have small populations, so that direct rate estimates are unstable and benefit from Bayesian smoothing. It suits disease surveillance, area-level environmental epidemiology such as air pollution and mortality, and health needs assessment. Do not use it when individual-level inference is the goal, because the ecological fallacy prevents attributing area-level associations to individuals. Avoid it when expected counts cannot be constructed (for example, when no reference population is available), when the spatial adjacency structure is undefined (for example, non-contiguous units), or when there are only a handful of areas, which is too few to estimate spatial variance components reliably.

Limitations and considerations

  • Ecological fallacy: associations observed at the group level do not necessarily hold at the individual level, and the design cannot establish individual-level causal inference.
  • Results are sensitive to prior specification, particularly the prior on the spatial variance components; sensitivity analyses add analytical burden.
  • Requires a defined spatial adjacency or connectivity structure; poorly conceived neighbourhood definitions can distort inference.
  • Confounding by unmeasured area-level variables is hard to rule out. Because exposure is measured at the area level, the model cannot adjust for how exposure and confounders are distributed among individuals within each area.

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

Strengths

  • Bayesian shrinkage stabilises rate estimates in small areas or for rare outcomes, reducing noise-driven artefacts in disease maps.
  • Full posterior distributions provide credible intervals and exceedance probabilities, which are more directly interpretable in a mapping context than frequentist p-values.
  • Hierarchical priors capture both spatially structured clustering (the ICAR component) and unstructured overdispersion in the same model.
  • Prior distributions allow external knowledge to enter through informative or weakly informative choices, which helps stabilise estimates in data-sparse areas.
  • Computationally accessible via INLA (R-INLA package) or Stan/BUGS, which makes the approach practical for large administrative datasets.

Applications

  • Mapping small-area cancer incidence or mortality to identify spatial clusters and guide public health resource allocation.
  • Estimating the ecological association between area-level air pollution indices and respiratory or cardiovascular hospitalisation rates.
  • Assessing geographic variation in vaccine coverage or infectious disease burden across administrative units in surveillance systems.
  • Evaluating the impact of area-level deprivation or socioeconomic indicators on health outcomes in a hierarchical spatial model.
  • Monitoring temporal trends in disease rates across regions using space-time Bayesian extensions of the BYM model.

How it works

How it works

1

Define the observational units (geographic areas, time periods, or area-time cells) and identify the aggregate outcome (case counts or rates) and the group-level exposure or covariate data. No individual-level data are required; all measurements are at the unit level. Clarify whether the goal is disease mapping (estimating spatial risk variation) or ecological regression (estimating the association between area-level exposure and outcome).

2

Specify prior distributions for all model parameters. Spatial random effects are typically assigned a convolution prior (BYM model) that combines a spatially structured intrinsic conditional autoregressive (ICAR) component, which captures local clustering, with an unstructured exchangeable component, which captures independent unit-level heterogeneity. Non-spatial covariate coefficients receive weakly informative priors, for example normal or Student-t. Sensitivity analyses across alternative priors are standard practice.

3

Write a Bayesian hierarchical likelihood model, commonly Poisson for count outcomes with a log link, of the form: observed counts ~ Poisson(expected counts × relative risk). The log relative risk is a linear predictor containing covariate effects and the spatial random effects. Expected counts are computed from reference rates applied to each unit's population. The model is fitted by Markov chain Monte Carlo (MCMC) sampling or integrated nested Laplace approximation (INLA).

4

Draw posterior samples by MCMC, or obtain posterior approximations via INLA, to get smoothed risk estimates, posterior maps and 95% credible intervals for each area and for the ecological regression coefficients. Compare candidate models with the deviance information criterion (DIC) or the Watanabe-Akaike information criterion (WAIC). Check the posterior residuals for remaining spatial autocorrelation, for example with Moran's I.

5

Report smoothed relative risks or standardised morbidity/mortality ratios with credible intervals, map posterior exceedance probabilities (the probability that the relative risk exceeds a threshold of interest), and interpret ecological regression coefficients as area-level associations. These coefficients cannot be extrapolated to individual-level relationships without additional evidence.

Common pitfalls

  • Treating smoothed Bayesian estimates as if they were individual-level risk estimates — the ecological nature of the data means all inference remains at the group level.
  • Fitting a spatial model without checking for residual autocorrelation — if the chosen spatial prior does not match the true correlation structure, estimates may be biased; compare candidate priors with DIC or WAIC and check residual Moran's I.
  • Using weakly informative priors without sensitivity analysis — for small datasets the posterior can be dominated by the prior, so reporting robustness to prior choice is essential.
  • Ignoring population heterogeneity within areas — large or internally heterogeneous units violate the aggregation assumptions and inflate apparent ecological associations.
  • Conflating disease mapping (estimating spatial risk patterns) with causal ecological regression (estimating exposure effects) — the two goals require different modelling choices and carry different inferential caveats.

Frequently asked questions

What is the ecological fallacy and why does it matter here?

The ecological fallacy is the error of inferring individual-level relationships from group-level data. For example, an ecological study showing that areas with higher average alcohol consumption have higher liver disease rates does not prove that the individuals with the highest consumption are those developing liver disease, because the composition and context of areas differ. Shrinkage towards neighbouring areas can reduce the variance of small-area estimates, at the cost of some bias, but it does not resolve this fundamental limitation of aggregate-level data.

What is the BYM model and do I have to use it?

The Besag-York-Mollié (BYM) model is the most widely cited spatial prior for ecological count data. It decomposes area-level random effects into a spatially structured (ICAR) component and an unstructured normal component. It is a sensible default but not mandatory. Alternatives include the Leroux model or Gaussian process priors. The choice should be guided by the scientific hypothesis about the spatial correlation structure and checked with model comparison criteria such as DIC or WAIC.

Can I use INLA instead of MCMC?

Yes. Integrated Nested Laplace Approximation (INLA), implemented in the R-INLA package, gives fast approximations to posterior distributions for the class of latent Gaussian models that includes many Bayesian ecological designs. For standard BYM or ecological regression models it is often much faster than MCMC and adequate for many applications, although the accuracy of the approximation should be checked where precise posterior inference matters. Full MCMC (via Stan or BUGS) is preferred when the model structure falls outside the latent Gaussian class or when exact posterior exploration is required.

How do I choose the spatial adjacency structure?

The adjacency matrix defines which areas are considered neighbours and directly shapes the spatial smoothing. The most common choice is queen contiguity (areas sharing a border or vertex are neighbours), which is appropriate for administrative polygons. For point-referenced data, a distance-based or k-nearest-neighbours structure may be used. The choice should reflect the scientific understanding of how health outcomes or exposures spread across space, and sensitivity to alternative adjacency definitions should be reported.

How is this different from a standard (frequentist) ecological study?

A frequentist ecological study computes direct standardised rates and fits ordinary regression models at the group level. Bayesian ecological analysis adds (1) explicit prior distributions that incorporate external knowledge and regularise estimates in data-sparse units, (2) full posterior inference providing credible intervals and probability statements, and (3) principled hierarchical modelling of spatial correlation. The Bayesian approach is particularly advantageous when many areas have small counts, producing direct estimates that are too noisy to map or compare meaningfully.

Related methods

Sources

  1. Lawson, A. B. (2013). Bayesian Disease Mapping: Hierarchical Modeling in Spatial Epidemiology (2nd ed.). CRC Press.

    ISBN: 978-1466504813
  2. Besag, J., York, J., & Mollie, A. (1991). Bayesian image restoration, with two applications in spatial statistics. Annals of the Institute of Statistical Mathematics, 43(1), 1–20.

    Open DOI reference