Scientific Research

An Academic Publisher

Local Kernel Dimension Reduction in Approximate Bayesian Computation ()

Share and Cite:

*Open Journal of Statistics*,

**8**, 479-496. doi: 10.4236/ojs.2018.83031.

1. Introduction

Monte Carlo methods are popular in sampling and inference problems. While the Markov Chain Monte Carlo (MCMC) methods find successes in applications where likelihood functions are known up to an unknown constant, MCMC cannot be used in scenarios where likelihoods are intractable. For these cases, if the problem can be characterized by a generating model, Approximate Bayesian Computation (ABC) can be used. ABC is a Monte Carlo method that approximates the posterior distribution by jointly generating simulated data and parameters and does the sampling based on the distance between the simulated data and the observation, without evaluating the likelihoods. ABC was first introduced in population genetics [1] [2] and then been applied to a range of complex applications including dynamical systems [3] , ecology [4] , Gibbs random fields [5] and demography [6] .

The accuracy of ABC posterior depends on sufficiency of summary statistics and Monte Carlo errors induced in the sampling. Given the generative model $p\left(y\mathrm{|}\theta \right)$ of observation ${y}_{obs}$ with parameter $\theta $ , consider summary statistics ${s}_{obs}={G}_{s}\left({y}_{obs}\right)$ and $s={G}_{s}\left(y\right)$ , where ${G}_{s}\mathrm{:}Y\to S$ is the mapping from the original sample space Y to low dimensional summary statistics S. The posterior distribution, $p\left(\theta \mathrm{|}{y}_{obs}\right)$ , is approximated by $p\left(\theta \mathrm{|}{s}_{obs}\right)$ , which is constructed as $p\left(\theta \mathrm{|}{y}_{obs}\right)={\displaystyle \int}{p}_{ABC}\left(\theta \mathrm{,}s\mathrm{|}{s}_{obs}\right)\text{d}s$ , with

${p}_{ABC}\left(\theta \mathrm{,}s\mathrm{|}{s}_{obs}\right)\propto p\left(\theta \right)p\left(s\mathrm{|}\theta \right)K\left(\Vert s-{s}_{obs}\Vert /\u03f5\right)\mathrm{,}$ (1)

where K is a smoothing kernel with bandwidth $\u03f5$ . In the case of simple rejection ABC, K is often chosen as an indicator function $I\left(\Vert s-{s}_{obs}\Vert /\u03f5\right)$ . If the summary statistics s are sufficient, it can be shown that (1) converges to the posterior $p\left(\theta \mathrm{|}{s}_{obs}\right)$ as $\u03f5$ goes to zero [7] .

As shown above, the sampling is based on the distance between the summary statistics of the simulated sample s and the observation ${s}_{obs}$ . Approximation errors are induced by the distance measure and are proportional to the distance threshold $\u03f5$ . It is desirable to set $\u03f5$ as small as possible, but a small threshold will increase the simulation time. This is a trade-off between the accuracy and the efficiency (simulation time). According to recent results on asymptotic properties of ABC [8] [9] , assuming that the summary statistics follow the central limit theorem, the convergence rate of ABC when accepted sample size $N\to \infty $ is depended on the behavior of $\mu =\u03f5{d}_{N}$ , where $\u03f5$ is the threshold above and the ${d}_{N}$ is defined as of same magnitude of $eigen\left({\Sigma}_{N}\right)$ , the eigenvalues of the covariance matrix of the summary statistics as the function of N. In practice, if a specific sampling method is chosen, the threshold $\u03f5$ is constrained by the computing resources and time, and thus can be accordingly determined. The design of summary statistics then remains the most versatile and difficult part in developing an efficient ABC algorithm. To avoid the “curse of dimensionality”, summary statistics should be low dimensional in addition of sufficiency.

A vast body of literature of ABC has been published. Many are devoted to reduce the sampling error by using more advanced sampling methods, from simple Rejection method [10] , Markov Chain Monte Carlo (MCMC) [11] to more sophisticated methods like sequential Monte Carlo [3] [12] and adaptive sequential Monte Carlo methods [13] .

In this paper, we focus on the problem of summary statistics. In early works of ABC, summary statistics are chosen by domain experts in an ad-hoc manner. It is manageable if the dimensionality is small which the model is well understood by the experts. But choosing a set of appropriate summary statistics is much more difficult in complex models. To address this problem, a set of redundant summary statistics are constructed as initial summary statistics; dimension reduction methods are then applied yielding a set of low dimensional summary statistics while persevering the information.

Many dimension reduction methods have been proposed for ABC. Entropy based subset selection [14] , partial least square [15] , neural network [16] and expected posterior mean [17] are a few of them. The entropy based subset selection method works well in instances where the set of low dimensional summary statistics is a subset of the initial summary statistics, but the computational complexity increases exponentially with the size of the initial summary statistics. The partial least square and neural network methods aim to capture the nonlinear relationships of the original summary statistics. In both cases, a specific form of the regression function is assumed. A comprehensive review [18] discusses the methods mentioned above and compares the performances. While the results are a mixed bag, it is reported that the expected posterior mean method (Semi-automatic ABC) [17] produces relatively better results compared to the methods mentioned above in various experiments. It is a popular choice also due to its simplicity.

Semi-automatic ABC [17] uses the estimated posterior mean as summary statistics. A pilot run of ABC is conducted to identify the regions of parameter space with non-negligible probability mass. The posterior mean is then estimated using the simulated data from that region and is used as the summary statistics in a formal run of ABC. A linear model of the form: ${\theta}_{i}={\beta}^{\left(i\right)}f\left(y\right)+{\u03f5}_{i}$ is used in the estimation, where $f\left(y\right)$ are the possibly non-linear transforms of the data. For each application, the features $f\left(y\right)$ are carefully designed to achieve a good estimation. In practice, a vector of powers of the data $\left(y,{y}^{2},{y}^{3},{y}^{4},\cdots \right)$ is often used as noted in [17] .

