Abstract
Bayesian synthetic likelihood (BSL) is an alternative to standard, non-parametric approximate Bayesian computation (ABC). BSL assumes a multivariate normal distribution for the summary statistic likelihood and it is suitable when the distribution of the model summary statistics is sufficiently regular. This package provides a Metropolis Hastings Markov chain Monte Carlo implementation of four methods (BSL, uBSL, semiBSL and BSLmisspec) and two shrinkage estimators (graphical lasso and Warton's estimator). uBSL uses an unbiased estimator to the normal density. A semi-parametric version of BSL (semiBSL) is more robust to non-normal summary statistics. BSLmisspec estimates the Gaussian synthetic likelihood whilst acknowledging that there may be incompatibility between the model and the observed summary statistic. Shrinkage estimation can help to decrease the number of model simulations when the dimension of the summary statistic is high. Extensions to this package are planned.
Introduction
In fields such as biology, ecology, and economics, researchers often work with "likelihood-free" models. These are complex, simulation-based models where it is easy to generate data but mathematically impossible to define the probability of observing a specific dataset (the likelihood).
Standard Approximate Bayesian Computation (ABC) addresses this by comparing simulated summary statistics to observed ones. However, ABC often requires a massive number of simulations to achieve accuracy and struggles significantly as the number of summary statistics increases. The 'BSL' R package provides a comprehensive toolkit for Bayesian Synthetic Likelihood (BSL), which addresses these inefficiencies by using a parametric approximation—specifically, a multivariate normal distribution—for the summary statistics. This approach often leads to faster convergence and better performance in higher dimensions.
Methodology and Implementation
The package implements a Metropolis-Hastings Markov chain Monte Carlo (MCMC) framework featuring several advanced BSL variants designed for different modeling challenges:
- Standard BSL & uBSL: The baseline methods assuming multivariate normality.
uBSLemploys an unbiased estimator for the normal density to improve accuracy. - semiBSL: A semi-parametric approach that uses kernel density estimation for marginal distributions and a Gaussian copula for dependence, making it robust to non-normal summary statistics.
- BSLmisspec: Accounts for "model misspecification," where the model is fundamentally unable to reproduce the observed summary statistics.
- Shrinkage Estimators: Includes BSLasso (graphical lasso) and Warton’s estimator to regularize the covariance matrix, allowing the method to scale to high-dimensional problems.
Beyond basic parameter estimation, the package includes advanced features like Whitening Transformations to decorrelate summary statistics and support for Parallel Computing via the foreach package to distribute model simulations across multiple CPU cores.
Key Applications
The package's versatility is demonstrated through several real-world benchmarking datasets:
- Cell Biology (Scratch Assay): Successfully estimates parameters using 145 summary statistics, showcasing the power of the BSLasso approach in high dimensions.
- Toad Movement: Implements a complex ecological model simulating the dispersal patterns of Fowler’s toads (Anaxyrus fowleri).
- Multivariate G&K: Evaluates performance on complex, high-dimensional summary statistics using flexible distributions.
Conclusion and Future Work
The BSL package offers a robust, scalable alternative to ABC for complex simulation-based models. By leveraging parametric efficiency and regularization, it enables stable inference in regimes where standard methods fail. While it relies on the assumption of approximate normality for summary statistics, variants like semiBSL provide necessary robustness. Future extensions are planned to further automate tuning and expand the suite of available likelihood-free methods.
Summary updated