- Introduced by
- Beaumont, Zhang & Balding (2002) for ABC; Toni et al. (2009) for dynamical/time-series extension
- Year
- 2009
- Type
- likelihood-free Bayesian inference
- Family
- Bayesian / computational
What does it do?
Time series ABC is a likelihood-free Bayesian method for estimating the posterior distribution of parameters in dynamical or time-indexed models.
It compares summary statistics of simulated trajectories with those of the observed series, so it can be used when the likelihood is intractable but simulation is feasible.
The intuition behind the method
Imagine you cannot write down the probability of observing a particular time series under your model, but you can easily simulate from it. Time series ABC exploits this: it draws candidate parameter values from a prior, simulates a synthetic trajectory under those parameters, and checks how closely that synthetic series matches the real one via summary statistics. Candidate parameters that produce trajectories close enough to the observed data are accepted as approximate posterior samples, effectively learning which parameters are consistent with the data without ever computing a likelihood.
History
Approximate Bayesian computation was formalised by Beaumont, Zhang and Balding (2002). Toni et al. (2009) extended ABC to dynamical systems by combining it with sequential Monte Carlo, applying the resulting algorithm to several biological systems to infer parameters with credible intervals and to compare models. Subsequent use has spread to ecology, epidemiology, systems biology and finance.
When to use it
Use time series ABC when your mechanistic or stochastic model for a time series has an intractable or computationally prohibitive likelihood — common in epidemiology, ecology, systems biology, and finance — but can be simulated efficiently. It is the appropriate tool when you need full Bayesian uncertainty quantification for complex dynamical models and your data are short enough that simulating many replicates is feasible. Avoid it when the likelihood is tractable (use MCMC or HMC instead, which are more efficient), when the time series is very long and simulation is expensive, or when no informative sufficient statistics can be designed, as the posterior approximation will be poor regardless of sample size.
Limitations and considerations
- The posterior is conditional on the chosen summaries, so information that the summaries discard is lost and cannot be recovered by running more simulations.
- A non-zero tolerance ε means that accepted parameters are drawn from p(θ | d ≤ ε), a broadened version of the target posterior. The error shrinks as ε decreases but is not zero in a finite run.
- Each candidate requires a full simulated trajectory of the observed length, so the computational cost grows with series length and with the number of simulations needed.
- Acceptance rates fall as the number of parameters grows, because a random prior draw is rarely close to the data in every summary at once.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Requires only the ability to simulate from the model. The likelihood p(x | θ) is never evaluated, which makes stochastic or agent-based time series models usable for inference.
- The accepted parameter values form a sample from the approximate posterior, so the width of each parameter's distribution and correlations between parameters are visible directly.
- Simulations within a population are independent, so they can be distributed across processors.
- SMC-ABC lowers the tolerance over successive populations. Toni et al. (2009) report that ABC SMC tends to perform better than other ABC approaches and used it to assess how well parameters can be inferred and how sensitive the model is to changes in parameters.
- Toni et al. (2009) also used ABC SMC for model selection, comparing competing mathematical descriptions of a dynamical system with the standard Bayesian model selection apparatus.
Applications
- Parameter inference for stochastic epidemic models (SIR/SEIR) fitted to incidence time series.
- Estimating population dynamics parameters in ecology from count time series.
- Calibrating agent-based financial market models to observed price or volume trajectories, an area where ABC has been proposed.
- Fitting stochastic biochemical reaction networks to single-cell gene expression time courses.
- Inferring parameters of climate or weather models when the likelihood is numerically intractable, an area where ABC has been proposed as an option.
- Model comparison between competing dynamical hypotheses for a given time series dataset.
How it works
How it works
A candidate parameter vector θ* is drawn from the prior p(θ). The prior encodes belief about plausible parameter values before the data are used, and it may be weakly informative or based on domain knowledge.
Formula
\theta^* \sim p(\theta)
The model is run forward in time with θ* to produce a synthetic series x* of the same length as the observed series. This step needs only the ability to generate data, for example by integrating a stochastic model or stepping through an agent-based simulation, not an expression for p(x | θ).
Formula
x^* \sim p(x \mid \theta^*)
Summary statistics S are computed for both x* and x_obs. Useful choices capture the temporal features that the parameters affect, such as autocorrelation at chosen lags, the mean, the variance or extremes. The summaries reduce each trajectory to a fixed-length vector, and any information they discard cannot be recovered by the posterior.
Formula
s^* = S(x^*),\quad s_{\text{obs}} = S(x_{\text{obs}})A distance d between s* and s_obs is computed, often after standardising each summary so that no single statistic dominates the metric. If d(s*, s_obs) ≤ ε, θ* is accepted; otherwise it is rejected. A smaller ε gives a more faithful approximation but fewer accepted candidates per simulation.
Formula
\text{accept } \theta^* \text{ if } d(s^*, s_{\text{obs}}) \le \varepsilonThe accepted values form a Monte Carlo approximation to p(θ | S(x_obs)) within tolerance ε. As ε shrinks, this approximation approaches the posterior conditional on the chosen summaries, which equals the posterior given the full data only if the summaries are sufficient. SMC-ABC, as used by Toni et al. (2009), lowers ε across successive particle populations instead of fixing it, which improves efficiency over single-tolerance rejection. The accepted sample is read like any posterior sample: the spread of each parameter gives its uncertainty, and pairwise scatter shows correlations between parameters. Because the sample depends on ε, report the final tolerance and the acceptance rate, and check whether the posterior still changes appreciably as ε is reduced further.
Formula
\hat{p}(\theta \mid x_{\text{obs}}) \approx \{\theta^*_i : d(s^*_i, s_{\text{obs}}) \le \varepsilon\}Common pitfalls
- Summaries that do not depend on the parameters of interest leave the posterior close to the prior, even though the output still looks like a valid posterior.
- Summaries on different scales, left unstandardised, let the statistic with the largest variance dominate the distance and silently discard the others.
- Choosing ε large for convenience produces a diffuse posterior that retains parameter values inconsistent with the data.
- If the simulator is misspecified relative to the process that generated the data, ABC still returns a posterior, but that posterior reflects the model rather than the data.
- Reporting the ABC posterior without the tolerance, the summary set and the distance, or skipping a check on simulated data with known parameters, makes the results hard to interpret or reproduce.
Frequently asked questions
How do I choose summary statistics for a time series?
Start with established temporal features: the sample mean, variance, autocorrelation at relevant lags, spectral peaks or extremes. Ideally the statistics should carry information about all the parameters of interest. When manual choice is difficult, semi-automatic approaches regress summaries of simulated data on the parameters and use the fitted values as summaries. These approaches are discussed in the ABC literature; the Handbook of Approximate Bayesian Computation (Sisson, Fan & Beaumont, 2018) gives an overview of ABC methods.
What is the difference between rejection ABC and SMC-ABC for time series?
Rejection ABC draws parameters from the prior and accepts or rejects each one independently; it is simple but inefficient when the tolerance must be small. SMC-ABC keeps a population of particles, moves them through a sequence of decreasing tolerances, and resamples and perturbs the accepted particles. For time series models SMC-ABC is usually the better choice because it raises the proportion of accepted candidates.
How does time series ABC relate to the particle filter?
The particle filter (sequential Monte Carlo) tracks a latent state online given fixed parameters, producing an estimate of the likelihood. Time series ABC bypasses the likelihood entirely by simulation and comparison. The two ideas are sometimes combined in the wider literature, for example by running a particle filter within an ABC scheme for state-space models. This is an option rather than a standard procedure and should be justified for the model at hand.
When should I prefer MCMC over ABC for a time series model?
If your model has an evaluable likelihood, even an expensive one, MCMC with HMC (e.g. Stan) is almost always more efficient and produces exact (up to convergence) posterior samples. Switch to ABC only when the likelihood is genuinely unavailable or when simulating the data-generating process is cheaper than evaluating its probability.
Can ABC handle long time series?
With difficulty. Each simulation must reproduce a trajectory of the same length as the observed series. For long series, simulation cost grows linearly or worse, and many replicate simulations are needed. Techniques such as segmenting the series, using approximate local likelihoods, or replacing simulation with neural surrogate models are active areas of research to address this bottleneck.
Related methods
Sources
Toni, T., Welch, D., Strelkowa, N., Ipsen, A. & Stumpf, M. P. H. (2009). Approximate Bayesian computation scheme for parameter inference and model selection in dynamical systems. Journal of the Royal Society Interface, 6(31), 187–202.
Open DOI referenceSisson, S. A., Fan, Y. & Beaumont, M. A. (Eds.) (2018). Handbook of Approximate Bayesian Computation. CRC Press.
ISBN: 978-1439881507