To provide a principled way of designing the regression function, capturing the higher order non-linearity and realizing an automatic construction of summary statistics, we introduce the kernel based sufficient dimension reduction method as an extension of the linear projection based Semi-automatic ABC. This dimension reduction method is a localized version of gradient based kernel dimension reduction (GKDR) [19] . GKDR estimates the projection matrix onto the sufficient subspace by extracting the eigenvectors of the kernel derivatives matrices in the reproducing kernel Hilbert spaces (RKHS). We give a brief review of this method in Section 2. In addition to the GKDR, in which the estimation averages over all data points to reduce variance, a localized GKDR is proposed by averaging over a small neighborhood around the observation in ABC. Each point is weighted using a distance metric measuring the difference between the simulated data and the observation. The idea is similar to role of the distance kernel function in (1). Another proposal is to use different summary statistics for different parameters. Note that sufficient subspace for different parameters can be different, depending on the particular problem. In these cases, applying separated dimension reduction procedures yield better estimations of the parameter.

The proposed method gives competitive results in comparison with Semi-automatic ABC [17] when using simple rejection sampling. Substantial improvements are reported in the sequential Monte Carlo cases, where threshold $\u03f5$ are pushed to as small as possible to isolate the performance of summary statistics from the Monte Carlo errors.

The paper is organized as follows. In Section 2, we review GKDR and introduce its localized modification followed by discussions of computation considerations. In Section 3, we show simulation results for various commonly conducted ABC experiments, and compare the proposed method with the Semi-automatic ABC.

2. Local Kernel Dimension Reduction

In this section, we review the Gradient based Kernel Dimension Reduction (GKDR) and propose the modified Local GKDR (LGKDR). Discussions are given at the end of this section.

2.1. Gradient based kernel Dimension Reduction

Given observation $\left(s\mathrm{,}\theta \right)$ , where $s\in {\mathbb{R}}^{m}$ are initial summary statistics and $\theta \in \mathbb{R}$ is the parameter to be estimated in a specific ABC application. Assuming that there is a d-dimensional subspace $U\subset {\mathbb{R}}^{d}$ , $d<m$ such that

$\theta \perp s|{B}^{\text{T}}s\mathrm{,}$ (2)

where $B=\left({\beta}_{1}\mathrm{,}\cdots \mathrm{,}{\beta}_{d}\right)$ is the orthogonal projection matrix from ${\mathbb{R}}^{m}$ to ${\mathbb{R}}^{d}$ . The columns of B spans U and ${B}^{\text{T}}B={I}_{d}$ . Condition (2) shows that given ${B}^{\text{T}}s$ , $\theta $ is independent of the initial summary statistics s. It is then sufficient to use d dimensional constructed vector $z={B}^{\text{T}}s$ as the summary statistics. This subspace U is called effective dimension reduction (EDR) space [20] in classical dimension reduction literatures. While there are a tremendous amount of published works about estimating the EDR space, in this paper, we propose to use GKDR in which no strong assumption of marginal distribution or variable type is made. The following is a brief review of GKDR, and for further details, we refer to [19] [21] [22] .

Let $B=\left({\beta}_{1}\mathrm{,}\cdots \mathrm{,}{\beta}_{d}\right)\in {\mathbb{R}}^{m\times d}$ be the projection matrix to be estimated, and $z={B}^{\text{T}}s$ . We assume (2) is true and $p\left(\theta |s\right)=\stackrel{\u02dc}{p}\left(\theta |z\right)$ . The gradient of the regression function is denoted by ${\nabla}_{s}$ as

${\nabla}_{s}=\frac{\partial E\left(\theta |s\right)}{\partial s}=\frac{\partial E\left(\theta |z\right)}{\partial s}=B\frac{\partial E\left(\theta |z\right)}{\partial z}$ (3)

which shows that the gradients are contained in the EDR space. Given the following estimator

$M=E\left[{\nabla}_{s}{\nabla}_{s}^{\text{T}}\right]=BA{B}^{\text{T}}$ ,

where

${A}_{ij}=E\left[E\left(\theta |{\beta}_{i}^{\text{T}}s\right)E\left(\theta |{\beta}_{j}^{\text{T}}s\right)\right]$ , $i,j=1,\cdots ,d$ .

The projection directions $\beta $ lie in the subspace spanned by the eigenvectors of M. It is then possible to estimate the projection directions using eigenvalue decomposition. In GKDR, the matrix M is estimated by the kernel method described below.

Let $\Omega $ be an non-empty set, a real valued kernel $k\mathrm{:}\Omega \times \Omega \to \mathbb{R}$ is called positive definite if ${\sum}_{i,j=1}^{n}}\text{\hspace{0.05em}}{c}_{i}{c}_{j}k\left({x}_{i}\cdot {x}_{j}\right)\ge 0$ for any ${x}_{i}\in \Omega $ and ${c}_{i}\in \mathbb{R}$ . Given a positive definite kernel k, there exists a unique reproducing kernel Hilbert space (RKHS) H associated with it such that: (1) $k\left(\cdot \mathrm{,}x\right)$ spans H; (2) H has the reproducing property [23] : for all $x\in \Omega $ and $f\in H$ , $\langle f\mathrm{,}k\left(\cdot \mathrm{,}x\right)\rangle =f\left(x\right)$ .

Given training sample $\left({s}_{1}\mathrm{,}{\theta}_{1}\right)\mathrm{,}\cdots \mathrm{,}\left({s}_{n}\mathrm{,}{\theta}_{n}\right)$ ,

let ${k}_{S}\left({s}_{i},{s}_{j}\right)=\mathrm{exp}\left(-{\Vert {s}_{i}-{s}_{j}\Vert}^{2}/{\sigma}_{S}^{2}\right)$ and ${k}_{\Theta}\left({\theta}_{i},{\theta}_{j}\right)=\mathrm{exp}\left(-{\Vert {\theta}_{i}-{\theta}_{j}\Vert}^{2}/{\sigma}_{\Theta}^{2}\right)$

be Gaussian kernels defined on ${\mathbb{R}}^{m}$ and $\mathbb{R}$ , associated with RKHS ${H}_{S}$ and ${H}_{\Theta}$ , respectively. With assumptions of boundedness of the conditional expectation $E\left(\theta |S=s\right)$ and the average gradient functional with respect to z, the functional can be estimated using cross-covariance operators defined in RKHS and the consistency of their empirical estimators are guaranteed [22] . Using these estimators, we construct a covariance matrix of average gradients as

