encyclopegia.org

Gillespie algorithm

In probability theory and computational science, the Gillespie algorithm, also known as the stochastic simulation algorithm (SSA), is a method for generating statistically exact sample trajectories of certain continuous-time Markov jump processes. It is especially associated with the simulation of coupled chemical reaction systems. Daniel Gillespie presented the method in 1976 and developed it further in 1977. The method is widely used in computational systems biology, particularly when the numbers of reacting molecules are small enough that stochastic fluctuations are important. Gillespie-type algorithms are also used in network epidemiology to simulate stochastic epidemic spreading on complex networks, including continuous-time SI, SIS, and SIR processes. Mathematically, the algorithm is a form of dynamic Monte Carlo method and is closely related to kinetic Monte Carlo methods.

In probability theory and computational science, the Gillespie algorithm, also known as the stochastic simulation algorithm (SSA), is a method for generating statistically exact sample trajectories of certain continuous-time Markov jump processes. It is especially associated with the simulation of coupled chemical reaction systems. Daniel Gillespie presented the method in 1976 and developed it further in 1977. The method is widely used in computational systems biology, particularly when the numbers of reacting molecules are small enough that stochastic fluctuations are important. Gillespie-type algorithms are also used in network epidemiology to simulate stochastic epidemic spreading on complex networks, including continuous-time SI, SIS, and SIR processes. Mathematically, the algorithm is a form of dynamic Monte Carlo method and is closely related to kinetic Monte Carlo methods. a_0(\boldsymbol{x})=\sum_j a_j(\boldsymbol{x}). Provided that the process is Markovian, the waiting time \tau until the next event is exponentially distributed with rate a_0(\boldsymbol{x}) . The joint probability density that the next event occurs after a waiting time \tau and is reaction j is p(\tau,j\mid\boldsymbol{x},t)=a_j(\boldsymbol{x})\exp[-a_0(\boldsymbol{x})\tau]. Thus, the simulation requires two random choices: the time of the next event and which event occurs. Using two independent pseudorandom numbers r_1 and r_2 , uniformly distributed on (0,1) , the waiting time can be generated as \tau=\frac{1}{a_0(\boldsymbol{x})}\ln\left(\frac{1}{r_1}\right). The next reaction j is the smallest integer satisfying \sum_{j'=1}^{j} a_{j'}(\boldsymbol{x}) > r_2 a_0(\boldsymbol{x}). Initialize the time t=t_0 and state \boldsymbol{x}=\boldsymbol{x}_0 . Evaluate each propensity a_j(\boldsymbol{x}) and their total a_0(\boldsymbol{x}) . Generate the waiting time \tau and select the next reaction j . Advance the time according to t\leftarrow t+\tau . Update the state according to \boldsymbol{x}\leftarrow\boldsymbol{x}+\boldsymbol{\nu}_j , where \boldsymbol{\nu}_j is the state-change vector associated with reaction j . Record the state if required and repeat until the chosen stopping condition is reached. Each realization produced in this way is a sample trajectory of the corresponding stochastic process. A + B AB There are two possible reactions. An molecule and a molecule can combine to produce an dimer, or an existing dimer can dissociate. Let the rate constant for dimer formation be k_\mathrm{D} and the rate constant for dissociation be k_\mathrm{B} . If the system contains n_\mathrm{A} molecules of , n_\mathrm{B} molecules of , and n_\mathrm{AB} dimers, the two propensities are a_1=k_\mathrm{D}n_\mathrm{A}n_\mathrm{B} and a_2=k_\mathrm{B}n_\mathrm{AB}. The total reaction propensity is therefore a_0=k_\mathrm{D}n_\mathrm{A}n_\mathrm{B}+k_\mathrm{B}n_\mathrm{AB}. The waiting time until the next reaction is sampled from an exponential distribution with mean 1/a_0 . Once the waiting time has been generated, the probability that the next event is dimer formation is P(\mathrm{A+B\rightarrow AB})=\frac{k_\mathrm{D}n_\mathrm{A}n_\mathrm{B}}{a_0}, while the probability of dissociation is P(\mathrm{AB\rightarrow A+B})=\frac{k_\mathrm{B}n_\mathrm{AB}}{a_0}. If dimer formation occurs, n_\mathrm{A} and n_\mathrm{B} each decrease by one and n_\mathrm{AB} increases by one. If dissociation occurs, the opposite update is made. Repeatedly sampling the waiting time and reaction type generates one stochastic trajectory of the system.

