- Introduced by
- Toni, Welch, Strelkowa, Ipsen & Stumpf (building on Pritchard et al. 1999 and Beaumont et al. 2002)
- Year
- 2009–2010
- Type
- simulation-based Bayesian inference
- Family
- Bayesian / computational
What does it do?
Hierarchical ABC is a likelihood-free Bayesian approach for multilevel data, in which individual-level parameters are drawn from a shared population-level distribution.
It combines simulation-based approximate Bayesian computation with hierarchical pooling, so that both within-group and between-group posterior distributions can be estimated without evaluating a likelihood function. Its approximations depend on the simulator, the summary statistics, the distance metric and the tolerance ε, not only on the model.
The intuition behind the method
Standard ABC accepts simulated datasets whose summary statistics are close enough to the observed data, bypassing the need for an explicit likelihood. Hierarchical ABC extends this logic to nested data: at the individual level parameters vary, but those parameters share a common population prior whose hyperparameters are also unknown. The algorithm alternates between simulating individual trajectories and updating the shared population distribution, so that information flows both upward (individuals inform the population) and downward (the population prior regularises individuals with sparse data).
History
Approximate Bayesian computation was developed in population genetics, with early examples of fitting evolutionary models without a computable likelihood. Sequential Monte Carlo versions of ABC, including the model-selection framework of Toni and Stumpf (2010) for dynamical systems in systems and population biology, made the approach practical for simulator-based models. Hierarchical formulations, in which individual parameters are treated as draws from a shared population distribution within ABC, build on these developments. Wilkinson (2013) later gave an interpretation of ABC as exact inference under an additive model-error assumption.
When to use it
Choose hierarchical ABC when the data have a clear nested structure, such as individuals within groups, repeated measures within subjects, or species within genera, and when the mechanistic model can be simulated but has no tractable likelihood. It suits fields such as systems biology, ecology and pharmacokinetics, where simulator-based models are common and groups differ while sharing underlying biology. When a likelihood can be written down and evaluated, likelihood-based hierarchical MCMC is usually preferable because it avoids the approximations introduced by the tolerance and the summary statistics. Hierarchical ABC is also a poor fit when no summary statistics can be found that retain the information needed for the parameters of interest, or when the hierarchy is deep, because acceptance rates fall quickly as dimensionality grows.
Limitations and considerations
- Computationally intensive: many simulations are needed, and the cost rises with the number of parameters and the number of groups, since both enlarge the space that must be sampled.
- Posterior quality depends on the summary statistics. If they do not capture the information needed for the hierarchical parameters, the posterior can be biased in ways the acceptance step does not reveal.
- Acceptance rates drop steeply as the number of parameters grows, so high-dimensional hierarchical problems usually need SMC-type or MCMC-type schemes.
- The tolerance ε trades accuracy against cost: a small ε stays closer to the observed data but accepts fewer simulations, while a large ε is cheaper but yields a broader posterior.
- Accepted samples target the posterior conditioned on the distance being within ε, so the resulting intervals are approximate. Wilkinson (2013) shows that ABC can be read as exact inference under a uniform additive model-error assumption when sufficient summaries are used; this interpretation should be checked before intervals are read as exact.
- Results can be sensitive to the hyperpriors, especially for groups with little data, and to the distance metric and the relative scaling of the summaries.
- If the simulator is misspecified, the posterior can be confidently wrong even with a small ε; a small tolerance does not correct model error.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Allows hierarchical posteriors to be estimated for simulators whose likelihood is intractable, with individual-level and population-level parameters inferred jointly.
- Partial pooling lets data-sparse groups borrow strength from the population distribution while still allowing group-specific variation.
- Returns posterior samples for both individual and hyperparameters, so uncertainty is reported at each level of the hierarchy.
- Requires only the ability to generate synthetic data from the model; any forward simulator can be used in principle, but feasibility depends on simulation cost and acceptance rates.
- Can be embedded within SMC-ABC, which allows the tolerance ε to be reduced adaptively.
Applications
- Systems biology: inferring kinetic parameters of signalling and gene-regulatory networks from noisy time-series data across experimental replicates.
- Population pharmacokinetics: estimating drug absorption and elimination parameters that vary across patients while sharing a population distribution.
- Ecology: fitting individual-based models of species spread or population dynamics to heterogeneous field data collected across multiple sites.
- Evolutionary genetics: estimating demographic histories under models whose genealogy likelihood is intractable.
- Epidemiology: inferring transmission parameters for outbreak models fitted to data from several geographic clusters.
How it works
How it works
Specify hyperpriors p(φ) on the population-level parameters (e.g. the mean and variance of a Normal distribution) and, conditional on φ, a population distribution p(θ_i | φ) for each group's or individual's local parameters. This two-level prior encodes the hierarchical structure before any data are seen.
Formula
\varphi \sim p(\varphi), \quad \theta_i \mid \varphi \sim p(\theta_i \mid \varphi), \quad i=1,\dots,G
For each proposed hyperparameter draw φ, sample local parameters θ_i from p(θ_i | φ) for every group i, then simulate a dataset y_i* from the mechanistic model given θ_i. No likelihood evaluation is required, only the ability to generate synthetic data from the model.
Formula
y_i^* \sim p(y \mid \theta_i), \quad i=1,\dots,G
Compute a vector of summary statistics S for each simulated and observed group dataset. Define a distance either per group, ρ(S(y_i*), S(y_i,obs)), or jointly over all groups by aggregating the per-group distances (for example by summing them after scaling each summary). A proposal (φ, θ_1..θ_G) is accepted only when the chosen distance falls below ε. Because all groups share φ, the acceptance decision concerns the whole hierarchy rather than each group in isolation. The summaries should be informative and low-dimensional, and should be scaled so that no single summary dominates the distance; poor choices inflate the posterior width and slow convergence.
Formula
\rho\big(S(y_i^*), S(y_{i,\text{obs}})\big)\le\varepsilon \;\text{ for the joint distance } \textstyle\sum_{i=1}^{G}\rho\big(S(y_i^*),S(y_{i,\text{obs}})\big)\le\varepsilonAccepted draws of (φ, θ_i) form a sample from the approximate joint posterior, so the shared hyperparameters φ are informed by all groups at once. In sequential schemes, accepted particles are reweighted and perturbed to propose the next generation. Groups with few observations borrow strength through φ, which regularises their estimates. This differs from independent per-group ABC, in which each group has its own prior and no information is shared.
Formula
p_\varepsilon(\varphi,\theta_{1:G}\mid y_{\text{obs}}) \propto p(\varphi)\prod_{i=1}^{G} p(\theta_i\mid\varphi)\,\Pr\!\big(\rho_{\text{joint}}\le\varepsilon \mid \theta_{1:G}\big)Iterate, optionally within a Sequential Monte Carlo (SMC-ABC) or MCMC-ABC scheme, while decreasing the tolerance. The final accepted particles approximate the joint posterior over all individual parameters and hyperparameters, from which marginal summaries are computed.
Common pitfalls
- Using summary statistics that are not jointly sufficient for the full hierarchical model, which can produce biased posteriors without any visible warning.
- Setting ε too large for computational convenience, which inflates the posterior and understates the precision of the estimates.
- Running ABC independently for each group, which discards the benefit of hierarchical pooling for sparse groups.
- Failing to check the ABC posterior against simulated data with known parameter values before applying the method to real data.
- Treating the number of accepted particles as the effective sample size; when particles are generated by MCMC-ABC kernels they can be strongly correlated.
- Combining summaries with very different scales in one distance without standardising them, so that one summary dominates acceptance.
- Leaving hyperprior sensitivity unexamined; compare posteriors under alternative reasonable hyperpriors.
Frequently asked questions
How does hierarchical ABC differ from running ABC separately for each group?
Independent per-group ABC fits treat each group in isolation and need enough data within each group to identify its parameters. Hierarchical ABC pools information across groups through a shared population distribution, so groups with sparse data borrow strength from the population and their estimates are regularised. This is the same kind of partial pooling that hierarchical MCMC provides over separate group-level fits.
What summary statistics should I use?
Ideally, statistics that are jointly sufficient for the model parameters at both the individual and population levels. In practice, domain knowledge is the best guide. Candidate statistics should be checked by confirming that the ABC posterior recovers known parameters in simulated experiments. Data-driven summary-selection methods, such as regression-based construction of summaries from pilot simulations, can help when intuition is limited.
Can hierarchical ABC scale to large numbers of groups?
With many groups the joint parameter space grows, and acceptance rates in naive rejection ABC fall sharply. SMC-ABC or MCMC-ABC kernels with population-level proposals can improve scaling. For large hierarchies with complex individual models, the computational burden may become prohibitive, and likelihood-based alternatives should be considered where the model structure allows them.
How do I choose the tolerance ε?
Start with a generous ε to obtain accepted samples quickly, then reduce it in stages, or use an adaptive SMC-ABC schedule that lowers ε automatically. A practical check is whether the ABC posterior remains visually stable when ε is reduced further; a posterior that still shifts substantially indicates that the tolerance is not yet small enough.
Are there software packages for hierarchical ABC?
Several ABC software packages exist, and their support for hierarchical population models varies. Check the documentation of any package for the model structure you need before relying on it, rather than assuming that support is available.
Related methods
Sources
Toni, T. & Stumpf, M. P. H. (2010). Simulation-based model selection for dynamical systems in systems and population biology. Bioinformatics, 26(1), 104–110.
Open DOI referenceWilkinson, R. D. (2013). Approximate Bayesian computation (ABC) gives exact results under the assumption of model error. Statistical Applications in Genetics and Molecular Biology, 12(2), 129–141.
Open DOI reference