${\stackrel{^}{M}}_{n}\left({s}_{i}\right)=\nabla {k}_{S}{\left({s}_{i}\right)}^{\text{T}}{\left({G}_{S}+n{\u03f5}_{n}{I}_{n}\right)}^{-1}{G}_{\Theta}{\left({G}_{S}+n{\u03f5}_{n}{I}_{n}\right)}^{-1}\nabla {k}_{S}\left({s}_{i}\right)$ (4)

where ${G}_{S}$ and ${G}_{\Theta}$ are Gram matrices ${k}_{S}\left({s}_{i}\mathrm{,}{s}_{j}\right)$ and ${k}_{\Theta}\left({\theta}_{i}\mathrm{,}{\theta}_{j}\right)$ , respectively. $\nabla {k}_{S}\in {\mathbb{R}}^{n\times m}$ is the derivative of the kernel ${k}_{S}\left(\cdot \mathrm{,}{s}_{i}\right)$ with respect to ${s}_{i}$ , and ${\u03f5}_{n}$ is a regularization coefficient. This matrix can be viewed as the straight forward extension of covariance matrix in principle component analysis (PCA); the data here are the features in RKHS representing the gradients instead of the gradients in their original real space.

The averaged estimator $\stackrel{\u02dc}{M}=1/n{\displaystyle {\sum}_{i=1}^{n}}\text{\hspace{0.05em}}{\stackrel{^}{M}}_{n}\left({s}_{i}\right)$ is calculated over the training sample $\left({s}_{1}\mathrm{,}{\theta}_{1}\right)\mathrm{,}\cdots \mathrm{,}\left({s}_{n}\mathrm{,}{\theta}_{n}\right)$ . Finally, the projection matrix B is estimated by taking d eigenvectors corresponding to the d largest eigenvalues of $\stackrel{\u02dc}{M}$ just like in PCA, where d is the dimension of the estimated subspace.

2.2. Local Modifications

As discussed above, the estimator $\stackrel{\u02dc}{M}$ is obtained by averaging over the training sample ${s}_{i}$ . When applied to ABC, since only one observation sample is available, we propose to generate a set of training data using the generating model and introduce a weighting mechanism to concentrate on the local region around the observation and avoid regions with low probability density.

Given simulated data ${X}_{1}\mathrm{,}\cdots \mathrm{,}{X}_{N}$ and a weight kernel ${K}_{w}\mathrm{:}{\mathbb{R}}^{m}\to \mathbb{R}$ , we propose the local GKDR estimator

$\stackrel{\u02dc}{M}=\frac{1}{N}{\displaystyle \underset{i=1}{\overset{N}{\sum}}}\text{\hspace{0.05em}}{K}_{w}\left({X}_{i}\right)\stackrel{^}{M}\left({X}_{i}\right)$ (5)

where $\stackrel{^}{M}$ is $m\times m$ matrix and ${K}_{w}\left({X}_{i}\right)$ is the corresponding weight. ${K}_{w}\left(x\right)$ can be any weighting kernel. In the numerical experiments, a triweight kernel is used, which is written as

${K}_{w}\left({X}_{i}\right)={\left(1-{u}^{2}\right)}^{3}{1}_{u<1},\text{\hspace{1em}}u=\frac{{\Vert {X}_{i}-{X}_{obs}\Vert}^{2}}{{\Vert {X}_{th}-{X}_{obs}\Vert}^{2}}$

where ${1}_{u<1}$ is the indicator function, and ${X}_{th}$ is the threshold value which determines the bandwidth. The normalization term of the triweight kernel is omitted since it does not change the eigenvectors we are estimating. The bandwidth determined by ${X}_{th}$ is chosen by empirical experiments and will be described in 0. The Triweight kernel is chosen for its concentration in the central area than other “bell shaped” kernels and works well in our experiments. Other distance metrics could be used instead of squared distance.

The idea of the proposed estimator is similar to the ABC estimator itself. Without the weighting and the concentration, the estimator will be averaged over all ${X}_{i}$ , regardless of the distribution it is generated from. Since the basic assumption of GKDR is that the response variable Y should come from the same distribution, we cannot expect good result simply using all samples without proper weighting. The form of the estimator is the classic Nadaraya-Watson estimator without normalization.

Description of LGKDR algorithm is given in Algorithm 1. Procedure Generate Sample is the algorithm to generate sample with parameter as input. Procedure LGKDR is the algorithm to calculate matrix $M\left({X}_{i}\right)$ as given in (4) and (5).

Since the dimension reduction procedure is done before the sampling, it works as a pre-processing unit to the main ABC sampling procedure. It can be embodied in any ABC algorithm using different sampling algorithms. In this paper, the rejection sampling method is firstly employed for its simplicity and low computation complexity as a baseline. Further results on Sequential Monte Carlo ABC are also reported to illustrate the advantage of the purposed method.

Algorithm 1. LGKDR.

In these experiments, the distance thresholds are pushed to as small as possible to suppress the Monte Carlo errors and isolate the effects of summary statistics alone.

2.3. Separated Dimension Reduction

In some problems, not all summary statistics are necessary for every parameter. For example, in the M/G/1 Queue model, the parameter θ_{3} that controls the distribution of the inter-arrival time are not related to the parameters θ_{1} and θ_{2}, which jointly determine the distribution of the service time. It can be expected that using different sets of summary statistics for θ_{3} with smaller dimensionality would improve the sampling efficiency. To do that, the information that is unrelated to the particular parameter is dropped in the dimensional reduction in exchange of lower dimensionality. The experiments show that better results can be achieved using these settings.

More precisely, LGKDR incorporates information of θ in the calculation of gradient matrix $\stackrel{\u02dc}{M}$ . If θ is a vector, the relation of different elements of θ is contained in the gram matrix ${G}_{\theta}$ as in (4). Separate estimations concentrate on the information of the specific parameter rather than the whole vector. As shown in the experiments in Section 3.2, it can construct significantly more informative summary statistics in some problems by means of reducing estimation error.

