Skip to main content
EURASIP Journal on Bioinformatics and Systems Biology logoLink to EURASIP Journal on Bioinformatics and Systems Biology
. 2011 Jul 25;2011(1):4. doi: 10.1186/1687-4153-2011-797251

Weighted next reaction method and parameter selection for efficient simulation of rare events in biochemical reaction systems

Zhouyi Xu 1, Xiaodong Cai 1,
PMCID: PMC3171305  PMID: 21910924

Abstract

The weighted stochastic simulation algorithm (wSSA) recently developed by Kuwahara and Mura and the refined wSSA proposed by Gillespie et al. based on the importance sampling technique open the door for efficient estimation of the probability of rare events in biochemical reaction systems. In this paper, we first apply the importance sampling technique to the next reaction method (NRM) of the stochastic simulation algorithm and develop a weighted NRM (wNRM). We then develop a systematic method for selecting the values of importance sampling parameters, which can be applied to both the wSSA and the wNRM. Numerical results demonstrate that our parameter selection method can substantially improve the performance of the wSSA and the wNRM in terms of simulation efficiency and accuracy.

1 Introduction

Biochemical reaction systems in living cells exhibit significant stochastic fluctuations due to a small number of molecules involved in processes such as the transcription and translation of genes [1]. A number of exact [2-7] or approximate simulation algorithms [8-19] have been developed for simulating the stochastic dynamics of such systems. Recent research shows that some rare events occurring in biochemical reaction system with an extremely small probability within a specified limited time can have profound and sometimes devastating effects [20,21]. Hence, it is important that computational simulation and analysis of systems with critical rare events can efficiently capture such rare events. However, the existing exact simulation methods such as Gillespie's exact SSA [2,3] often require prohibitive computation to estimate the probability of a rare events, while the approximate methods may not be able to estimate such probability accurately.

The weighted stochastic simulation algorithm (wSSA) recently developed by Kuwahara and Mura [22] based on the importance sampling technique enables one to efficiently estimate the probability of a rare event. However, the wSSA does not provide any method for selecting optimal values for importance sampling parameters. More recently, Gillespie et al. [23] analyzed the accuracy of the results yielded from the wSSA and proposed a refined wSSA that employed a try-and-test method for selecting optimal values for importance sampling parameters. It was shown that the refined wSSA could further improve the performance of wSSA. However, the try-and-test method requires some initial guessing for the sets of values from which the parameters can take. If the guessed values do not include the optimal value, then one cannot get appropriate values for the parameters. Moreover, if the number of parameters is greater than one, a very large set of values need to be guessed and tested, which may increase the likelihood of missing the optimal values and also increase computational overhead.

In this paper, we first apply the importance sampling technique to the next reaction method (NRM) of the SSA [4] and develop a weighted NRM (wNRM) as an alternative to the wSSA. We then develop a systematic method for selecting optimal values for importance sampling parameters that can be incorporated into both the wSSA and the wNRM. Our method does not need initial guess and thus can guarantee near optimal values for the parameters. Our numerical results in Section 5 demonstrate that the variance of the estimated probability of the rare event provided by the wSSA and wNRM with our parameter selection method can be more than one order magnitude lower than that provided by the wSSA or the refined wSSA for a given number of simulation runs. Moreover, the wSSA and wNRM with our parameter selection method require less simulation time than the refined wSSA for the same number of simulation runs. When this paper was under review, a method named doubly weighted SSA (dwSSA) was developed to automatically choose parameter values for the wSSA [24]. The dwSSA reduces the computational overhead required by the wSSA and the refined wSSA to select parameter values, but it produces similar variance for the estimated probability as the refined wSSA.

The remaining part of this paper is organized as follows. In Section 2, we first describe the system setup and then briefly review Gillespie's exact SSA [2,3], the wSSA [22] and the refined wSSA [23]. In Section 3, we develop the wNRM. In Section 4, we develop a systematic method for selecting optimal values for importance sampling parameters and incorporate the parameter selection procedure into both the wSSA and the NRM. In Section 5, we give some numerical examples that illustrate the advantages of our parameter selection method. Finally in Section 6, we draw several conclusions.

2 Weighted stochastic simulation algorithms

2.1 System Description

Suppose a chemical reaction system involves a well-stirred mixture of N ≥ 1 molecular species {S1, ..., SN} that chemically interact through M ≥ 1 reaction channels {R1, ..., RM}. The dynamic state of this chemical system is described by the state vector X(t) = [X1(t), ..., XN(t)]T, where Xn(t), n = 1, ..., N, is the number of Sn molecules at time t, and [·]T denotes the transpose of the vector in the brackets. Following Gillespie [8], we define the dynamics of reaction Rm by a state-change vector νm = [ν1m, ..., νNm]T, where νnm gives the changes in the Sn molecular population produced by one Rm reaction, and a propensity function am(x) together with the fundamental premise of stochastic chemical kinetics:

graphic file with name 1687-4153-2011-797251-i1.gif (1)

2.2 Gillespie's exact SSA

Based on the fundamental premise (1), Gillespie developed an exact SSA to simulate the occurrence of every reaction when the time evolves [3]. Specifically, Gillespie's SSA simulates the following event in each step:

graphic file with name 1687-4153-2011-797251-i2.gif (2)

It has been shown by Gillespie [2,3] that τ and μ are two independent random variables and have the following probability density functions (PDF) and probability mass function (PMF), respectively,

graphic file with name 1687-4153-2011-797251-i3.gif (3)

and

graphic file with name 1687-4153-2011-797251-i4.gif (4)

where Inline graphic. Therefore, Gillespie's direct method (DM) for the SSA generates a realization of τ and μ according to PDF (3) and PMF (4), respectively, in each step of the simulation, and then updates the system state as X(t + τ) = x + νμ.

2.3 Weighted SSA

In order to estimate the probability of a rare event that occurs with an extremely low probability in a given time period, Gillespie's SSA may require huge computation. Recently, the wSSA [22] and the refined wSSA [23] were developed to estimate the probability of a rare event with substantial reduction of computation. Following Kuwahara and Mura [22], and Gillespie et al. [23], we define the rare event ER as follows:

graphic file with name 1687-4153-2011-797251-i6.gif (5)

If we employ the SSA to estimate P(ER), we would have to make a large number n of simulation runs, with each starting at time 0 in state x0 and terminating either when some state x ∈ Ω is first reached or when the system time reaches T. If k is the number of those n runs that terminate for the first reason, then P(ER) is estimated as Inline graphic. Since P(ER) ≪ 1, n should be very large to get a reasonably accurate estimate of P(ER). The wSSA employs the importance sampling technique to reduce the number of runs needed to estimate P(ER).

Specifically, wSSA generates τ from its PDF (3) in the same way as used in Gillespie's DM method, but generates the reaction index μ from the following PMF:

graphic file with name 1687-4153-2011-797251-i8.gif (6)

where bμ(x) = γμ aμ(x), μ = 1, ..., M, Inline graphic and γμ, μ = 1, ..., M are positive constants that need to be chosen carefully before simulations are run. Suppose a trajectory J generated in a simulation run contains h reactions and the ith reaction occurs at time ti, then the wSSA changes the PDF of the trajectory from Inline graphic to Inline graphic, where t0 = 0. By choosing appropriate γμ, μ = 1, ..., M, one can increase the probability of the trajectories that lead to the rare event. If k trajectories out of n simulation runs lead to the rare event, then the importance sampling technique tells us that an unbiased estimate of P(ER) is given by

graphic file with name 1687-4153-2011-797251-i12.gif (7)

where j and i are indices of the trajectories and reactions in a trajectory, respectively, Inline graphic, and

graphic file with name 1687-4153-2011-797251-i14.gif (8)

which can be obtained in each simulation step.

