- Year
- 2002
- Type
- Simulation-based Bayesian inference
What does it do?
Approximate Bayesian Computation (ABC) is a family of simulation-based inference methods that estimate posterior distributions without requiring an analytically tractable likelihood function.
Beaumont, Zhang and Balding (2002) presented the approach in the context of population genetics, replacing likelihood evaluation with repeated model simulation and a local-linear regression of simulated parameter values on simulated summary statistics, evaluated at the observed summary statistics.
The intuition behind the method
Classic Bayesian inference asks: given the observed data, how probable are the model parameters? Answering that question normally requires computing the likelihood, the probability of the data under each parameter setting. For many realistic models, that calculation is either analytically impossible or computationally prohibitive. ABC avoids it: it simulates data from the model, compresses both simulated and observed data into summary statistics, and accepts a parameter proposal only when the simulated summaries are close enough to the observed ones. The accepted proposals form an approximate posterior. As the tolerance threshold epsilon tightens, the approximation tends to improve, but fewer proposals are accepted, and at low acceptance rates the posterior sample becomes noisier. The limit is the posterior conditioned on the chosen summary statistics, not necessarily the posterior given the full data.
History
Beaumont, Zhang and Balding (2002) presented an approach to approximate Bayesian inference from summary statistics in population genetics, extending ideas developed in that field by earlier authors. The method approximates properties of the posterior, such as its mean or density curve, without explicit likelihood calculations, by fitting a local-linear regression of simulated parameter values on simulated summary statistics and then substituting the observed summary statistics into the fitted equation. The Handbook of Approximate Bayesian Computation, edited by Sisson, Fan and Beaumont (2018), is an edited reference volume on the methodology.
When to use it
ABC is appropriate when the model can be simulated forward but its likelihood cannot be evaluated analytically, a situation common in population genetics, epidemiology, ecology and agent-based economic modelling. Because the method requires only a simulator, the outcome type is limited by the model rather than by a likelihood form. Regression-adjusted ABC, introduced by Beaumont, Zhang and Balding (2002), post-processes simulations with a local-linear regression, which can reduce the bias caused by a non-negligible tolerance and so make a looser threshold workable. It is not appropriate when the likelihood is tractable, since standard MCMC is then more direct, or when the summary statistics cannot be chosen to carry information about the parameters of interest. No fixed minimum sample size applies; the accepted sample must be large enough to describe the posterior adequately. When simulations are expensive, adaptive variants such as SMC-ABC are often considered in place of naive rejection sampling.
Limitations and considerations
- Naive rejection ABC needs many simulations to reach a small tolerance with a usable acceptance rate, which becomes costly as the number of parameters grows.
- The quality of the posterior approximation depends on the choice of summary statistics; poorly chosen summaries can produce a biased or high-variance posterior.
- The chosen summary statistics are generally not guaranteed to be sufficient, so information is typically lost relative to the full data and likelihood.
- When the simulation budget is limited, the accepted sample may be too small to describe the posterior reliably; efficient variants such as SMC-ABC are designed to address this cost.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Operates without a closed-form likelihood, so Bayesian inference can be applied to generative models that are easy to simulate but hard to evaluate analytically.
- Requires only that the analyst can encode the model as a simulator, so the structure of the data is set by the model rather than by a restricted likelihood family.
- Variants such as SMC-ABC and ABC-MCMC aim to use simulations more efficiently than naive rejection sampling.
- As the tolerance threshold epsilon decreases, the approximation approaches the posterior conditioned on the chosen summary statistics, at the cost of a lower acceptance rate (see pitfalls).
Applications
- Inferring population size, migration, and divergence history in population genetics from allele frequency data.
- Estimating transmission rates and contact parameters in epidemic models where individual-level likelihood is intractable.
- Calibrating agent-based economic models to observed macro-level statistics without a closed-form equilibrium likelihood.
- Fitting stochastic ecological models — predator-prey dynamics, species spread — to field observation summaries.
- Parameter estimation in systems biology models where mechanistic ODEs are replaced by stochastic simulations.
How it works
How it works
The analyst specifies a prior distribution over the model parameters, encoding what is known or assumed before seeing the data. Candidate parameter values are drawn from this prior throughout the algorithm, so it should cover the plausible range of the parameters.
A parameter proposal is drawn from the prior (or, in adaptive variants, from an importance distribution). The stochastic model is then run forward with that proposal to generate a synthetic dataset. This simulation step is the computational core of ABC and is repeated many times.
Both the synthetic dataset and the observed dataset are reduced to a vector of summary statistics chosen to carry information about the parameters. In practice the statistics are selected using domain knowledge and diagnostic checks, and they may not be sufficient for the parameters.
A distance between the simulated and observed summary statistics is computed under a chosen metric. The proposal is accepted when this distance is at most the tolerance threshold epsilon, and rejected otherwise. Summary statistics are usually placed on comparable scales before the distance is computed, for example by standardising each statistic, so that no single statistic dominates merely because of its units; the choice of metric determines which proposals fall within epsilon. Smaller epsilon values give a closer approximation to the posterior but a lower acceptance rate.
The accepted parameter proposals form a sample from the approximate posterior distribution. This sample can be used to compute posterior means, credible intervals and predictive distributions in the same way as a standard posterior sample. In regression-adjusted ABC, introduced by Beaumont, Zhang and Balding (2002), the simulated parameter values are adjusted by regression rather than used directly: a local-linear regression of simulated parameter values on simulated summary statistics is fitted, and the observed summary statistics are substituted into the fitted equation to obtain adjusted parameter values. Within that 2002 approach, nuisance parameters are integrated out automatically in the simulation step, so large numbers of them can be handled. In SMC-ABC, the tolerance is reduced across a sequence of populations so that simulation effort is concentrated on proposals closer to the observed data.
Common pitfalls
- Setting epsilon too loosely can produce an approximation that differs substantially from the posterior at a tighter tolerance; check that tightening epsilon stabilises the posterior shape.
- Summary statistics that carry little information about the parameters of interest pull the posterior toward the prior; validate statistics by checking whether they change when the true parameter changes.
- Tightening epsilon reduces the bias introduced by the tolerance but increases Monte Carlo variance, because fewer proposals are accepted and the posterior sample becomes noisier; balance the two against the simulation budget and inspect the number of accepted proposals before interpreting the shape of the approximate posterior.
- The prior must cover the plausible parameter space; a prior that is too narrow excludes regions of the posterior, while one that is far too broad spends simulation budget on implausible regions.
- Recommended checks before interpreting the result: record the number of accepted proposals, compare the approximate posterior at two or more decreasing epsilon values, and compare simulated summary statistics with the observed ones (posterior-predictive agreement). No universal thresholds apply to these checks.
Frequently asked questions
How is ABC different from standard MCMC?
Both methods produce samples from a posterior distribution, but MCMC evaluates the likelihood at each proposed parameter value, whereas ABC replaces that evaluation with a forward simulation and a summary-statistic comparison. Use ABC when the likelihood is intractable; use MCMC when it can be computed.
How do I choose summary statistics?
Summary statistics should capture as much information about the parameters of interest as possible. Common practice is to use domain knowledge (e.g., mean, variance, allele frequencies) and to validate choices by checking whether the statistics change when the true parameter changes. For complex models, sufficient statistics are rarely available, so some information loss is usually unavoidable.
How small does the tolerance epsilon need to be?
There is no universal rule. A practical approach is to tighten epsilon incrementally and check whether the posterior shape stabilises. The posterior approximation tends to improve as epsilon decreases, but the acceptance rate falls and more simulations are needed. SMC-ABC automates this trade-off by adaptively reducing epsilon across populations.
When should I use SMC-ABC instead of rejection ABC?
When simulation is expensive, naive rejection ABC can waste most simulations because the acceptance rate may become very low at a tight tolerance. SMC-ABC uses a sequence of decreasing tolerance thresholds and weighted populations so that simulation effort is directed toward regions of higher posterior mass. Whether this gives greater efficiency for a given final epsilon depends on the problem and should be checked against the variant's own literature.
Related methods
Sources
Beaumont, M.A., Zhang, W. & Balding, D.J. (2002). Approximate Bayesian Computation in Population Genetics. Genetics, 162(4), 2025-2035.
Open DOI referenceSisson, S.A., Fan, Y. & Beaumont, M.A. (Eds.) (2018). Handbook of Approximate Bayesian Computation. Chapman & Hall/CRC.
Open DOI reference