For Semi-automatic ABC [17] , the summary statistic for each parameter is the estimated posterior mean, thus naturally separated. However, if these 1 dimensional vectors are used for each parameter separately, the results are not every good. For best subset selection methods [15] [24] , summary statistics are chosen as the best subset of the original summary statistics using mutual information or sufficiency criterion. It can also be extended to a separated selection procedure. In LGKDR, we simply construct summary statistics by using only the particular parameter as the response variable.

2.4. Discussion on Hyper Parameters

In this section, we discuss the parameters for LGKDR. Parameters for the ABC sampling will be discussed in the experiments section.

First, the bandwidth of the weighting kernel affects the accuracy of LGKDR. By selecting a large bandwidth, the weights of directions spread out a larger region around the observation points. A small bandwidth concentrates the weights on the directions estimated close to the observation sample. In our experiments, a bandwidth corresponding to an acceptance rate of approximately 10% gives a good result and is used throughout the experiments. The same parameter is set for the Semi-automatic ABC as well for the similar purpose. A more principled method for choosing bandwidth, like cross validation, could be applied to select the acceptance rate if the corresponding computation complexity is affordable.

The bandwidth of the Gaussian kernels ${\sigma}_{S}$ , ${\sigma}_{\Theta}$ and the regularization parameter ${\u03f5}_{n}$ are crucial to all kernel based methods. The first two determine the function spaces associated with the positive definite kernels and the latter affects the convergence rate (see [25] ). In this paper, cross validation is adopted to select the proper parameters. In the cross validation, for each set of candidate parameters, the summary statistics are constructed using a simulated observation ${\theta}_{obs}\mathrm{,}{s}_{obs}$ , a training set $\left({\theta}_{\text{training}}\mathrm{,}{S}_{\text{training}}\right)$ and a test set $\left({\theta}_{\text{test}}\mathrm{,}{S}_{\text{test}}\right)$ . A small pilot run of rejection ABC is performed and the estimation of parameters are calculated by kNN regression of ${\theta}_{\text{test}}$ with the ${S}_{\text{test}}$ . K is set to 5 in all cases. The parameters that yield the smallest least error between the ${\theta}_{\text{test}}$ and ${\theta}_{obs}$ are chosen. The final summary statistics are then constructed and passed to the formal run of ABC.

2.5. Computational Complexity

Computational complexity is an important concern of ABC methods. LGKDR requires matrix inversion, solving eigenvalue problems and the cross validation procedure. In this paper, training sample size are fixed to
$2\times {10}^{3}$ and 10^{4} for LGKDR and Semi-automatic ABC, respectively. Under this setting, the total computational time of LGKDR are about 10 times over the linear regression. We believe that it is a necessary price to pay if the non-linearities between the summary statistics are strong. Being unable to capture these information in dimensional reduction step will induce a poor sampling performance and a biased estimation. Also, although the cross validation procedure takes the majority of computation time in LGKDR, it needs to be performed only once for each problem. Once the parameters are chosen, the computation complexity of LGKDR is comparable to the linear-type algorithms. Overall, the computational complexity depends on both the dimensional reduction step and the sampling step. For complex models like population genetics, sampling is significantly more time consuming than the dimension reduction procedure.

3. Experiments

In this section, we investigate three problems to demonstrate the performance of LGKDR. Our method is compared to the classical ABC using initial summary statistics and the Semi-automatic ABC [17] using estimated posterior means. In the first problem, we discuss a population genetics model, which was investigated in many ABC literatures. We adopt the initial summary statistics used in [26] , and rejection ABC is used as the sampling algorithm. In the second problem, a M/G/1 stochastic queue model which was used in [16] and [17] are discussed. While the model is very simple, the likelihood function could not be trivially computed. In the last experiment we explore the Ricker model as discussed in [17] and [27] . The latter two problems are investigated by both Rejection ABC and sequential Monte Carlo ABC method (SMC ABC) [13] , the first problem is omitted from SMC ABC because it involves repeated calling an outside program for simulation and is too time consuming for SMC ABC.

3.1. Implementation Details

The Rejection ABC is described in Algorithm 2 and the SMC ABC is shown in Algorithm 3. The hyper-parameters used in LGKDR are set as discussed in section 2.4. We use a modified code from [13] and R package “Easyabc” [28] in our SMC implementation and would like to thank the corresponding authors. Gaussian kernels are used in all the LGKDR algorithms. The detailed specifications of Semi-automatic ABC will be described in each experiment.

For evaluation of the experiments conducted using rejection ABC, a set of parameters ${\theta}^{j}$ where $j\in \mathrm{1,}\cdots \mathrm{,}{N}_{obs}$ and the corresponding observation sample ${Y}_{obs}^{j}$ are simulated from the prior and the conditional probability $p\left(Y\mathrm{|}\theta \right)$ , respectively, and are used as the observations. For each experiment, we fix the total number of simulations N and the number of accepted sample ${N}_{acc}$ . The sample used for rejection are then generated and fixed for all three methods. Using this setting, although the randomness of the simulation program is contained in the sample; yet since the sample used for each method is same and fixed, we can ignore the randomness in the simulation program and compare the methods more fairly. Also, by using fixed set of sample, we can accurately set the acceptance rate for each method, which is the most influential parameter for the estimation accuracies. For evaluation, the Mean squared error (MSE) over the accepted parameters ${\stackrel{^}{\theta}}_{i}^{j}$ and observation ${\theta}^{j}$ are defined as

$MS{E}_{j}=\frac{1}{{N}_{acc}}\left({\displaystyle \underset{i=1}{\overset{{N}_{acc}}{\sum}}}{\left({\theta}^{j}-{\stackrel{^}{\theta}}_{i}^{j}\right)}^{2}\right)$

The Averaged Mean Square Error (AMSE) is then computed as the average over $MS{E}_{j}$ of each observation pair $\left({\theta}^{j}\mathrm{,}{Y}_{obs}^{j}\right)$ as

$AMSE=\frac{1}{{N}_{obs}}{\displaystyle \underset{j=1}{\overset{{N}_{obs}}{\sum}}}MS{E}_{j}.$