Kuwahara and Mura [22] did not provide any method for choosing γμ, although their numerical results with some pre-specified γμ for several reaction systems demonstrated that the wSSA could reduce computation substantially. Gillespie et al. [23] analyzed the variance of Inline graphic obtained from the wSSA and refined the wSSA by proposing a try-and-test method for choosing γμ. In the try-and-test method, several sets of values are pre-specified for γμ, μ = 1, ..., M. A relatively small number of simulation runs of the standard SSA are made for each set of the values to obtain an estimate of the variance of Inline graphic, and then the set of values that yielded the smallest variance is chosen. Although the try-and-test method provides a way of choosing γμ, it requires some guessing to get several sets of pre-specified values for all γμ and also some computational overhead to estimate the variance of Inline graphic for each set of values. More recently, the dwSSA was developed in [24] to automatically choose parameter values for the wSSA by applying the cross-entropy method originally proposed in [25] for optimizing the importance sampling method.

3 Weighted NRM

The wSSA is based on the DM for the SSA, which needs to generate two random variables in each simulation step. However, the NRM of Gibson and Bruck [4] requires only one random variable in each simulation step. In this section, we apply the importance sampling technique to the NRM and develop the wNRM.

The key to making the wSSA more efficient than the standard SSA is to change the probability of each reaction appropriately but without changing the distribution of the time τ between any two consecutive reactions. Since the NRM determines the reaction occurring in a simulation step by choosing the reaction that requires the smallest waiting time, it seems difficult to change the probability of each reaction without changing the distribution of τ. However, we notice that the PDF of τ in (3) only depends on a0(x) not individual aμ(x). Hence, we can change the probability of each reaction by changing the corresponding propensity function but without changing the distribution of τ, so long as we keep the sum of the propensity functions equal to a0(x). To this end, we define

graphic file with name 1687-4153-2011-797251-i16.gif (9)

where bm(x) = γmam(x) is defined in the same way as in the wSSA. It is easy to verify that Inline graphic. If we generate τm from an exponential distribution p(τm) = dm(x) exp(-dm(x)τm), τm > 0, as the waiting time of reaction channel m, and choose μ = argm min{τm, m = 1, ..., M} as the index of the channel that fires, then it can be easily shown that the PDF of τ = min{τm, m = 1, ..., M} follows the exponential distribution in (3) and that the probability of reaction μ is qμ = dμ(x)/d0(x) = bμ(x)/b0(x). If we repeat this procedure in each simulation step, we would have modified the first reaction method (FRM) [3] for the standard SSA and got a weighted FRM (wFRM). Clearly, the wFRM is not efficient since it generates M random variables in each step. However, following Gibson and Bruck [4], we can convert the wFRM into a more efficient wNRM by reusing τms.

In the FRM, we used τm to denote the putative waiting or relative time for the mth reaction channel to fire. Following Gibson and Bruck [4], we will use τm to denote the putative absolute time when the mth reaction channel will fire. Suppose that the μth reaction channel fires at time t in the current step. After updating the state vector and propensity functions, we calculate new dm(x), m = 1, ..., M, which we denote as Inline graphic. Then, we generate a random variable Inline graphic from an exponential distribution with parameter Inline graphic and set Inline graphic. For other channels with an index m μ, we update τm as follows:

graphic file with name 1687-4153-2011-797251-i22.gif (10)

Following Gibson and Bruck [4], we can show that the new τm -t, m = 1, ..., M, are independent exponential random variables with parameters Inline graphic, m = 1, ..., M, respectively. Therefore, in the next step, we can choose μ = argm min{τm, m = 1, ..., M} as the index of the channel that fires as done in NRM, update t as t = τμ, and then repeat the process just described. Clearly, the wNRM only needs to generate one random variable in each step. We can further improve the efficiency of the wNRM by using the dependency graph Inline graphic and the indexed priority queue Inline graphic defined by Gibson and Bruck [4]. The dependency graph Inline graphic tells precisely which propensity functions need to be updated after a reaction occurs. The indexed priority queue Inline graphic can be exploited to find the minimum τm and the reaction index in each step more efficiently than finding the reaction index from the PMF (4) directly as done in the DM. However, some computational overhead is needed to maintain the data structure of Inline graphic.

Essentially, our wNRM runs simulation in the same way as the NRM except that the wNM generates τm using a parameter dm(x) instead of am(x). To estimate the probability of the rare event Inline graphic, we calculate a weight Inline graphic in each step and get Inline graphic using (7). The wNRM is summarized in the following algorithm:

Algorithm 1 (wNRM)

1. k1 ← 0, k2 ← 0, set values for all γm; generate a dependency graph Inline graphic.

2. for i = 1 to n, do

3.   t ← 0, x x0, w ← 1.

4.   evaluate am(x) and bm(x) for all m; calculate all dm(x).

5.   for each m, generate a unit-interval uniform random variable rm; τm = ln(1/rm)/dm(x).

6.   store τm in an indexed priority queue Inline graphic.

7.   while t T, do

8.      if x ∈ Ω, then

9.         k1 k1 + w, k2 k2 + w2

10.         break out the while loop

11.      end if

12.      find μ = argm min{τm, m = 1, ..., M} and τ = min{τm, m = 1, ..., M} from Inline graphic.

13.      w w × aμ(x)/dμ(x).

14.      x x + νμ, t τ.

15.      Find am(x) need to be updated from Inline graphic; evaluate these am(x) and the corresponding bm(x); calculate all Inline graphic.

16.      for all m μ, Inline graphic; generate a unit-interval uniform random variable rμ; Inline graphic; update Inline graphic.

17.      Inline graphic.

18.   end while

19. end for

20. Inline graphic

21. calculate Inline graphic, with a 68% uncertainty of Inline graphic.

Note that Gibson and Bruck [4] argued that the NRM is more efficient than the DM of Gillespie's SSA for the loosely coupled chemical reaction systems. On the other hand, Cao et al. [5] optimized the DM and argued that the optimized DM is more efficient for most practical reaction systems. Regardless of the debate about the efficiency, here we propose the wNRM as an alternative of the wSSA which is based on the DM. While our simulation results in Section 5 demonstrate that the wNRM is more efficient than the refined wSSA for the three reaction systems tested, the wSSA may be more efficient in simulating some other systems.

As in the wSSA, Algorithm 1 does not provide a method for selecting the values of parameters γm, m = 1, ..., M. Although we could incorporate the try-and-test method in refined wSSA into Algorithm 1, we will develop a more systematic method for selecting parameters in the next section. This parameter selection method will be applicable to both the wSSA and the wNRM and can significantly improve the performance of both algorithms as will be demonstrated in Section 5.

4 Parameter selection for wSSA and wNRM

Let us denote the set of all possible state trajectories in the time interval [0 T] as Inline graphic and the set of trajectories that first reach any state in Ω during [0 T] as Inline graphic. Let the probability of a trajectory J be PJ. Then, we have Inline graphic, where the indicator function Inline graphic if Inline graphic or 0 if Inline graphic. Importance sampling used in the wSSA and the wNRM arises from the factor that we can write P(ER) as

graphic file with name 1687-4153-2011-797251-i38.gif (11)

where QJ is the probability used in simulation to generate trajectory J, which is different from the true probability PJ if the original system evolves naturally. If we make n simulation runs with altered trajectory probabilities, (11) implies that we can estimate P(ER) as Inline graphic which is essentially (7). The variance of Inline graphic depends on QJs. Appropriate QJs yield small variance, thereby improving the accuracy of the estimate or equivalently reducing the number of runs for a given variance. The "rule of thumb" [23,26-28] for choosing good QJs is that QJ should be roughly proportional to Inline graphic. However, at least two difficulties arise if we apply the rule of thumb based on (11). First, the number of all possible trajectories is very large and we do not know the trajectories that lead to the rare event and their probabilities. Second, since we can only adjust the probability of each reaction in each step, it is not clear how this adjustment can affect the probability of a trajectory. To overcome these difficulties, we next use an alternative expression for P(ER) based on which we apply the importance sampling technique.

