In probability theory, tau-leaping, or τ-leaping, is an approximate method for the simulation of a stochastic system. It is based on the Gillespie algorithm, performing all reactions for an interval of length tau before updating the propensity functions. By updating the rates less often this sometimes allows for more efficient simulation and thus the consideration of larger systems.
Contents
Many variants of the basic algorithm have been considered.
Algorithm
The algorithm is analogous to the Euler method for deterministic systems, but instead of making a fixed change
the change is
where
Given a state
- Initialise the model with initial conditions
x ( t 0 ) = { X i ( t 0 ) } . - Calculate the event rates
R j ( x ( t ) ) . - Choose a time step
τ . This may be fixed, or by some algorithm dependent on the various event rates. - For each event
E j K j ∼ Poisson ( R j τ ) , which is the number of times each event occurs during the time interval[ t , t + τ ) . - Update the state by
- Repeat from Step 2 until some desired condition is met (e.g. a particular state variable reaches 0, or time
t 1
Algorithm for efficient step size selection
This algorithm is described by Cao et al. The idea is to bound the relative change in each event rate
This algorithm typically requires computing
- For each state variable
X i μ i ( x ) = ∑ j v i j R j ( x ) σ i 2 ( x ) = ∑ j v i j 2 R j ( x ) - For each state variable
X i g i - Calculate time step
τ asτ = min i { max { ϵ X i / g i , 1 } | μ i ( x ) | , max { ϵ X i / g i , 1 } 2 σ i 2 ( x ) }
This computed