References

  1. Oscillatory Regulation of hes1 : Discrete Stochastic Delay Modelling and Simulation · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Oscillatory Regulation of hes1 : Discrete Stochastic Delay Modelling and Simulation." Barrio, Manuel; Burrage, Kevin; Leier, André; Tian, Tianhai (2006). 2026-11-17. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1560403. Accessed 24 November 2026.

    Chicago "Oscillatory Regulation of hes1 : Discrete Stochastic Delay Modelling and Simulation." Barrio, Manuel; Burrage, Kevin; Leier, André; Tian, Tianhai (2006). 2026-11-17. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1560403.

    APA Barrio, Manuel; Burrage, Kevin; Leier, André; Tian, Tianhai (2006). (2026). Oscillatory Regulation of hes1 : Discrete Stochastic Delay Modelling and Simulation. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1560403

  2. Stochastic Processes or the Statistics of Change · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Stochastic Processes or the Statistics of Change." Bartlett, Maurice S. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Stochastic Processes or the Statistics of Change." Bartlett, Maurice S. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Bartlett, Maurice S. (2026). Stochastic Processes or the Statistics of Change. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  3. Delay-induced stochastic oscillations in gene regulation · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Delay-induced stochastic oscillations in gene regulation." Bratsun, Dmitri; Volfson, Dmitri; Hasty, Jeff; Tsimring, Lev S. 2026-11-17. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1253555. Accessed 24 November 2026.

    Chicago "Delay-induced stochastic oscillations in gene regulation." Bratsun, Dmitri; Volfson, Dmitri; Hasty, Jeff; Tsimring, Lev S. 2026-11-17. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1253555.

    APA Bratsun, Dmitri; Volfson, Dmitri; Hasty, Jeff; Tsimring, Lev S. (2026). Delay-induced stochastic oscillations in gene regulation. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1253555

  4. Exact stochastic simulation of coupled chemical reactions with delays · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Exact stochastic simulation of coupled chemical reactions with delays." Cai, Xiaodong (2007). 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier). Accessed 24 November 2026.

    Chicago "Exact stochastic simulation of coupled chemical reactions with delays." Cai, Xiaodong (2007). 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier).

    APA Cai, Xiaodong (2007). (2026). Exact stochastic simulation of coupled chemical reactions with delays. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bibcode_(identifier)

  5. Topics in the Theory of Markoff Chains · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Topics in the Theory of Markoff Chains." Doob, Joseph L. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Topics in the Theory of Markoff Chains." Doob, Joseph L. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Doob, Joseph L. (2026). Topics in the Theory of Markoff Chains. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  6. Markoff Chains—Denumerable Case · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Markoff Chains—Denumerable Case." Doob, Joseph L. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Markoff Chains—Denumerable Case." Doob, Joseph L. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Doob, Joseph L. (2026). Markoff Chains—Denumerable Case. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  7. On the Integro-Differential Equations of Purely Discontinuous Markoff Processes · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "On the Integro-Differential Equations of Purely Discontinuous Markoff Processes." Feller, William (1940). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "On the Integro-Differential Equations of Purely Discontinuous Markoff Processes." Feller, William (1940). 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Feller, William (1940). (2026). On the Integro-Differential Equations of Purely Discontinuous Markoff Processes. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  8. Efficient Exact Stochastic Simulation of Chemical Systems with Many Species and Many Channels · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Efficient Exact Stochastic Simulation of Chemical Systems with Many Species and Many Channels." Gibson, Michael A. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier). Accessed 24 November 2026.

    Chicago "Efficient Exact Stochastic Simulation of Chemical Systems with Many Species and Many Channels." Gibson, Michael A. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier).

    APA Gibson, Michael A. (2026). Efficient Exact Stochastic Simulation of Chemical Systems with Many Species and Many Channels. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bibcode_(identifier)

  9. A General Method for Numerically Simulating the Stochastic Time Evolution of Coupled Chemical Reactions · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "A General Method for Numerically Simulating the Stochastic Time Evolution of Coupled Chemical Reactions." a b Gillespie, Daniel T. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier). Accessed 24 November 2026.

    Chicago "A General Method for Numerically Simulating the Stochastic Time Evolution of Coupled Chemical Reactions." a b Gillespie, Daniel T. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier).

    APA a b Gillespie, Daniel T. (2026). A General Method for Numerically Simulating the Stochastic Time Evolution of Coupled Chemical Reactions. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bibcode_(identifier)

  10. Exact Stochastic Simulation of Coupled Chemical Reactions · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Exact Stochastic Simulation of Coupled Chemical Reactions." a b c d Gillespie, Daniel T. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Exact Stochastic Simulation of Coupled Chemical Reactions." a b c d Gillespie, Daniel T. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA a b c d Gillespie, Daniel T. (2026). Exact Stochastic Simulation of Coupled Chemical Reactions. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  11. Stochastic Simulation of Chemical Kinetics · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Stochastic Simulation of Chemical Kinetics." a b c d e f Gillespie, Daniel T. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier). Accessed 24 November 2026.

    Chicago "Stochastic Simulation of Chemical Kinetics." a b c d e f Gillespie, Daniel T. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier).

    APA a b c d e f Gillespie, Daniel T. (2026). Stochastic Simulation of Chemical Kinetics. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bibcode_(identifier)

  12. Reaction Factoring and Bipartite Update Graphs Accelerate the Gillespie Algorithm for Large-Scale Biochemical Systems · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Reaction Factoring and Bipartite Update Graphs Accelerate the Gillespie Algorithm for Large-Scale Biochemical Systems." Indurkhya, Sagar; Beal, Jacob S. 2026-11-17. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2798956. Accessed 24 November 2026.

    Chicago "Reaction Factoring and Bipartite Update Graphs Accelerate the Gillespie Algorithm for Large-Scale Biochemical Systems." Indurkhya, Sagar; Beal, Jacob S. 2026-11-17. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2798956.

    APA Indurkhya, Sagar; Beal, Jacob S. (2026). Reaction Factoring and Bipartite Update Graphs Accelerate the Gillespie Algorithm for Large-Scale Biochemical Systems. Retrieved November 24, 2026, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2798956

  13. An Artificial Realization of a Simple · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "An Artificial Realization of a Simple." Kendall, David G. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "An Artificial Realization of a Simple." Kendall, David G. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Kendall, David G. (2026). An Artificial Realization of a Simple. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  14. Über die analytischen Methoden in der Wahrscheinlichkeitsrechnung · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Über die analytischen Methoden in der Wahrscheinlichkeitsrechnung." Kolmogorov, Andrey N. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Über die analytischen Methoden in der Wahrscheinlichkeitsrechnung." Kolmogorov, Andrey N. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Kolmogorov, Andrey N. (2026). Über die analytischen Methoden in der Wahrscheinlichkeitsrechnung. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  15. Simulating epidemic peak dynamics on complex networks using efficient Gillespie algorithms · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Simulating epidemic peak dynamics on complex networks using efficient Gillespie algorithms." a b Kuryliak, Yulian; Emmerich, Michael T. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Simulating epidemic peak dynamics on complex networks using efficient Gillespie algorithms." a b Kuryliak, Yulian; Emmerich, Michael T. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA a b Kuryliak, Yulian; Emmerich, Michael T. (2026). Simulating epidemic peak dynamics on complex networks using efficient Gillespie algorithms. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  16. A new class of highly efficient exact stochastic simulation algorithms for chemical reaction networks · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "A new class of highly efficient exact stochastic simulation algorithms for chemical reaction networks." Ramaswamy, Rajesh; González-Segredo, Nélido; Sbalzarini, Ivo F. 2026-11-17. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 24 November 2026.

    Chicago "A new class of highly efficient exact stochastic simulation algorithms for chemical reaction networks." Ramaswamy, Rajesh; González-Segredo, Nélido; Sbalzarini, Ivo F. 2026-11-17. https://en.wikipedia.org/wiki/ArXiv_(identifier).

    APA Ramaswamy, Rajesh; González-Segredo, Nélido; Sbalzarini, Ivo F. (2026). A new class of highly efficient exact stochastic simulation algorithms for chemical reaction networks. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)

  17. A partial-propensity variant of the composition-rejection stochastic simulation algorithm for chemical reaction networks · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "A partial-propensity variant of the composition-rejection stochastic simulation algorithm for chemical reaction networks." Ramaswamy, Rajesh; Sbalzarini, Ivo F. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "A partial-propensity variant of the composition-rejection stochastic simulation algorithm for chemical reaction networks." Ramaswamy, Rajesh; Sbalzarini, Ivo F. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Ramaswamy, Rajesh; Sbalzarini, Ivo F. (2026). A partial-propensity variant of the composition-rejection stochastic simulation algorithm for chemical reaction networks. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  18. A partial-propensity formulation of the stochastic simulation algorithm for chemical reaction networks with delays · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "A partial-propensity formulation of the stochastic simulation algorithm for chemical reaction networks with delays." Ramaswamy, Rajesh; Sbalzarini, Ivo F. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "A partial-propensity formulation of the stochastic simulation algorithm for chemical reaction networks with delays." Ramaswamy, Rajesh; Sbalzarini, Ivo F. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Ramaswamy, Rajesh; Sbalzarini, Ivo F. (2026). A partial-propensity formulation of the stochastic simulation algorithm for chemical reaction networks with delays. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  19. Stiffness in stochastic chemically reacting systems: The implicit tau-leaping method · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "Stiffness in stochastic chemically reacting systems: The implicit tau-leaping method." Rathinam, Muruhan; Petzold, Linda R. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier). Accessed 24 November 2026.

    Chicago "Stiffness in stochastic chemically reacting systems: The implicit tau-leaping method." Rathinam, Muruhan; Petzold, Linda R. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier).

    APA Rathinam, Muruhan; Petzold, Linda R. (2026). Stiffness in stochastic chemically reacting systems: The implicit tau-leaping method. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bibcode_(identifier)

  20. A constant-time kinetic Monte Carlo algorithm for simulation of large biochemical reaction networks · retrieved 2026-11-17 · rev 1373866241
    Cite this reference

    MLA "A constant-time kinetic Monte Carlo algorithm for simulation of large biochemical reaction networks." Slepoy, Alexander; Thompson, Aidan P. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier). Accessed 24 November 2026.

    Chicago "A constant-time kinetic Monte Carlo algorithm for simulation of large biochemical reaction networks." Slepoy, Alexander; Thompson, Aidan P. 2026-11-17. https://en.wikipedia.org/wiki/Bibcode_(identifier).

    APA Slepoy, Alexander; Thompson, Aidan P. (2026). A constant-time kinetic Monte Carlo algorithm for simulation of large biochemical reaction networks. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Bibcode_(identifier)

Cite this article

MLA

"Gillespie algorithm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/gillespie-algorithm. Accessed 24 November 2026.

Chicago

"Gillespie algorithm." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/gillespie-algorithm.

APA

encyclopegia.org. (2026). Gillespie algorithm. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/gillespie-algorithm

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Belarus Free Trade Union

enwiki · references available

Contra viento y marea (Mexican TV series)

enwiki · references available

Gulf Coast box turtle

enwiki · references available

HMCS Brandon

enwiki · references available

FTUB

enwiki · references available

Three Sisters (1970 film)

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1373866241 · 0.5 · snapshot enwiki-001373866241

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.