GillespieSSA2 {GillespieSSA2}R Documentation

GillespieSSA2: Gillespie's Stochastic Simulation Algorithm for impatient people.

Description

GillespieSSA2 is a fast, scalable, and versatile framework for simulating large systems with Gillespie's Stochastic Simulation Algorithm (SSA). This package is the spiritual successor to the GillespieSSA package originally written by Mario Pineda-Krch.

Details

GillespieSSA2 has the following added benefits:

The SSA methods currently implemented are: Exact (ssa_exact()), Explicit tau-leaping (ssa_etl()), and the Binomial tau-leaping (ssa_btl()).

The stochastic simulation algorithm

The stochastic simulation algorithm (SSA) is a procedure for constructing simulated trajectories of finite populations in continuous time. If Xi(t)X_i(t) is the number of individuals in population ii (i=1,,Ni = 1,\ldots,N) at time tt, the SSA estimates the state vector X(t)(X1(t),,XN(t)) \mathbf{X}(t) \equiv (X_1(t),\ldots,X_N(t)) , given that the system initially (at time t0t_0) was in state X(t0)=x0\mathbf{X}(t_0) = \mathbf{x_0}.

Reactions are single instantaneous events changing at least one of the populations (e.g. birth, death, movement, collision, predation, infection, etc). These cause the state of the system to change over time.

The SSA procedure samples the time τ\tau to the next reaction RjR_j (j=1,,Mj = 1,\ldots,M) and updates the system state X(t)\mathbf{X}(t) accordingly.

Each reaction RjR_j is characterized mathematically by two quantities; its state-change vector νj\bm{\nu_j} and its propensity function aj(x)a_j(\mathbf{x}). The state-change vector is defined as νj(ν1j,,νNj)\bm{\nu}_j \equiv ( \nu_{1j},\ldots,\nu_{Nj} ), where νij \nu_{ij} is the change in the number of individuals in population ii caused by one reaction of type jj. The propensity function is defined as aj(x)a_j(\mathbf{x}), where aj(x)dta_j(\mathbf{x})dt is the probability that a particular reaction jj will occur in the next infinitesimal time interval [t,t+dt]\left[t,t+dt\right].

Contents of this package

See Also

ssa() for more explanation on how to use GillespieSSA2


[Package GillespieSSA2 version 0.3.0 Index]