It is used as the benchmark for Rejection ABC. Because of the difference of computation complexity, for fairness of comparison, the acceptance rates are set differently. For LGKDR, the acceptance rate is set to 1%; while for semi-automatic ABC and original ABC, the acceptance rates are set to 0.1%. The training sample and simulated sample are generated from the same prior and remain fixed.

Algorithm 2. Rejection-ABC.

Algorithm 3. Sequential-ABC.

For SMC ABC, to get to as small tolerance as possible, the simulation time is different for different method. AMSE is used as the benchmark for the accuracy of the queue model. In the case of Ricker model, due to the extremely long simulation time, only one observation is used and MSE is used instead in this case. Computation time is reported for both experiments.

3.2. Parameter Settings

Several parameters are necessary in running the simulations in ABC. For Rejection ABC, the total number of samples N and the accepted number of samples ${N}_{acc}$ are set before the simulation as mentioned above. For Semi-automatic ABC and LGKDR, a training set needs to be simulated to calculate the projection matrix. For LGKDR, a further testing set is also generated for cross validation purposes. The value of these parameters is reported in the corresponding experiments. The simulation time for generating these sample set are negligible compared to the main ABC, especially in SMC ABC. For LGKDR, another important parameter is the target dimensionality D. There are no theoretically sound methods available to determine the intrinsic dimensionality of the initial summary statistics. In practice, since the projection matrix is simply the extracted eigenvectors of the matrix M as in (5) ordered by the absolute value of the corresponding eigenvalues, the dimensionality is just the number of the eigenvectors been used. In our experiments, we run several rejection ABC procedures using different B on a small fixed test set, and then fix the dimensionality. Since the test set is fixed and the different projection matrices are directly accessible, this procedure is very fast. A starting point can be set by preserving 70% of the largest eigenvalues in magnitude and it usually works well. There are a large collection of literatures on how to choose the number of principle components in PCA, which is similar to our problem, for example, see [29] and reference therein.

3.3. Population Genetics

Analysis of population genetics is often based on the coalescent model [30] . A constant population model is used in simple situations, where the population is assumed unchanged across generations. The parameter of interests in this case is the scaled mutation rate θ, which controls the probability of mutation between each generation. The detailed introduction of coalescent models can be found in [31] . Various studies [11] [12] [32] have been conducted in population genetics following different sampling algorithms. In this study, we adopt the setting of kernel ABC [26] and compare the performance with ABC and Semi-automatic ABC.

100 chromosomes are sampled from a constant population $\left(N=10000\right)$ . The summary statistics are defined using the spectrum of the numbers of segregating sites, ${s}_{sfs}$ , which is a coarse-grained spectrum consisting of 7 bins based on the Sturges formula $\left(1+{\mathrm{log}}_{2}{S}_{seg}\right)$ . The frequencies were binned as follows: 0% - 8%, 8% - 16%, 16% - 24%, 24% - 32%, 32% - 40%, 40% - 48% and 48% - 100%, we use the uniform distribution $\theta ~\left[\mathrm{0,30}\right]$ in this study rather than the log-normal distribution in [26] . As ABC is often used for exploratory researches, we believe that the performance based on an uninformative prior is important for evaluating summary statistics. The program package ms is used to generate the sample, which is of common choice in literature of coalescent model [33] .

We test 3 typical scaled mutation rates 5, 8 and 10 rather than random draws from the prior. The results are averaged over 3 tests. A total number of 10^{6} sample is generated; 10^{5} sample is generated as the training sample for LGKDR and Semi-automatic ABC. Different acceptance rates are set for different methods as discussed above. We use
${s}_{sfs}$ as the summary statistics for both Semi-automatic ABC and LGKDR. Local linear regression is used as the regression function for the former. In LGKDR, the dimension is set to 2.

As shown in Table 1, the performance of both LGKDR and Semi-automatic

Table 1. Coalescent model.

ABC improve over original ABC method. LGKDR and Semi-automatic ABC achieve very similar results suggesting that the linear construction of summary statistics is sufficient for this particular experiment.

3.4. M/G/1 Queue Model

The M/G/1 model is a stochastic queuing model that follows the first-come-first-serve principle. The arrival of customers follows a Poisson process with intensity parameter λ. The service time for each customer follows an arbitrary distribution with fixed mean (G), and there is a single server (1). This model has an intractable likelihood function because of its iterative nature. However a simulation model with parameter $\left(\lambda \mathrm{,}\mu \right)$ can be easily implemented to simulate the model. It has been analyzed by ABC using various different dimension reduction methods as in [16] and [17] , with comparison to the indirect inference method. We only compare our method with Semi-automatic ABC, since it produces substantially better results then the other methods mentioned above.

The generative model of the M/G/1 model is specified by