Let us denote the number of reactions occurring in the time interval [0 t] as Kt and the maximum value of KT as Inline graphic. Let EK be the rare event occurring at the Kth Inline graphic reaction at any t T, and P(EK) be the probability of EK in the original system that evolve naturally with the original probability rate constants. Then, we have

graphic file with name 1687-4153-2011-797251-i43.gif (12)

If Q(EK) is the probability of event EK in the weighted system that evolves with adjusted probability rate constants, the rule of thumb for choosing good Q(EK) is that we should make Q(EK) approximately proportional to P(EK). However, it is still difficult to apply the rule of thumb, because it is difficult to control every Q(EK) simultaneously. Hence, we relax the rule of thumb and will maximize the Q(EK) corresponding to the maximum P(EK) or the one near maximum if the exact maximum P(EK) cannot be determined precisely. The rationale of this heuristic rule is based on the following argument. If Inline graphic is the maximum one among all Inline graphic, the sum of Inline graphic and its closely related terms, such as Inline graphic, Inline graphic, Inline graphic and Inline graphic, very likely dominates the sum in the right-hand side of (12). Maximizing Inline graphic not only proportionally increases Inline graphic, and its closely related terms, such as Inline graphic, Inline graphic, Inline graphic and Inline graphic, but also significantly increases the probability of the occurrence of the rare event. Note that a similar heuristic rule relying on the event with maximum probability was proposed in [29] for estimating the probability of rare events in highly reliable Markovian systems.

Before proceeding with our derivations, we need to specify Ω. In the rest of the paper, we assume that Ω contains one single state X defined as Xi = Xi(0) + η, where η is a constant and i ∈ {1, 2, ..., N}. Let us denote the number of firings of the mth reaction channel in the trajectory leading to the rare event as Km. Then, we have

graphic file with name 1687-4153-2011-797251-i55.gif (13)

We first divide all reactions into three groups using the following general rule: G1 group consists of reactions with νimη > 0, G2 group consists of reactions with νimη < 0, and G3 group consists of reactions with νim = 0. The rationale for the partition rule is that the reactions in G1 (G2) group increase (decrease) the probability of the rare event and that the reactions in G3 group do not affect Xi(t) directly. We further refine the partition rule as follows. If a reaction Rm is in the G1 group based on the general rule but am(x) = 0 whenever one Rm reaction occurs, we move Rm into the G3 group. Similarly, if a reaction Rm is in the G2 group based on the general rule but am(x) = 0 whenever one Rm reaction occurs, we move Rm into the G3 group. For most cases, we only need the general partition rule. The refining rule described here is to deal with the situation where one or several Xi(t)s always take values 1 or 0 as in the system considered in Section 5.3. More refining rules may be added following the rationale just described, after we see more real-world reaction systems.

We typically only need to consider elementary reactions including bimolecular and monomolecular reactions [30]. Hence, the possible values for all νim are 0, ±1, ±2. For the simplicity of derivations, we now only consider the case where νim = 0, ±1, i.e., we assume that the system does not have any bimolecular reactions with two identical reactant molecules or dimerization reactions. We will later generalize our method to the system with dimerization reactions. Let us define Inline graphic, Inline graphic and Inline graphic, then (13) becomes

graphic file with name 1687-4153-2011-797251-i59.gif (14)

Let us denote Inline graphic as the expected value of Kt. Since the number of reactions occurring in any small time interval is approximately a Poisson random variable [8], Kt is the sum of a large number of independent Poisson random variables when t is relatively large. Then, by the central limit theorem, Kt can be approximated as a Gaussian random variable with mean Inline graphic. Indeed, in all chemical reaction systems [6,19,31] we tested so far, we observed that Kt follows a unimodal distribution with a peak at Inline graphic and its standard deviation is small relative to Inline graphic. Since the mean first passage time of the rare event is much larger than T [23], the rare event most likely occurs at a time near T. Based on these two observations, we argue that Inline graphic for all Inline graphic. Therefore, we should have Inline graphic. When Inline graphic occurs, we have

graphic file with name 1687-4153-2011-797251-i65.gif (15)

Since both (14) and (15) need to be satisfied in order for the event Inline graphic to occur and since Inline graphic, Inline graphic and Inline graphic, we get the second requirement for KE: KE ≥ |η|. Combining the two requirements on KE, we obtain Inline graphic.

The probability P(EK) can be expressed as Inline graphic. Since P(X(t) ∈ Ω|Kt = K) is determined by the constant K, it is independent of t. Hence, we have Inline graphic. Due to the unimodal distribution of Kt we mentioned earlier, we have Inline graphic for those Inline graphic; Inline graphic for those K close to Inline graphic; and Inline graphic quickly decreases to zero when K increases beyond Inline graphic. In other words, Inline graphic is approximately a constant for Inline graphic and quickly decreases to zero when Inline graphic. Now let us consider event EK with K = |η| in the case Inline graphic. In this case, P (X(t) ∈ Ω|Kt = K) is very small because this is an extreme case where Inline graphic and Inline graphic if η > 0 or Inline graphic and Inline graphic if η < 0. Therefore, we can increase P(EK) if we increase K, but we do not want to increase K too much because as we discussed Inline graphic decreases quickly when K increases in the case Inline graphic. Consequently, we suggest that we choose Inline graphic, where Inline graphic is the standard deviation of KT which can be estimated by making hundreds of runs of the standard SSA. In case Inline graphic, we choose Inline graphic based on the same argument that Inline graphic decreases quickly if we further increase KE.

Applying the relaxed rule of thumb, we need to adjust probability rate constants in simulation to maximize Inline graphic. Since we do not change the distribution of τ, we do not change the distribution of KT and thus Inline graphic. Hence, maximizing Q(EK) is equivalent to maximizing Q(X(t) ∈ Ω|Kt = KE). Now we are in a position to summarize our strategy of applying the important sampling technique in simulation as follows: we will choose probability parameters to maximize Q(X(t) ∈ Ω|Kt = KE), where

graphic file with name 1687-4153-2011-797251-i90.gif (16)

We next consider systems with only G1 and G2 reaction groups and then consider more general systems with all three reaction groups.

4.1 Systems with G1 and G2 reaction groups

Since we do not have G3 group, (15) becomes

graphic file with name 1687-4153-2011-797251-i91.gif (17)

Combining (14) and (17), we get Inline graphic and Inline graphic if the final state after the last reaction occurs is in Ω. The last reaction should be a reaction from G1 group. Otherwise, the state already reached Ω before the last reaction occurs. Suppose that in simulation the total probability of the occurrence of reactions in G1 group is a constant Inline graphic and then the total probability of the occurrence of reactions in G2 group is Inline graphic. Then, Q(X(t) ∈ Ω|Kt = KE) can be found from a binomial distribution as follows

graphic file with name 1687-4153-2011-797251-i96.gif (18)

where Inline graphic and Inline graphic as determined earlier. Setting the derivative of Q(X(t) ∈ Ω|Kt = KE) with respect to Inline graphic to be zero, we get Inline graphic and Inline graphic that maximize Q(X(t) ∈ Ω|Kt = KE) as follows:

graphic file with name 1687-4153-2011-797251-i98.gif (19)

To ensure that reactions in G1 (G2) group occur with probability Inline graphic in each step of simulation, we adjust the probability of each reaction as follows

graphic file with name 1687-4153-2011-797251-i100.gif (20)

where Inline graphic and Inline graphic. It is easy to verify that Inline graphic and Inline graphic. As defined in (8), the weight for estimating the probability of the rare event is wμ = pμ/qμ if the μth reaction channel fires.

4.2 Systems with G1, G2 and G3 reaction groups

