Spatial Approximate Bayesian Computation

Statistics
Introduced by
Diggle & Gratton (implicit statistical models, 1984); Beaumont, Zhang & Balding (ABC formalization, 2002)
Year
2002 (spatial extensions from mid-2000s)
Type
likelihood-free Bayesian inference
Family
Bayesian / computational

What does it do?

Spatial Approximate Bayesian Computation (Spatial ABC) is a likelihood-free Bayesian inference framework for spatial data models whose likelihood function is intractable or too expensive to evaluate.

It draws candidate parameters from a prior, simulates spatially structured datasets under those parameters, and accepts only the draws whose simulated spatial summary statistics closely match the observed data, thereby building an approximate posterior over model parameters.

The intuition behind the method

Many realistic spatial models — spatial point processes, geostatistical models with complex dependence, or spatial epidemic models — have likelihoods that cannot be written in closed form. Spatial ABC sidesteps this by turning inference into a simulation game: repeatedly guess parameters from the prior, generate a fake spatial dataset, compress both real and fake data into spatial summary statistics (e.g. Ripley's K, variogram, spatial autocorrelation indices), and keep the guesses whose summaries are close enough. The surviving guesses approximate the posterior without ever computing a likelihood.

History

Diggle and Gratton (1984) developed Monte Carlo methods of inference for implicit statistical models, that is, models defined through a generating stochastic mechanism rather than a closed-form distribution. Their method estimates a log-likelihood from model simulations using kernel density estimation and then maximises it; their illustrative examples include a quantal response assay and a model for the spatial pattern of displaced amacrine cells in the rabbit retina. This is an early precursor of simulation-based inference rather than an approximate Bayesian computation method. Beaumont, Zhang and Balding (2002) formalised approximate Bayesian computation based on summary statistics and local-linear regression adjustment, illustrated with population-genetic problems. The same framework is applied to spatial models, such as point process and geostatistical models whose likelihoods are intractable.

When to use it

Use Spatial ABC when the spatial model of interest has an intractable or computationally prohibitive likelihood but can be simulated. Typical candidates are spatial point process models whose likelihoods involve intractable integrals or normalising constants (for example Strauss or log-Gaussian Cox processes), spatial epidemic models, and geostatistical models with non-Gaussian dependence. It is appropriate when informative spatial summary statistics can be identified and simulation of the process is feasible. Do not use it when a standard spatial likelihood (e.g. Gaussian process) is available and MCMC is computationally affordable, because standard Bayesian MCMC will give exact (up to MCMC error) posterior inference more efficiently. Also avoid it when no good summary statistics exist for the spatial structure of interest, as the resulting posterior approximation may be poor.

Limitations and considerations

  • Accuracy depends on the summary statistics. If the summaries carry little information about a parameter, the approximate posterior is conditioned on uninformative features of the data and can be too wide or centred in the wrong place.
  • The tolerance epsilon adds approximation error. Shrinking epsilon generally requires many more simulations, and the cost grows quickly as the tolerance tightens; the exact relationship depends on the dimension of the parameter space, so a tolerance that is workable for a few parameters may be impractical for many.
  • Acceptance becomes rare as the number of parameters grows, so naive rejection sampling scales poorly without ABC-SMC or regression adjustment.
  • The simulator must reproduce the spatial dependence of the data. If it does not, the accepted parameters describe the wrong process, and the posterior can be misleading without any visible warning.
  • Choosing epsilon and the summary statistics requires preliminary tuning runs and some understanding of the spatial model.

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

Strengths

  • Makes Bayesian inference possible for spatial models whose likelihoods cannot be evaluated but can be simulated, such as point process and spatial epidemic models.
  • Spatial dependence enters through the simulator and the chosen spatial summaries, so the model's own spatial structure is what gets compared with the data.
  • Each simulated draw is independent of the others, so simulations can be distributed across cores or machines.
  • Can be combined with ABC-SMC to concentrate simulations in high-posterior regions, or with the local-linear regression adjustment introduced by Beaumont, Zhang and Balding (2002), to sharpen the approximation.

Applications

  • Log-Gaussian Cox process models of ecological point-pattern data, such as species occurrence or tree distributions.
  • Parameter inference for spatial epidemic or disease spread models.
  • Range and variance parameters of non-Gaussian geostatistical models.
  • Inference for spatial Gibbs point process models (for example hard-core or Strauss models) where the normalising constant is intractable.
  • Calibrating simulation models of spatial processes, such as agent-based urban or environmental models, where the simulator is available but the likelihood is not.

How it works

How it works

1

A candidate parameter vector theta* is drawn from the prior p(theta). The prior encodes available knowledge about model parameters such as range, variance, or intensity before the spatial data are observed.

Formula
\theta^* \sim p(\theta)
2

A synthetic spatial dataset y* is generated from the model by simulating the spatial process (e.g. a point process, a Gaussian random field, or a spatial epidemic) at the observed locations or grid s, using the candidate parameters theta*.

Formula
\mathbf{y}^* \sim p(\cdot \mid \theta^*,\, \mathbf{s})
3

Both the observed and simulated datasets are compressed into low-dimensional, informative spatial summary statistics S, such as the empirical variogram, Ripley's K function, Moran's I, or nearest-neighbour distance distributions, that capture the key spatial structure relevant to the parameters of interest.

Formula
S(\mathbf{y}^*) \approx S(\mathbf{y}_{\text{obs}})
4

The discrepancy rho between the simulated and observed summary statistics is measured (e.g. Euclidean distance). If rho is at most epsilon, the candidate theta* is accepted; otherwise it is rejected. The tolerance epsilon controls the trade-off between computational cost and approximation accuracy.

Formula
\rho(S(\mathbf{y}^*), S(\mathbf{y}_{\text{obs}})) \leq \varepsilon
5

Accepted theta* values form a sample from an approximate posterior. Because the comparison is made on summary statistics, the sample approximates the posterior conditioned on S(y_obs) rather than on the full observed dataset; any information the summaries discard is lost, so the approximation is typically wider than the full-data posterior. Regression adjustment (Beaumont, Zhang & Balding, 2002) or sequential weighting (ABC-SMC) can sharpen it. Posterior summaries (means, medians, credible intervals) are computed from the accepted sample.

Formula
p_{\varepsilon}(\theta \mid \mathbf{y}_{\text{obs}}) \propto p(\theta)\, \mathbf{1}[\rho \leq \varepsilon]

Common pitfalls

  • Using generic non-spatial summaries (for example the mean or variance of the counts or values) that discard the spatial dependence structure the model is meant to capture.
  • Setting epsilon so loose that most simulated summaries are accepted, which leaves the posterior close to the prior.
  • Computing summaries on the observed data and on the simulations over different study windows or boundaries, which changes edge-sensitive statistics such as the K-function and makes the comparison invalid.
  • Skipping validation on simulated data with known parameters, so the approximation error is never assessed.
  • Treating accepted samples as exact posterior draws without acknowledging the approximation error introduced by epsilon and the summaries.

Frequently asked questions

How do I choose summary statistics for spatial ABC?

Prefer statistics that are sensitive to the parameters of interest and capture the spatial dependence structure of the model. For point processes, Ripley's K, the L-function, or nearest-neighbour distance distributions are common. For geostatistical models, the empirical variogram at several lags works well. Simulation studies comparing posterior accuracy under different summary choices are strongly recommended.

How large should epsilon be?

There is no universal value. Choose the tolerance so that enough simulated draws are accepted to estimate the posterior, then check that the accepted posterior is clearly narrower than the prior. If it is still close to the prior, tighten epsilon and increase the number of simulations. ABC-SMC reduces this tension by adapting epsilon over sequential populations of particles.

Can Spatial ABC handle very large spatial datasets?

Large datasets increase simulation time per draw and may make naive ABC impractical. Solutions include using spatial summary statistics computed on subregions, coupling ABC with emulators (surrogate models for the simulator), or using ABC-SMC to concentrate simulations in high-posterior regions rather than sampling the full prior.

Is Spatial ABC the same as regular ABC applied to spatial data?

The algorithmic skeleton is the same, but Spatial ABC specifically requires spatially informative summary statistics and a simulator that replicates the spatial dependence structure of the data. Using non-spatial summaries on spatial data would ignore the key information and produce unreliable posteriors.

How does Spatial ABC compare to INLA for spatial models?

INLA (Integrated Nested Laplace Approximation) is designed for latent Gaussian models and is fast when a model falls within that class. When the model lies outside it, or its likelihood is available but awkward to approximate, Spatial ABC is an alternative that needs only the ability to simulate from the model, at a higher computational cost.

Related methods

Sources

  1. Beaumont, M. A., Zhang, W., & Balding, D. J. (2002). Approximate Bayesian computation in population genetics. Genetics, 162(4), 2025–2035.

    Open DOI reference
  2. Diggle, P. J., & Gratton, R. J. (1984). Monte Carlo methods of inference for implicit statistical models. Journal of the Royal Statistical Society: Series B, 46(2), 193–212.

    Open DOI reference