${Y}_{n}=\{\begin{array}{l}{U}_{n}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{if}\text{\hspace{0.17em}}{{\displaystyle \sum}}_{i=1}^{n}\text{\hspace{0.05em}}{W}_{i}\le {{\displaystyle \sum}}_{i=1}^{n-1}\text{\hspace{0.05em}}{Y}_{i}\\ {U}_{n}+{{\displaystyle \sum}}_{i=1}^{n}\text{\hspace{0.05em}}{W}_{i}-{{\displaystyle \sum}}_{i=1}^{n-1}\text{\hspace{0.05em}}Y\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{if}\text{\hspace{0.17em}}{{\displaystyle \sum}}_{i=1}^{n}\text{\hspace{0.05em}}{W}_{i}>{{\displaystyle \sum}}_{i=1}^{n-1}\text{\hspace{0.05em}}{Y}_{i}{}_{i}\end{array}$

where ${Y}_{n}$ is the inter-departure time, ${U}_{n}$ is the service time for the nth customer, and ${W}_{i}$ is the inter-arrival time. The service time is uniformly distributed in interval $\left[{\theta}_{1}\mathrm{,}{\theta}_{2}\right]$ . The inter-arrival time follows an exponential distribution with rate ${\theta}_{3}$ . These configurations stay the same as [16] and [17] . We set uninformative uniform priors for ${\theta}_{1}\mathrm{,}{\theta}_{2}-{\theta}_{1}$ and ${\theta}_{3}$ as ${\left[\mathrm{1,10}\right]}^{2}\times \left[\mathrm{1,}1/3\right]$ .

For the rejection ABC, we simulate a set of 30 pairs of
$\left({\theta}_{1}\mathrm{,}{\theta}_{2}\mathrm{,}{\theta}_{3}\right)$ but avoid boundary values. They are used as the true parameters to be estimated. The total number of 10^{6} sample are generated. The posterior mean is estimated using the empirical mean of the accepted sample. The simulated sample is fixed across different methods for comparison.

We use the quantiles of the sorted inter-departure time
${Y}_{n}$ as the exploration variable of the regression model
$f\left(y\right)$ as in [17] . The powers of the variables are not included as no significant improvements are reported. A pilot ABC procedure is conducted using a fixed training sample set of size 10^{4}. Local linear regression is used rather than a simple linear regression for better results. For LGKDR, we use the same quantiles as initial summary statistics for dimension reduction as in Semi-automatic ABC. The number of accepted training sample is
$2\times {10}^{3}$ in for the LGKDR. The dimension is manually set to 4, as small as the performance is not degraded.

The experimental results of Rejection ABC are shown in Table 2. “LGKDR” refers to the LGKDR that does not use separated estimation. “focus 1” denotes the separated dimension reduction for parameter θ_{1}, and the following rows are of similar form. Compared to ABC, “Semi-automatic ABC” gives substantial

Table 2. M/G/1 queue model, rejection ABC.

improvement on the estimation of θ_{1}; the other parameters show similar or slightly worse results. LGKDR method improves over ABC on θ_{1} and θ_{2}, but the estimation of θ_{1} is not as good as in Semi-automatic ABC. However, after applying separated estimation, θ_{1} presents a substantial improvement compared to Semi-automatic ABC. Separated estimations for θ_{2} and θ_{3} give no improvements. It suggests that the sufficient dimension reduction subspace for θ_{1} is different from the others and a separated estimation of θ_{1} is necessary.

For SMC ABC, a set of 10 pairs of parameters are generated, and the results on SMC and LGKDR are reported. All other settings are same as the rejection ABC. We omit the results of using Semi-automatic ABC since the sequential chain did not converge properly using these summary statistics and the induced errors were too large to be meaningful. In SMC ABC, two experiments are reported: SMC ABC1 and SMC ABC2. The number of particles are set to
$2\times {10}^{4}$ and 10^{5}, respectively. In LGKDR, the number of particles are set to
$2\times {10}^{4}$ and the training sample size for the calculation of projection matrix is
$2\times {10}^{3}$ , accepted from a training set of size
$4\times {10}^{4}$ . The dimensionality is set to 5. Cross validation is conducted using a test set of size
$2\times {10}^{4}$ .

Results of SMC ABC are shown in Table 3. AMSEs are reported. The simulation time is shown as well. The computational time of constructing LGKDR summary statistics is included in the total simulation time and is listed in the bracket. The results show that LGKDR gives better results of parameter θ_{1} and θ_{2}, using less time compared to SMC ABC with set E2. The estimation of θ_{3} is worse but the difference is small (0.005). Focusing on θ_{3} produces an estimation as good as in SMC ABC.

3.5. Ricker Model

Chaotic ecological dynamical systems are difficult for inference due to its dynamic nature and the noises presented in both the observations and the process. Wood [27] addresses this problem using a synthetic likelihood inference method. Fearnhead [17] tackles the same problem with a similar setting using the Semi-automatic ABC and reports a substantial improvement over other methods. In this experiment, we adopt the same setting and apply LGKDR with various configurations.

Table 3. M/G/1 queue model, SMC ABC.

A prototypic ecological model with Richer map is used as the generating model in this experiment. A time course of a population ${N}_{t}$ is described by

${N}_{t+1}=r{N}_{t}{\text{e}}^{-{N}_{t}+{e}_{t}}$ (6)

where ${e}_{t}$ is the independent noise term with variance ${\sigma}_{e}^{2}$ , and r is the growth rate parameter controlling the model dynamics. A Poisson observation y is made with mean $\varphi {N}_{t}$ . The parameters to infer are $\theta =\left(\mathrm{log}\left(r\right),{\sigma}_{e}^{2},\varphi \right)$ . The initial state is ${N}_{0}=1$ and observations are ${y}_{51}\mathrm{,}{y}_{52}\mathrm{,}\cdots \mathrm{,}{y}_{100}$ .

The original summary statistics used by Wood [27] are the observation mean $\stackrel{\xaf}{y}$ , auto-covariances up to lag 5, coefficients of a cubic regression of the ordered difference ${y}_{t}-{y}_{t-1}$ on the observation sample, estimated coefficients for the model ${y}_{t+1}^{0.3}={\beta}_{1}{y}_{t}^{0.3}+{\beta}_{2}{y}_{t}^{0,6}+{\u03f5}_{t}$ and the number of zero observations ${\sum}_{t=51}^{100}}\text{\hspace{0.05em}}1\left({y}_{t}=0\right)$ . This set is denoted as E0 as in [17] . Additional two sets of summary statistics are defined for Semi-automatic ABC. The smaller E1 contains E0 and

${\sum}_{t=51}^{100}}\text{\hspace{0.05em}}1\left({y}_{t}=j\right)$ for $1\le j\le 4$ , logarithm of sample variance, $\mathrm{log}\left({\displaystyle {\sum}_{t=51}^{100}}\text{\hspace{0.05em}}{y}_{t}^{j}\right)$

for $2\le j\le 6$ and auto-correlation to lag 5. Set E2 further includes time-ordered observation ${y}_{t}$ , magnitude-ordered observation

${y}_{\left(t\right)}$ , ${y}_{t}^{2}$ , ${y}_{\left(t\right)}^{2}$ , $\left\{\mathrm{log}\left(1+{y}_{t}\right)\right\}$ , $\left\{\mathrm{log}\left(1+{y}_{\left(t\right)}\right)\right\}$ ,