Combining (14) and (15), we get Inline graphic and Inline graphic. Since Inline graphic, we have Inline graphic. Suppose that in simulation the total probabilities of the occurrence of reactions in G1, G2 and G3 are constants Inline graphic, Inline graphic and Inline graphic, respectively. Then, Q(X(t) ∈ Ω|Kt = KE) can be found from a multinomial distribution as follows

graphic file with name 1687-4153-2011-797251-i110.gif (21)

where Inline graphic and Inline graphic as determined earlier. Since there are (KE - η)/2 + 1 terms of the sum in (21), it is difficult to find Inline graphic, Inline graphic and Inline graphic that maximize Q(X(t) ∈ Ω|Kt = KE). So we will use a different approach to find Inline graphic, Inline graphic and Inline graphic as described in the following.

Let Inline graphic, Inline graphic and Inline graphic be the average number of reactions of G1, G2 and G3 groups that occur in the time interval [0 T] in the original system. Since we have Inline graphic, we define Inline graphic, Inline graphic, and Inline graphic. Then, we can approximate P(X(t) ∈ Ω|Kt = KE) in the original system, which is the counter part of Q(X(t) ∈ Ω|Kt = KE) in the weighted system, using the right-hand side of (21) but with Inline graphic, i = 1, 2, 3, replaced by Inline graphici = 1, 2, 3, respectively. This gives

graphic file with name 1687-4153-2011-797251-i121.gif (22)

Suppose that the (κ + 1)th term of the sum in (22) is the largest. We further relax the rule of thumb and maximize the (κ + 1)th term of the sum in (21) to find Inline graphic, Inline graphic and Inline graphic.

It is not difficult to find the (κ + 1)th term of the sum in (22). Let us denote the Inline graphic term of the sum in (22) as Inline graphic. We can exhaustively search over all Inline graphic, Inline graphic to find κ. However, this may require relatively large computation because the factorials involved in Inline graphic. We can reduce computation by searching over Inline graphic, Inline graphic, which are given by

graphic file with name 1687-4153-2011-797251-i127.gif (23)

Specifically, we calculate all Inline graphic from (23). If Inline graphic but Inline graphic, then Inline graphic is a local maximum. After obtaining all local maximums, we can find the global maximum f(κ) from the local maximums.

After we find κ, we set the partial derivatives of the (κ + 1)th term of the sum in (21) with respect to Inline graphic and Inline graphic to be zero. This gives the following optimal Inline graphic, Inline graphic and Inline graphic

graphic file with name 1687-4153-2011-797251-i131.gif (24)

Substituting Inline graphic and Inline graphic in (24) into (20), we get the probability qm, m G1 or G2 that is used to generate the mth reaction in each step of simulation. For G3 group, we get the probability of each reaction as follows

graphic file with name 1687-4153-2011-797251-i132.gif (25)

where Inline graphic.

While we can use qm in (25) to generate reactions in G3 group, we next develop an optional method for fine-tuning qm, m G3, which can further reduce the variance of Inline graphic. We divide G3 group into three subgroups: G31, G32 and G33. Occurrence of reactions in G31 group increases the probability of occurrence of reactions in Inline graphic group or reduces the probability of the occurrence of the reactions in Inline graphic group, which in turn increases the probability of the rare event. Occurrence of reactions in G32 group reduces the probability of occurrence of reactions in Inline graphic group or increases he probability of the occurrence of reactions in Inline graphic group, which reduces the probability of the are event. Occurrence of reactions in G33 group does not change the probability of occurrence of reactions in Inline graphic and Inline graphic groups, which does not change the probability of the rare event.

Let Inline graphic, Inline graphic and Inline graphic be the average number of reactions from G31, G32 and G33 that occur in the time interval [0 T] in the original system. we define Inline graphic, Inline graphic and Inline graphic. Our goal is to make Q31 to be greater than Inline graphic and Q32 to be less than Inline graphic to increase the probability of the rare event. However, this may not feasible when Inline graphic. Hence, we can fine-tune Inline graphic, Inline graphic and Inline graphic only when Inline graphic and propose the following formula to determine Q31, Q32 and Q33:

graphic file with name 1687-4153-2011-797251-i147.gif (26)

where α, β ∈ (0 1) are two pre-specified constants. It is not difficult to verify from (26) that Inline graphic. To ensure that Inline graphic and Inline graphic, we choose α and β satisfying 0 ≤ β < 1 and Inline graphic.

Finally, we obtain qm for m G3 as follows

graphic file with name 1687-4153-2011-797251-i152.gif (27)

where Inline graphic, i = 1, 2, 3.

4.3 Systems with dimerization reactions

So far we assumed that the system did not have any dimerization reactions, i.e. the system consisted of reactions with |νim| = 0 or 1. We now generalize our methods developed earlier to the system with dimerization reactions. If there are dimerization reactions in G1 and G2 groups, we further divide G1 group into G11 and G12 subgroups and G2 group into G21 and G22 subgroups. The G11 group contains reactions with νimsign(η) = 1, where sign(η) = 1 when η > 0 and sign(η) = -1 when η < 0. The G12 group contains reactions with νimsign(η) = 2. The G21 group contains reactions with νimsign(η) = -1, while the G12 group contains reactions with νimsign(η) = -2.

Let us define Inline graphic, Inline graphic, Inline graphic and Inline graphic. Clearly, we have Inline graphic and Inline graphic. Then, (13) becomes

graphic file with name 1687-4153-2011-797251-i160.gif (28)

Let us consider systems with G1 and G2 groups but without G3 group. Although we still have Inline graphic or equivalently Inline graphic, we cannot obtain four unknowns Inline graphic, Inline graphic, Inline graphic and Inline graphic from only two equations.

Suppose that Inline graphic, Inline graphic, Inline graphic and Inline graphic are average number of reactions from G11, G12, G21 and G22 groups that occur in the time interval [0 T] in the original system. We notice from (20) that we do not change the ratio of the probabilities of two reactions in the same group, i.e., Inline graphic if m1 and m2 are in the same G1 or G2 group. Therefore, we would expect that Inline graphic and Inline graphic. Using these two relationships, we can write (28) as

graphic file with name 1687-4153-2011-797251-i174.gif (29)

where Inline graphic and Inline graphic.

From (17) and (29), we obtain Inline graphic and Inline graphic. Substituting Inline graphic and Inline graphic into (18) and maximizing Q(X(t) ∈ Ω|Kt = KE), we obtain

graphic file with name 1687-4153-2011-797251-i181.gif (30)

We then substitute Inline graphic and Inline graphic into (20) to get qm.

Now let us consider the systems with G1, G2 and G3 reactions. From (29), we have Inline graphic, and from (15) and (29), we obtain Inline graphic. Since Inline graphic, we have Inline graphic. Following the derivations in Section 4.2, we can get qm for any reaction. More specifically, substituting Inline graphic, Inline graphic and the upper limit of Inline graphic into (21), we obtain Q(X(t) ∈ Ω|Kt = KE). We can also get P(X(t) ∈ Ω|Kt = KE) similar to (22) by replacing Inline graphic in Q(X(t) ∈ Ω|Kt = KE) with Inline graphic. Then, we determine the maximum term of the sum in P(X(t) ∈ Ω|Kt = KE) and denote the value of Inline graphic corresponding to the maximum term as κ + 1. We find Inline graphic, Inline graphic and Inline graphic by maximizing the (κ + 1)th term of the sum in Q(X(t) ∈ Ω|Kt = KE). Finally, we substitute Inline graphic and Inline graphic into (20) to get qm, m G1 or G2. For the reactions in G3 group, we can either substitute Inline graphic into (25) to obtain qm, or if we want to fine-tune qm, we use (26) and (27) to get qm.

4.4 wSSA and wNRM with parameter selection

The key to determining probability of each reaction qm is to find the total probability of each group, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic and Inline graphic. This requires the average number of reactions of each group occurring during the interval [0 T] in the original system, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic. If the system is relatively simple, we may get these numbers analytically. If we cannot obtain them analytically, we can estimate them by running Gillespie's exact SSA. Since the number of runs needed to estimates these numbers is much smaller than the number of runs needed to estimate the probability of the rare event, the computational overhead is negligible.

We next summarize the wSSA incorporating the parameter selection method in the following algorithm. We will not include the procedure for fine-tuning the probability rate constants of reactions in the G3 group, but will describe how to add this optional procedure to the algorithm. We will also describe how to modify Algorithm 1 to incorporate the parameter selection procedure into the wNRM.

Algorithm 2 (wSSA with parameter selection)

1. run Gillespie's exact SSA 103-104 times to get estimates of Inline graphic, Inline graphic, Inline graphic, Inline graphic, Inline graphic, and Inline graphic; determine KE from (16).

2. if the system has only G1 and G2 reactions, calculate Inline graphicand Inline graphicfrom (19) if there is no dimerization reaction or from (30) if there are dimerization reaction(s), if the system has G1, G2 and G3 reactions, calculate Inline graphic, Inline graphicand Inline graphicfrom (24).

3. k1 ← 0, k2 ← 0.

4. for i = 1 to n, do

5.   t ← 0, x x0, w ← 1.

6.   while t T, do

7.      if x ∈ Ω, then

8.         k1 k1 + w, k2 k2 + w2

9.         break out the while loop

10.      end if

11.      evaluate all am(x); calculate a0(x).

12.      generate two unit-interval uniform random variables r1 and r2.

13.      τ ← ln(1/r)1)/a0(x)

14.      calculate all qm from (20) and (25).

15.      μ smallest integer satisfying Inline graphic.

16.      w w × (aμ(x)/a0(x))/(qμ(x)/q0(x)).

17.      x x + νμ, t t + τ.

18.   end while

19. end for

20. Inline graphic

21. estimate Inline graphic, with a 68% uncertainty of Inline graphic.

If Inline graphic and we want to fine-tune the probability rate constants of the reactions in the G3 group, we modify Algorithm 2 as follows. In step 1, we also estimate Inline graphic, Inline graphic and Inline graphic and choose the value of α and β in (26). In step 2, we also calculate Inline graphic, Inline graphic and Inline graphic from (26). In step 14, we calculate qm for G3 reactions from (27) instead of (25). Comparing with the refined wSSA [23], the wSSA with our parameter selection procedure does not need to make some guessing about the parameters for adjusting the probability of each reaction qm, but directly calculate qm using a systematically developed method. This has two main advantages. First, our method will always adjust qm appropriately to reduce the variance of Inline graphic, whereas the refined wSSA may not adjust qm as well as our method, especially if the initial guessed values are far away from the optimal values. Second, as we mentioned earlier, the computational overhead of our method is negligible, whereas the refined wSSA requires non-negligible computational overhead for determining parameters. Indeed, as we will show in Section 5, the variance of Inline graphic provided by the wSSA with our parameter selection method can be more than one order of magnitude lower than that provided by the refined wSSA for given number of n. Moreover, the wSSA with our parameter selection method is faster than the refined wSSA, since it requires less computational overhead to adjust qm.

We can also incorporate our parameter selection method without the fine-tuning procedure into the wNRM as follows. We replace the first step of Algorithm 1 with the first three steps of Algorithm 2. We then modify the fourth step of Algorithm 1 as follows: evaluate all am(x), calculate all qm from (20) and (25), and calculate all dm(x) as dm(x) = qma0(x). Finally, we change the fifth step of Algorithm 1 to the following: find am(x) need to be updated from Inline graphic and evaluate these am(x); calculate all qm from (20) and (25), and calculate all Inline graphic as Inline graphic. We can also fine-tune the probability rate constants of G3 reactions in the wNRM in the same way as described in the previous paragraph for the wSSA. Note that since our parameter selection method employs a systematic method for partitioning reactions into three groups as discussed earlier, our method can be applied to any real chemical reaction systems.

5 Numerical examples

In this section, we present simulation results for several chemical reaction systems to demonstrate the accuracy and efficiency of the wSSA and wNRM with our parameter selection method, which we refer to as wSSAps and wNRMps, respectively, in the rest of the paper. All simulations were run in Matlab on a PC with an Intel dual Core 2.67-GHz CPU and 3G-byte memory running Windows XP.

5.1 Single species production-degradation model

This simple system was originally used by Kuwahara and Mura [22] and then Gillespie et al. [23] to test the wSSA and the refined wSSA. It includes the following two chemical reactions:

graphic file with name 1687-4153-2011-797251-i188.gif (31)

In reaction R1, species S1 synthesizes species S2 with a probability rate constant c1, while in reaction R2, species S2 is degraded with a probability rate constant c2. We used the same initial state and probability rate constants as used in [22,23]: X1(0) = 1, X2(0) = 40, c1 = 1 and c2 = 0.025.

It is observed that the system is at equilibrium, since a1(x0) = c1 × X1(0) = c2 × X2(0) = a2(x0). It can be shown [22] that X2(t) is a Poisson random variable with mean equal to 40. References [22,23] sought to estimate P(ER) = Pt≤100(X2 θ|x0), the probability of X2(t) = θ for t ≤ 100 and several values of θ between 65 and 80. Since θ is about four to six standard deviations above the mean value 40, Pt≤100(X2 θ|x0) is very small.

Kuwahara and Mura [22] employed the wSSA to estimate P(ER) and used b1(x) = δa1(x) and b2(x) = 1/δa2(x) with δ = 1.2 for four different values of θ: 65, 70, 75 and 80. Gillespie et al. [23] applied the refined wSSA to estimate P(ER) and used the same way to determine b1(x) and b2(x) but found that δ = 1.2 is near optimal for θ = 65 and that δ = 1.3 is near optimal for θ = 80. We repeated the simulation of Gillespie et al. [23] for θ = 65, 70, 75 and 80 with δ = 1.2, 1.25, 1.25 and 1.3, respectively. We then applied the wSSAps and the wNRMps to estimate P(ER) for θ = 65, 70, 75 and 80. This system has only two types of reaction: R1 is a G1 reaction and R2 is a G2 reaction. Since the system is at equilibrium with a0(x0) = 2, Inline graphic with T = 100 is estimated to be 200, and thus Inline graphic. Using (19), we get Inline graphic and q2 = 1 - q1.

Table 1 gives the estimated probability Inline graphic and the sample variance σ2 for the wNRMps, the wSSAps and the refined wSSA, obtained from 107 simulation runs with θ = 65, 70, 75 and 80. It is seen that Inline graphic is almost identical for all three methods. However, the wNRMps and the wSSAps provide variance almost two order of magnitude lower than the refined wSSA for θ = 80, or less than or almost one order of magnitude lower than the refined wSSA for θ = 75, 70 and 65. Moreover, the wNRMps and the wSSAps need about 60 and 70% CPU time of the refined wSSA, respectively. Note that the CPU time for the refined wSSA in Table 1 does not include the time needed for searching for the optimal value of δ for each θ. The less CPU time used by the wNRMps is expected since it only requires to generate one random variable in each step, whereas the wSSAps and the refined wSSA need to generate two random variables. It is also reasonable that the wSSAps requires less CPU time than the refined wSSA, because the wSSAps needs less computation to calculate the probability of each reaction in each step. Figure 1 compares the standard deviation Inline graphic of Inline graphic for the wSSAps and the refined wSSA with different number of runs, n. Since the wNRMps provides almost the same standard deviation as the wSSAps, we do not plot it in the figure. It is seen that the wSSAps consistently yields much smaller standard deviation than the refined wSSA for all values of n. It was shown in [24] that the dwSSA yielded similar variance comparing to the refined wSSA. Therefore, our parameter selection method also substantially outperforms the dwSSA in this example.