time difference $\Delta {y}_{t}$ and magnitude difference $\Delta {y}_{\left(t\right)}$ . Additional statistics are added to explicitly explore the non-linear relationships of the original summary statistics and are carefully designed.

In Rejection ABC, we use set E0 for ABC without dimension reduction since the dimension of the larger sets induces severely decreased performance. Sets E1 and E2 are used for Semi-automatic ABC as in [17] . In LGKDR, we tested sets E0 and E1 in different experiments. The result on E2 is omitted as the result is similar with using the smaller set of statistics, indicating that manually designed non-linear features are unnecessary for LGKDR. The sufficient dimension is set to 5; a smaller value induces substantial worse results. We simulated a set of 30 parameters, a fixed simulated sample of size 10^{7} for all the methods and a training sample of size 10^{6}, a test sample of size 10^{5} for LGKDR and Semi-automatic ABC. The values of
$\mathrm{log}\left(r\right)$ and ϕ are fixed as in [17] , and
$\mathrm{log}\left({\sigma}_{e}\right)$ are drawn from an uninformative uniform distribution on
$\left[\mathrm{log}\left(0.1\right),0\right]$ .

The results are shown in Table 4. The performance of Semi-automatic ABC

Table 4. Ricker model, rejection ABC.

using the bigger set E2 is similar to ABC but is substantially worsen with set E1, suggesting that the non-linear information are essential for an accurate estimation in this model. These features are needed to be explicitly designed and incorporated into the regression function for Semi-automatic ABC. LGKDR using summary statistics set E0 gives similar results compared with ABC. Using larger set E1, the accuracy of $\mathrm{log}\left(r\right)$ is slightly worse than using set E0, but the accuracy of ${\sigma}_{e}$ and ϕ present substantial improvements. The additional gains of separate constructions of summary statistics in this model are mixed for different parameter, $\mathrm{log}\left(r\right)$ and ϕ show very small improvements but ${\sigma}_{e}$ gets improvements in both cases. Overall, we recommend using separate constructions for the potential improvements if the additional computational costs are affordable.

In SMC ABC, we use set E0 for the SMC, E1 for LGKDR and both E1 and E2 for Semi-automatic ABC. Number of particles is set to $5\times {10}^{3}$ for all experiments. Other parameters are the same as in Rejection ABC. Only one set of parameter is used and the time of simulation is set to achieve a tolerance which is as small as possible. Simulation time is reported with computational time of LGKDR included. We show several results with different settings of dimensionality in LGKDR to illustrate the influence of that hyper-parameter. As can be observed in the results, if the dimensionality is set too high, the efficiency of the SMC chain is decreased; if it is set too low, more bias are induced in the estimated posterior mean suggesting loss of information in the constructed summary statistics. In this experiment, dimensionality 6 is chosen by counting the number of largest 70% eigenvalues in magnitude as discussed before.

The results are shown in Table 5. It shows that the LGKDR can achieve the similar results as Semi-automatic ABC using only 1/10 of the simulation time.

4. Conclusions

We proposed the LGKDR algorithm for automatically constructing summary

Table 5. Ricker model, SMC ABC.

statistics in ABC. The proposed method assumes no explicit functional forms of the regression functions and the marginal distributions, and implicitly incorporates higher order moments up to infinity. As long as the initial summary statistics are sufficient, our method can guarantee to find a sufficient subspace with low dimensionality. While the involved computation is more expensive than the simple linear regression used in Semi-automatic ABC, the dimension reduction is conducted as the pre-processing step and the cost may not be dominant in comparison with a computationally demanding sampling procedure during ABC. Another advantage of LGKDR is the avoidance of manually designed features; only initial summary statistics are required. With the parameter selected by the cross validation, construction of low dimensional summary statistics can be performed as in a black box. For complex models in which the initial summary statistics are hard to identify, LGKDR can be applied directly to the raw data and identify the sufficient subspace. We also confirm that construction of different summary statistics for different parameters improves the accuracy significantly.

Acknowledgements

Sincere thanks to the members of OJS for their professional performance, and special thanks to managing editor Alline Xiao for a rare attitude of high quality.

Conflicts of Interest

The authors declare no conflicts of interest.

[1] |
Pritchard, J.K., Seielstad, M.T., Perez-Lezaun, A. and Feldman, M.W. (1999) Population Growth of Human Y Chromosomes: A Study of Y Chromosome Microsatellites. Molecular Biology and Evolution, 16, 1791-1798.
https://doi.org/10.1093/oxfordjournals.molbev.a026091 |

[2] | Beaumont, M.A., Zhang, W. and Balding, D.J. (2002) Approximate Bayesian Computation in Population Genetics. Genetics, 162, 2025-2035. |

[3] |
Toni, T., Welch, D., Strelkowa, N., Ipsen, A. and Stumpf, M.P. (2009) Approximate Bayesian Computation Scheme for Parameter Inference and Model Selection in Dynamical Systems. Journal of the Royal Society Interface, 6, 187-202.
https://doi.org/10.1098/rsif.2008.0172 |

[4] |
Csillry, K., Blum, M.G.B., Gaggiotti, O.E. and Franois, O. (2010) Approximate Bayesian Computation (ABC) in Practice. Trends in Ecology and Evolution, 25, 410-418. https://doi.org/10.1016/j.tree.2010.04.001 |

[5] |
Grelaud, A., Robert, C.P., Marin, J.M., Rodolphe, F. and Taly, J.F. (2009) ABC Likelihood-Free Methods for Model Choice in Gibbs Random Fields. Bayesian Analysis, 4, 317-335. https://doi.org/10.1214/09-BA412 |

[6] |
Bertorelle, G., Benazzo, A. and Mona, S. (2010) ABC as a Flexible Framework to Estimate Demography over Space and Time: Some Cons, Many Pros. Molecular Ecology, 19, 2609-2625. https://doi.org/10.1111/j.1365-294X.2010.04690.x |

[7] |
Blum, M.G.B. (2010) Approximate Bayesian Computation: A Nonparametric Perspective. Journal of the American Statistical Association, 105, 1178-1187.
https://doi.org/10.1198/jasa.2010.tm09448 |