Table 1.

Estimated probability of the rare event Inline graphic and the sample variance σ2 as well as the CPU time (in s) with 107 runs of the wNRMps, the wSSAps and the refined wSSA for the single species production-degradation model (31): (a) θ = 65 and 70 and (b) θ = 75 and 80

(a) θ = 65 θ = 70

Inline graphic σ 2 Time Inline graphic σ 2 Time
wNRMps 2.29 × 10-3 5.09 × 10-6 14472 1.68 × 10-4 3.40 × 10-8 16140
wSSAps 2.29 × 10-3 5.10 × 10-6 16737 1.68 × 10-4 3.40 × 10-8 18555
Refined wSSA 2.29 × 10-3 3.39 × 10-5 24340 1.68 × 10-4 4.29 × 10-7 25492

(b) θ = 75 θ = 80

Inline graphic σ 2 Time Inline graphic σ 2 Time

wNRMps 8.42 × 10-6 1.10 × 10-10 15640 2.99 × 10-7 1.82 × 10-13 16260
wSSAps 8.42 × 10-6 1.10 × 10-10 18582 2.99 × 10-7 1.82 × 10-13 18960
Refined wSSA 8.43 × 10-6 3.58 × 10-9 26314 2.99 × 10-7 1.29 × 10-11 26987

Figure 1.

Figure 1

The standard deviation (SD) Inline graphic of the estimated probability versus the number of simulation runs n obtained with the refined wSSA (rwSSA) and the wSSAps for the single species production-degradation model (31) with c1 = 1, c2 = 0.025, X1(0) = 1 and X2(0) = 40 for θ = 65, 70, 75 and 80.

5.2 A reaction system with G1, G2 and G3 reactions

The previous system only contains a G1 reaction and a G2 reaction. We used the following system with G1, G2 and G3 reactions to test the wNRMps and the wSSAps:

graphic file with name 1687-4153-2011-797251-i194.gif (32)

In this system, a monomer S1 converts to S2 with a probability rate constant c1, while S2 is degraded with a probability rate constant c2. Meanwhile, another species S3 synthesizes S1 with a probability rate constant c3 and S1 degrades with a probability rate constant c4. In our simulations, we used the following values for the probability rate constants and the initial state:

graphic file with name 1687-4153-2011-797251-i195.gif (33)

and

graphic file with name 1687-4153-2011-797251-i196.gif (34)

This system is at equilibrium and the mean value of X2(t) is 40. We are interested in P (ER) = Pt≤10(X2 θ|x(0)), the probability of X2(t) = θ for t ≤ 10. We chose θ = 65 and 68 in our simulations. To apply the wSSAps and the wNRMps to estimate P(ER), we divide the system into three groups. The G1 group contains reaction R1; the G2 group includes reaction R2; the G3 group consists of reactions R3 and R4. When fine-tuning the parameters, we further divided G3 into a G31 group which contains reaction R3 and a G32 group which contains reaction R4. Since the system is at equilibrium and we have a0(x0) = 20, a1(x0) = 4, a2(x0) = 4, a3(x0) = 8 and a4(x0) = 4, we get Inline graphic, Inline graphic, Inline graphic, Inline graphic and Inline graphic. Therefore, we get Inline graphic and the following probabilities: Inline graphic, Inline graphic and Inline graphic.

If θ = 65, we have η = 25. Using (23), we obtained κ = 29. Substituting κ into (24), we got Inline graphic, Inline graphic and Inline graphic. We then chose α = 0.85 and β = 0.80 and calculated Inline graphic and Inline graphic from (26) as Inline graphic and Inline graphic. Similarly, if θ = 68, we got κ = 26, which resulted in Inline graphic and Inline graphic. Again, selecting α = 0.85 and β = 0.80, we got Inline graphic and Inline graphic. To test whether the wNRMps and the wSSAps are sensitive to parameters α and β, we also used another set of parameters α = 0.80 and β = 0.75.

In order to compare the performance of the wNRMps and the wSSAps with that of the refined wSSA, we also ran simulations with the refined wSSA. In the refined wSSA, we chose the following parameters γ1 = δ, γ2 = 1/δ and γm = 1, m = 3, 4 to adjust propensity functions. Since the optimal value of α is unknown, we ran the refined wSSA for δ = 1.2, 1.25, 1.3, 1.35, 1.40, 1.45, 1.50, 1.55, 1.60, 1.65, 1.70, 1.75 and 1.80 to determine the best δ. Figure 2 shows the variance of Inline graphic obtained from the simulations with the refined wSSA and the wSSAps. Since the wNRMps yielded almost the same variance as the wSSAps, we only plotted the variance obtained from the wSSAps. It is seen that the wSSAps provides variance more than one order of magnitude lower than that provided by refined wSSA with the best δ. Is also observed that the wSSAps is not very sensitive to the parameters α and β, since the variance obtained with two different sets of values for α and β is almost the same.

Figure 2.

Figure 2

Variance σ2 obtained from 107 runs of the wSSAps and the refined wSSA for the system in (32) with c1 = 0.1, c2 = 0.1, c3 = 8, c4 = 0.1, X1(0) = 40, X2(0) = 40 and X3(0) = 1. wSSAps para 1 represents the wSSAps without fine-tuning the probability of reactions in G3 group; wSSAps para 2 and 3 represent the wSSAps with fine-tuning the probability of reactions in G3 group using two sets of parameters: α = 0.85, β = 0.8 and α = 0.80, β = 0.75. Since the variance of the wSSAps does not depend on δ used in the refined wSSA, it appears as a horizontal line.

Table 2 lists Inline graphic and its variance obtained from n = 107 runs of the refined wSSA, the wNRMps and the wSSAps. We first ran the wNRMps and the wSSAps without fine-tuning the probability of reactions in G3 group and calculated qm using (25). We then ran the wNRMps and the wSSAps with fine-tuning the probability of reactions in G3 group and used two sets of parameters (α = 0.85, β = 0.80; α = 0.80, β = 0.75) and (26) to calculate qm for the reactions in G3 group. We also made 1011 runs of the exact SSA to estimate Inline graphic. It is seen that the wNRMps, the wSSAps and the refined wSSA all yield the same Inline graphic as the exact SSA. However, the wNRMps and the wSSAps with fine-tuning the probabilities of G3 reactions offer variance more than one order of magnitude lower than that provided by the refined wSSA. Without fine-tuning the probabilities of G3 reactions, the wNRMps and the wSSAps provided a little bit larger variance but still almost one order of magnitude lower than that provided by the refined wSSA. Table 2 also shows that the wNRMps and the wSSAps needed only 60-70% CPU time needed by the refined wSSA. Again, the CPU time of the refined wSSA in Table 2 does not include the time needed for searching for the optimal value of δ for each θ. If we include this time, the CPU time of the refined wSSA will be almost doubled.

Table 2.

Estimated probability of the rare event Inline graphic and the sample variance σ2 as well as the CPU TIME (in s) with 107 runs of the wNRMps, the wSSAps and the refined wSSA for the system given in (32): (a) θ = 65 and (b) θ = 68

(a) Inline graphic σ 2 Time
wNRMps without G3 fine-tuning 1.14 × 10-4 2.77 × 10-7 13381
wSSAps without G3 fine-tuning 1.14 × 10-4 2.74 × 10-7 17484
wNRMps with α = 0.85, β = 0.80 1.14 × 10-4 1.27 × 10-7 13504
wSSAps with α = 0.85, β = 0.80 1.14 × 10-4 1.28 × 10-7 16649
wNRMps with α = 0.80, β = 0.75 1.14 × 10-4 1.29 × 10-7 13540
wSSAps with α = 0.80, β = 0.75 1.14 × 10-4 1.29 × 10-7 17243
Refined wSSA 1.14 × 10-4 1.54 × 10-6 24499

(b) Inline graphic σ 2 Time

wNRMps without G3 fine-tuning 1.49 × 10-5 1.14 × 10-8 14087
wSSAps without G3 fine-tuning 1.49 × 10-5 1.09 × 10-8 17285
wNRMps with α = 0.85, β = 0.80 1.49 × 10-5 3.28 × 10-9 13920
wSSAps with α = 0.85, β = 0.80 1.49 × 10-5 3.29 × 10-9 17862
wNRMps with α = 0.80, β = 0.75 1.49 × 10-5 3.32 × 10-9 14018
wSSAps with α = 0.80, β = 0.75 1.49 × 10-5 3.30 × 10-9 17858
Refined wSSA 1.49 × 10-5 7.93 × 10-8 24739

The probability of the rare event estimated from 1011 runs of exact SSA method is 1.14 × 10-4 for θ = 65 and 1.49 × 10-5 for θ = 68

5.3 Enzymatic futile cycle model

The enzymatic futile cycle model used in [22,23] consists of two instances of the elementary single-substrate enzymatic reaction described by the following six reactions:

graphic file with name 1687-4153-2011-797251-i213.gif (35)

This system essentially consists of a forward-reverse pair of enzyme-substrate reactions, with the conversion of S2 into S5 catalyzed by S1 in the first three reactions and the conversion of S5 into S2 catalyzed by S4 in the last three reactions. We used the same probability rate constants and initial state as used in [22,23]:

graphic file with name 1687-4153-2011-797251-i214.gif (36)

and

graphic file with name 1687-4153-2011-797251-i215.gif (37)

With the above rate constants and initial state, X2(t) and X2(5) tend to equilibrate about their initial value 50. References [22,23] sought to estimate P(ER) = Pt≤100(X5 θ|x(0)), the probability that X5(t) = θ for t ≤ 100 and several values of θ between 25 and 40. We repeated simulations with the refined wSSA in [23] for θ = 25 and 40. The refined wSSA employed the following parameters γ3 = δ, γ6 = 1/δ and γm = 1, m = 1, 2, 4, 5, and we used the best value of δ determined in [23]: δ = 0.35 for θ = 25 and δ = 0.60 for θ = 40.

In this system, we always have X2(t) + X5(t) = 100. So when the rare event occurs at time t, we have X5(t) = θ and X2(t) = 100 - θ. The rare event is therefore defined as X5 = 50 + η with η = θ - 50 or equivalently X2 = 50 - η. According to the partition rule defined in Section 4, R3 is a G2 reaction; R6 is a G1 reaction; R1, R2, R4 and R5 are G3 reactions.

We ran Gillespie's SSA 103 times and got an estimate of Inline graphic as Inline graphic, and thus Inline graphic. When θ = 40, we have η = -10. Using (23) and KE = 432, we obtained κ = 6 Substituting κ into (24), we got Inline graphic, Inline graphic and Inline graphic. In this example, there always have certain reactions whose propensity functions are zero, since we always have X1(t) + X3(t) = 1 and X4(t) + X6(t) = 1. Due to this special property, we calculate the probability of each reaction as follows. The system has only 4 states in terms of X3(t) and X6(t): X3(t)X6(t) = 11, 01, 10 or 00. From the 103 runs of Gillespie's exact SSA, we estimated the probability of reactions occurring in reach state as P11 ≈ 1/2, P01 = P10 ≈ 1/4 and P00 ≈ 0. Note that reaction R6 only occurs in states 11 and 01 and we denote its probability in these two states used in the wSSAps as Inline graphic and Inline graphic and its natural probability as Inline graphic and Inline graphic. The probability Inline graphic can be calculated as Inline graphic and Inline graphic can be approximated as Inline graphic assuming X2(t) = 50 since the system is in equilibrium. Then, using the relationships: Inline graphic and Inline graphic, we get Inline graphic and Inline graphic. Reaction R3 only occurs in states 11 and 10 and its probability can be obtained similarly as Inline graphic and Inline graphic. In a state s (s = 11, 01, 10 or 00), we calculate Inline graphic and then calculated Inline graphic, m = 1, 2, 4 and 5, from (25). Surprisingly, Inline graphic, Inline graphic, Inline graphic and Inline graphic we calculated are very close to the values used in the refined wSSA which were obtained by making 105 runs of the refined wSSA for each of seven guessed values of γ. In contrast, we do not need to guess the values of parameters but calculate them analytically, and all the information needed in our calculation was obtained from 103 of Gillespie's exact SSA, which incurs negligible computational overhead.

When θ = 25, we have η = -25. Using (23) and Inline graphic, we obtained κ = 3. Substituting κ into (24), we got Inline graphic, Inline graphic and Inline graphic. Similar to the previous calculation, we got Inline graphic, Inline graphic, Inline graphic and Inline graphic and then calculated the probabilities of other reactions from (25). Again Inline graphic, Inline graphic, Inline graphic and Inline graphic we obtained are very close to the values used in the refined wSSA.

Table 3 lists the simulation results obtained from 106 runs of the wNRMps, the wSSAps and the refined wSSA for θ = 40 and 25. It is seen that the estimated probability Inline graphic and variance σ2 are almost identical for all three methods, which is expected because the probability of each reaction in three methods is almost the same. This implies that all three methods may have used near optimal values for the importance sampling parameters. However, in the previous two systems, the parameters used by the refined wSSA are far away from their optimal values, because the wSSAps and the wNRMps provided much lower variance than the refined wSSA. It is also seen from Table 3 that the wSSAps used almost the same CPU time as that used by the refined wSSA and that the wNRMps used about 80% of the CPU time of the refined wSSA. Again, the CPU time of the refined wSSA does not include the time needed to find the optimal value of δ. Figure 3 depicts the standard deviation of the estimated probability versus the number of simulation runs n for the wSSAps and the refined wSSA. Since the wNRMps provides almost the same standard deviation as the wSSAps, we did not plot it in the figure. It is again seen that the wSSAps and the refined wSSA yield almost the same standard deviation for all values of n in this case. It was demonstrated in [24] that the dwSSA yielded comparable variance as the refined wSSA. Therefore, our parameter selection method offers similar performance to the dwSSA in this example.

Table 3.

Estimated probability of the rare event Inline graphic and the sample variance σ2 as well as the CPU TIME (in s) with 106 runs of the wNRMps, the wSSAps and the refined wSSA for the enzyme futile cycle model (35): (a) θ = 25 and (b) θ = 40

(a) Inline graphic σ 2 Time
wNRMps 1.74 × 10-7 1.81 × 10-13 4183.2
wSSAps 1.74 × 10-7 1.80 × 10-13 5316.9
Refined wSSA 1.74 × 10-7 1.61 × 10-13 5337.2

(b) Inline graphic σ 2 Time

wNRMps 4.21 × 10-2 1.51 × 10-3 3589.4
wSSAps 4.21 × 10-2 1.51 × 10-3 4388.3
Refined wSSA 4.21 × 10-2 1.51 × 10-3 4406.6

Figure 3.

Figure 3

The SD Inline graphic of the estimated probability versus the number of simulation runs n obtained with the refined wSSA and the wSSAps for the enzymatic futile cycle model (35) with c1 = c2 = c4 = c5 = 1, c3 = c6 = 0.1, X1(0) = X4(0) = 1, X2(0) = X5(0) = 50 and X3(0) = X6(0) = 0 for θ = 25 and 40.

6 Conclusion

The wSSA and the refined wSSA are innovative variation of Gillespie's standard SSA. They provide an efficient way for estimating the probability of rare events that occur in chemical reaction systems with an extremely low probability in a given time period. The wSSA was developed based on the directed method of the SSA. In this paper, we developed an alternative wNRM for estimating the probability of the rave event. We also devised a systematic method for selecting the values of importance sampling parameters, which is absent in the wSSA and the refined wSSA.