[8] | Frazier, D.T., Martin, G.M., Robert, C.P. and Rousseau, J. (2016) Asymptotic Properties of Approximate Bayesian Computation. ArXiv e-prints. |

[9] | Li, W. and Fearnhead, P. (2015) On the Asymptotic Efficiency of ABC Estimators. ArXiv e-prints. |

[10] |
Moore, W.S. (1995) Inferring Phylogenies from Mtdna Variation-Mitochondrial-Gene Trees Versus Nuclear-Gene Trees. Evolution, 49, 718-726.
https://doi.org/10.2307/2410325 |

[11] | Marjoram, P., Molitor, J., Plagnol, V. and Tavare, S. (2003) Markov Chain Monte Carlo without Likelihoods. Proceedings of the National Academy of Sciences of the United States of America, 100, 15324-15328. |

[12] |
Sisson, S.A., Fan, Y. and Tanaka, M.M. (2007) Sequential Monte Carlo without Likelihoods. Proceedings of the National Academy of Sciences of the United States of America, 104, 1760-1765. https://doi.org/10.1073/pnas.0607208104 |

[13] |
Del Moral, P., Doucet, A. and Jasra, A. (2012) An Adaptive Sequential Monte Carlo Method for Approximate Bayesian Computation. Statistics and Computing, 22, 1009-1020. https://doi.org/10.1007/s11222-011-9271-y |

[14] | Joyce, P. and Marjoram, P. (2008) Approximately Sufficient Statistics and Bayesian Computation. Statistical Applications in Genetics and Molecular Biology, 7, Article 26. |

[15] |
Wegmann, D., Leuenberger, C. and Excoffier, L. (2009) Efficient Approximate Bayesian Computation Coupled with Markov Chain Monte Carlo without Likelihood. Genetics, 182, 1207-1218. https://doi.org/10.1534/genetics.109.102509 |

[16] |
Blum, M.G.B. and Franccois, O. (2010) Non-Linear Regression Models for Approximate Bayesian Computation. Statistics and Computing, 20, 63-73.
https://doi.org/10.1007/s11222-009-9116-0 |

[17] |
Fearnhead, P. and Prangle, D. (2012) Constructing Summary Statistics for Approximate Bayesian Computation: Semi-Automatic Approximate Bayesian Computation. Journal of the Royal Statistical Society Series B: Statistical Methodology, 74, 419-474. https://doi.org/10.1111/j.1467-9868.2011.01010.x |

[18] |
Blum, M.G.B., Nunes, M.A., Prangle, D. and Sisson, S.A. (2013) A Comparative Review of Dimension Reduction Methods in Approximate Bayesian Computation. Statistical Science, 28, 189-208. https://doi.org/10.1214/12-STS406 |

[19] | Fukumizu, K., Bach, F.R. and Jordan, M.I. (2004) Dimensionality Reduction for Supervised Learning with Reproducing Kernel Hilbert Spaces. Journal of Machine Learning Research, 5, 73-99. |

[20] |
Li, K.C. (1991) Sliced Inverse Regression for Dimension Reduction. Journal of the American Statistical Association, 86, 316-327.
https://doi.org/10.1080/01621459.1991.10475035 |

[21] |
Fukumizu, K., Bach, F.R. and Jordan, M.I. (2009) Kernel Dimension Reduction in Regression. The Annals of Statistics, 37, 1871-1905.
https://doi.org/10.1214/08-AOS637 |

[22] |
Fukumizu, K. and Leng, C. (2014) Gradient-Based Kernel Dimension Reduction for Regression. Journal of the American Statistical Association, 109, 359-370.
https://doi.org/10.1080/01621459.2013.838167 |

[23] |
Aronszajn, N. (1950) Theory of Reproducing Kernels. Transactions of the American Mathematical Society, 68, 337-337.
https://doi.org/10.1090/S0002-9947-1950-0051437-7 |

[24] | Nunes, M. and Balding, D.J. (2010) On Optimal Selection of Summary Statistics for Approximate Bayesian Computation. Statistical Applications in Genetics and Molecular Biology, 9, Article 34. |

[25] |
Smola, A.J., Scholkopf, B. and Müller, K.R. (1998) The Connection between Regularization Operators and Support Vector Kernels. Neural Networks, 11, 637-649.
https://doi.org/10.1016/S0893-6080(98)00032-X |

[26] |
Nakagome, S., Fukumizu, K. and Mano, S. (2013) Kernel Approximate Bayesian Computation in Population Genetic Inferences. Statistical Applications in Genetics and Molecular Biology, 12, 667-678. https://doi.org/10.1515/sagmb-2012-0050 |

[27] |
Wood, S.N. (2010) Statistical Inference for Noisy Nonlinear Ecological Dynamic Systems. Nature, 466, 1102-1104. https://doi.org/10.1038/nature09319 |

[28] |
Jabot, F., Faure, T. and Dumoulin, N. (2013) Easyabc: Performing Efficient Approximate Bayesian Computation Sampling Schemes Using R. Methods in Ecology and Evolution, 4, 684-687. https://doi.org/10.1111/2041-210X.12050 |

[29] |
Valle, S., Li, W. and Qin, S.J. (1999) Selection of the Number of Principal Components: The Variance of the Reconstruction Error Criterion with a Comparison to Other Methods. Industrial & Engineering Chemistry Research, 38, 4389-4401.
https://doi.org/10.1021/ie990110i |

[30] |
Hudson, R.R. (2002) Generating Samples under a Wright-Fisher Neutral Model of Genetic Variation. Bioinformatics (Oxford, England), 18, 337-338.
https://doi.org/10.1093/bioinformatics/18.2.337 |

[31] | Nordborg, M. (2008) Coalescent Theory. John Wiley & Sons, Ltd., Hoboken, 843-877. |

[32] |
Beaumont, M.A., Cornuet, J.M., Marin, J.M. and Robert, C.P. (2009) Adaptive Approximate Bayesian Computation. Biometrika, 96, 983-990.
https://doi.org/10.1093/biomet/asp052 |

[33] | Hudson, R.R. (2002) Ms—A Program for Generating Samples under Neutral Models. |

Copyright © 2020 by authors and Scientific Research Publishing Inc.

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.