This parameter selection method was then incorporated into the wSSA and the wNRM. Numerical examples demonstrated that comparing with the refined wSSA and the dwSSA, the wSSA and the wNRM with our parameter selection procedure could substantially reduce the variance of the estimated probability of the rare event and speed up simulation.

Abbreviations

NRM: next reaction method; wNRM: weighted NRM; wSSA: weighted stochastic simulation algorithm.

Competing interets

The author declares that they have no competing interests.

Contributor Information

Zhouyi Xu, Email: z.xu@umiami.edu.

Xiaodong Cai, Email: x.cai@miami.edu.

Acknowledgements

This work was supported by the National Science Foundation (NSF) under NSF CAREER Award no. 0746882.

References

  1. Kærn M, Elston TC, Blake WJ, Collins JJ. Stochasticity in gene expression: from theories to phenotypes. Nat Rev Genet. 2005;6:451–464. doi: 10.1038/nrg1615. [DOI] [PubMed] [Google Scholar]
  2. Gillespie DT. A general method for numerically simulating the stochastic time evolution of coupled chemical reactions. J Comput Phys. 1976;22:403–434. doi: 10.1016/0021-9991(76)90041-3. [DOI] [Google Scholar]
  3. Gillespie DT. Exact stochastic simulation of coupled chemical reaction. J Phys Chem. 1977;81:2340–2361. doi: 10.1021/j100540a008. [DOI] [Google Scholar]
  4. Gibson MA, Bruck J. Exact stochastic simulation of chemical systems with many species and many channels. J Phys Chem A. 2000;105:1876–1889. [Google Scholar]
  5. Cao Y, Li H, Petzold LR. Efficient formulation of the stochastic simulation algorithm for chemically reacting systems. J Chem Phys. 2004;121(9):4059–4067. doi: 10.1063/1.1778376. [DOI] [PubMed] [Google Scholar]
  6. Cai X. Exact stochastic simulation of coupled chemical reactions with delays. J Chem Phys. 2007;126:124108. doi: 10.1063/1.2710253. [DOI] [PubMed] [Google Scholar]
  7. Anderson DF. A modified next reaction method for simulating systems with time varying rate constants and systems with delays. J Chem Phys. 2007;127(21):214107. doi: 10.1063/1.2799998. [DOI] [PubMed] [Google Scholar]
  8. Gillespie DT. Approximate accelerated stochastic simulation of chemically reacting systems. J Chem Phys. 2001;115:1716–1733. doi: 10.1063/1.1378322. [DOI] [Google Scholar]
  9. Gillespie DT, Petzold LR. Improved leap-size selection for accelerated stochastic simulation. J Chem Phys. 2003;119(6):8229–8234. doi: 10.1063/1.1613254. [DOI] [Google Scholar]
  10. Tian T, Burrage K. Binomial leap methods for simulating stochastic chemical kinetics. J Chem Phys. 2004;121:10356–10364. doi: 10.1063/1.1810475. [DOI] [PubMed] [Google Scholar]
  11. Chatterjee A, Vlachos DG, Katsoulakis MA. Binomial distribution based τ-leap accelerated stochastic simulation. J Chem Phys. 2005;122:024112. doi: 10.1063/1.1833357. [DOI] [PubMed] [Google Scholar]
  12. Cao Y, Gillespie DT, Petzold LR. Efficient step size selection for the tau-leap simulation method. J Chem Phys. 2006;124(4):044109. doi: 10.1063/1.2159468. [DOI] [PubMed] [Google Scholar]
  13. Cao Y, Gillespie D, Petzold L. Multiscale stochastic simulation algorithm with stochastic partial equilibrium assumption for chemically reacting systems. J Comput Phys. 2005;206:395–411. doi: 10.1016/j.jcp.2004.12.014. [DOI] [Google Scholar]
  14. Goutsias J. Quasiequlibrium approximation of fast reaction kinetics in stochastic biochemical systems. J Chem Phys. 2005;122:184102. doi: 10.1063/1.1889434. [DOI] [PubMed] [Google Scholar]
  15. Haseltine EL, Rawlings JB. Approximate simulation of coupled fast and slow reactions for stochastic chemical kinetics. J Chem Phys. 2002;117(15):6959–6969. doi: 10.1063/1.1505860. [DOI] [Google Scholar]
  16. Rao CV. AP Arkin, Stochastic chemical kinetics and the quasi-steady-state assumption: application to the Gillespie algorithem. J Chem Phys. 2003;18(11):4999–5010. [Google Scholar]
  17. Salis H, Kaznessis Y. Accurate hybrid stochastic simulation of a system of coupled chemical or biochemical reactions. J Chem Phys. 2005;122:54103.1–54103.13. doi: 10.1063/1.1835951. [DOI] [PubMed] [Google Scholar]
  18. Auger A, Chatelain P, Koumoutsakos P. R-leaping: accelerating the stochastic simulation algorithm by reaction leaps. J Chem Phys. 2006;125(8):084103–084115. doi: 10.1063/1.2218339. [DOI] [PubMed] [Google Scholar]
  19. Cai X, Xu Z. K-leap methods for accelerating stochastic simulation of chemically reacting systems. J Chem Phys. 2007;126(7):074102. doi: 10.1063/1.2436869. [DOI] [PubMed] [Google Scholar]
  20. Csete M, Doyle J. Bow ties, metabolism and disease. Trends Biotechnol. 2004;22:446–450. doi: 10.1016/j.tibtech.2004.07.007. [DOI] [PubMed] [Google Scholar]
  21. Egger G, Liang G, Aparicio A, Jones PA. Epigenetics in human disease and prospects for epigenetic therapy. Nature. 2004;429:457. doi: 10.1038/nature02625. [DOI] [PubMed] [Google Scholar]
  22. Kuwahara H, Mura I. An efficient and exact stochastic simulation method to analyze rare events in biochemical systems. J Chem Phys. 2008;129:165101. doi: 10.1063/1.2987701. [DOI] [PubMed] [Google Scholar]
  23. Gillespie DT, Roh M, Petzold LR. Refining the weighted stochastic simulation algorithm. J Chem Phys. 2009;130:174103. doi: 10.1063/1.3116791. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Daigle BJ. M Roh, DT Gillespie, LR Petzold, Automated estimation of rare event probabilities in biochemical systems. J Chem Phys. 2010;134:044110. doi: 10.1063/1.3522769. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Rubinstein RY, Kroese DP. The Cross-Entropy Method. A Unified Approach to Combinatorial Optimization, Monte-Carlo Simulation and Machine Learning. Springer; 2004. [Google Scholar]
  26. Liu JS. Monte Carlo Strategies in Scientific Computing. Springer; 2001. [Google Scholar]
  27. Bucklew JA. Introduction to Rare Event Simulation. Springer, New York; 2004. [Google Scholar]
  28. Rubino G, Tuffin B, (eds) Rare Event Simulation using Monte Carlo Methods. Wiley, New York; 2009. [Google Scholar]
  29. L'Ecuyer P, Tuffin B. Effective approximation of zero-variance simulation in a reliability setting. Proc. European Simulation Modelling Conf. (ESM'2007), St. Julians, Malta. 2007. pp. 48–57.
  30. Gillespie DT. The chemical Langevin equation. J Chem Phys. 2000;113(1):297–306. doi: 10.1063/1.481811. [DOI] [Google Scholar]
  31. Xu Z, Cai X. Unbiased tau-leap methods for stochastic simulation of chemically reacting systems. J Chem Phys. 2008;128(15):154112. doi: 10.1063/1.2894479. [DOI] [PubMed] [Google Scholar]

Articles from EURASIP Journal on Bioinformatics and Systems Biology are provided here courtesy of Springer

RESOURCES