122
The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modellin Process algebras for quantitative analysis: Lecture 9 — Stochastic simulation Stephen Gilmore School of Informatics The University of Edinburgh Scotland February 11, 2010

Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Process algebras for quantitative analysis:Lecture 9 — Stochastic simulation

Stephen Gilmore

School of InformaticsThe University of Edinburgh

Scotland

February 11, 2010

Page 2: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background

The modelling of chemical reactions using deterministic ratelaws has proven extremely successful in both chemistry andbiochemistry for many years.

This deterministic approach has at its core the law of massaction, an empirical law giving a simple relation betweenreaction rates and molecular component concentrations.

Given knowledge of initial molecular concentrations, the lawof mass action provides a complete picture of the componentconcentrations at all future time points.

Page 3: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background

The modelling of chemical reactions using deterministic ratelaws has proven extremely successful in both chemistry andbiochemistry for many years.

This deterministic approach has at its core the law of massaction, an empirical law giving a simple relation betweenreaction rates and molecular component concentrations.

Given knowledge of initial molecular concentrations, the lawof mass action provides a complete picture of the componentconcentrations at all future time points.

Page 4: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background

The modelling of chemical reactions using deterministic ratelaws has proven extremely successful in both chemistry andbiochemistry for many years.

This deterministic approach has at its core the law of massaction, an empirical law giving a simple relation betweenreaction rates and molecular component concentrations.

Given knowledge of initial molecular concentrations, the lawof mass action provides a complete picture of the componentconcentrations at all future time points.

Page 5: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Law of Mass Action

The law of mass action considers chemical reactions to bemacroscopic under convective or diffusive stirring, continuousand deterministic.

These are evidently simplifications, as it is well understoodthat chemical reactions involve discrete, random collisionsbetween individual molecules.

As we consider smaller and smaller systems, the validity of acontinuous approach becomes ever more tenuous.

As such, the adequacy of the law of mass action has beenquestioned for describing intracellular reactions.

Page 6: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Law of Mass Action

The law of mass action considers chemical reactions to bemacroscopic under convective or diffusive stirring, continuousand deterministic.

These are evidently simplifications, as it is well understoodthat chemical reactions involve discrete, random collisionsbetween individual molecules.

As we consider smaller and smaller systems, the validity of acontinuous approach becomes ever more tenuous.

As such, the adequacy of the law of mass action has beenquestioned for describing intracellular reactions.

Page 7: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Law of Mass Action

The law of mass action considers chemical reactions to bemacroscopic under convective or diffusive stirring, continuousand deterministic.

These are evidently simplifications, as it is well understoodthat chemical reactions involve discrete, random collisionsbetween individual molecules.

As we consider smaller and smaller systems, the validity of acontinuous approach becomes ever more tenuous.

As such, the adequacy of the law of mass action has beenquestioned for describing intracellular reactions.

Page 8: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Law of Mass Action

The law of mass action considers chemical reactions to bemacroscopic under convective or diffusive stirring, continuousand deterministic.

These are evidently simplifications, as it is well understoodthat chemical reactions involve discrete, random collisionsbetween individual molecules.

As we consider smaller and smaller systems, the validity of acontinuous approach becomes ever more tenuous.

As such, the adequacy of the law of mass action has beenquestioned for describing intracellular reactions.

Page 9: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Application of Stochastic Models

Arguments for the application of stochastic models for chemicalreactions come from at least three directions, since the models:

1 take into consideration the discrete character of the quantityof components and the inherently random character of thephenomena;

2 are in accordance with the theories of thermodynamics andstochastic processes; and

3 are appropriate to describe “small systems” and instabilityphenomena.

Page 10: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Application of Stochastic Models

Arguments for the application of stochastic models for chemicalreactions come from at least three directions, since the models:

1 take into consideration the discrete character of the quantityof components and the inherently random character of thephenomena;

2 are in accordance with the theories of thermodynamics andstochastic processes; and

3 are appropriate to describe “small systems” and instabilityphenomena.

Page 11: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Application of Stochastic Models

Arguments for the application of stochastic models for chemicalreactions come from at least three directions, since the models:

1 take into consideration the discrete character of the quantityof components and the inherently random character of thephenomena;

2 are in accordance with the theories of thermodynamics andstochastic processes; and

3 are appropriate to describe “small systems” and instabilityphenomena.

Page 12: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Simulation

Stochastic simulation methods

Nothing new?

Not just discrete-event simulation

Specialist method well-suited to large-scale systems

Page 13: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Simulation

Stochastic simulation methods

Nothing new?

Not just discrete-event simulation

Specialist method well-suited to large-scale systems

Page 14: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Simulation

Stochastic simulation methods

Nothing new?

Not just discrete-event simulation

Specialist method well-suited to large-scale systems

Page 15: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Background: Simulation

Stochastic simulation methods

Nothing new?

Not just discrete-event simulation

Specialist method well-suited to large-scale systems

Page 16: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Acknowledgements

H. Bolouri, J.T. Bradley, J. Bruck, K. Burrage, M. Calder, Y. Cao,K.-H. Cho, A.J. Duguid, C. van Gend, M.A. Gibson, D.T. Gillespie,J. Hillston, M. Khammash, W. Kolch, U. Kummer, D. Orrell,L. Petzold, S. Ramsey, H.E. Samad, S. Schnell, N.T. Thomas,T.E. Turner, M. Ullah, O. Wolkenhauer

Page 17: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Outline

1 The deterministic and stochastic approaches

2 Stochastic simulation algorithms

3 Comparing stochastic simulation and ODEs

4 Modelling challenges

Page 18: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Outline

1 The deterministic and stochastic approaches

2 Stochastic simulation algorithms

3 Comparing stochastic simulation and ODEs

4 Modelling challenges

Page 19: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Deterministic: The law of mass action

The fundamental empirical law governing reaction rates inbiochemistry is the law of mass action.

This states that for a reaction in a homogeneous, free medium, thereaction rate will be proportional to the concentrations of theindividual reactants involved.

Page 20: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Deterministic: The law of mass action

The fundamental empirical law governing reaction rates inbiochemistry is the law of mass action.

This states that for a reaction in a homogeneous, free medium, thereaction rate will be proportional to the concentrations of theindividual reactants involved.

Page 21: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Deterministic: Michaelis-Menten kinetics

Consider the simple Michaelis-Menten reaction

S + Ek1

k−1

Ck2

→ E + P

For example, we have

dC

dt= k1SE − (k−1 + k2)C

Hence, we can express any chemical system as a collection ofcoupled non-linear first order differential equations.

Page 22: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Deterministic: Michaelis-Menten kinetics

Consider the simple Michaelis-Menten reaction

S + Ek1

k−1

Ck2

→ E + P

For example, we have

dC

dt= k1SE − (k−1 + k2)C

Hence, we can express any chemical system as a collection ofcoupled non-linear first order differential equations.

Page 23: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Deterministic: Michaelis-Menten kinetics

Consider the simple Michaelis-Menten reaction

S + Ek1

k−1

Ck2

→ E + P

For example, we have

dC

dt= k1SE − (k−1 + k2)C

Hence, we can express any chemical system as a collection ofcoupled non-linear first order differential equations.

Page 24: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Random processes

Whereas the deterministic approach outlined above isessentially an empirical law, derived from in vitro experiments,the stochastic approach is far more physically rigorous.

Fundamental to the principle of stochastic modelling is theidea that molecular reactions are essentially random processes;it is impossible to say with complete certainty the time atwhich the next reaction within a volume will occur.

Page 25: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Random processes

Whereas the deterministic approach outlined above isessentially an empirical law, derived from in vitro experiments,the stochastic approach is far more physically rigorous.

Fundamental to the principle of stochastic modelling is theidea that molecular reactions are essentially random processes;it is impossible to say with complete certainty the time atwhich the next reaction within a volume will occur.

Page 26: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Random processes

Whereas the deterministic approach outlined above isessentially an empirical law, derived from in vitro experiments,the stochastic approach is far more physically rigorous.

Fundamental to the principle of stochastic modelling is theidea that molecular reactions are essentially random processes;it is impossible to say with complete certainty the time atwhich the next reaction within a volume will occur.

Page 27: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Predictability of macroscopic states

In macroscopic systems, with a large number of interactingmolecules, the randomness of this behaviour averages out sothat the overall macroscopic state of the system becomeshighly predictable.

It is this property of large scale random systems that enables adeterministic approach to be adopted; however, the validity ofthis assumption becomes strained in in vivo conditions as weexamine small-scale cellular reaction environments withlimited reactant populations.

Page 28: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Predictability of macroscopic states

In macroscopic systems, with a large number of interactingmolecules, the randomness of this behaviour averages out sothat the overall macroscopic state of the system becomeshighly predictable.

It is this property of large scale random systems that enables adeterministic approach to be adopted; however, the validity ofthis assumption becomes strained in in vivo conditions as weexamine small-scale cellular reaction environments withlimited reactant populations.

Page 29: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Predictability of macroscopic states

In macroscopic systems, with a large number of interactingmolecules, the randomness of this behaviour averages out sothat the overall macroscopic state of the system becomeshighly predictable.

It is this property of large scale random systems that enables adeterministic approach to be adopted; however, the validity ofthis assumption becomes strained in in vivo conditions as weexamine small-scale cellular reaction environments withlimited reactant populations.

Page 30: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Propensity function

As explicitly derived by Gillespie, the stochastic model uses basicNewtonian physics and thermodynamics to arrive at a form oftentermed the propensity function that gives the probability aµ ofreaction µ occurring in time interval (t, t + dt).

aµdt = hµcµdt

where the M reaction mechanisms are given an arbitrary index µ(1 ≤ µ ≤ M), hµ denotes the number of possible combinations ofreactant molecules involved in reaction µ, and cµ is a stochasticrate constant.

Page 31: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Grand probability function

The stochastic formulation proceeds by considering the grandprobability function Pr(X; t) ≡ probability that there will bepresent in the volume V at time t, Xi of species Si , whereX ≡ (X1,X2, . . . XN) is a vector of molecular species populations.

Evidently, knowledge of this function provides a completeunderstanding of the probability distribution of all possible statesat all times.

Page 32: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Grand probability function

The stochastic formulation proceeds by considering the grandprobability function Pr(X; t) ≡ probability that there will bepresent in the volume V at time t, Xi of species Si , whereX ≡ (X1,X2, . . . XN) is a vector of molecular species populations.

Evidently, knowledge of this function provides a completeunderstanding of the probability distribution of all possible statesat all times.

Page 33: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Infinitesimal time interval

By considering a discrete infinitesimal time interval (t, t + dt) inwhich either 0 or 1 reactions occur we see that there exist onlyM + 1 distinct configurations at time t that can lead to the stateX at time t + dt.

Pr(X; t + dt)

= Pr(X; t) Pr(no state change over dt)

+∑M

µ=1 Pr(X− vµ; t) Pr(state change to X over dt)

where vµ is a stoichiometric vector defining the result of reaction µon state vector X, i.e. X→ X + vµ after an occurrence ofreaction µ.

Page 34: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Infinitesimal time interval

By considering a discrete infinitesimal time interval (t, t + dt) inwhich either 0 or 1 reactions occur we see that there exist onlyM + 1 distinct configurations at time t that can lead to the stateX at time t + dt.

Pr(X; t + dt)

= Pr(X; t) Pr(no state change over dt)

+∑M

µ=1 Pr(X− vµ; t) Pr(state change to X over dt)

where vµ is a stoichiometric vector defining the result of reaction µon state vector X, i.e. X→ X + vµ after an occurrence ofreaction µ.

Page 35: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Infinitesimal time interval

By considering a discrete infinitesimal time interval (t, t + dt) inwhich either 0 or 1 reactions occur we see that there exist onlyM + 1 distinct configurations at time t that can lead to the stateX at time t + dt.

Pr(X; t + dt)

= Pr(X; t) Pr(no state change over dt)

+∑M

µ=1 Pr(X− vµ; t) Pr(state change to X over dt)

where vµ is a stoichiometric vector defining the result of reaction µon state vector X, i.e. X→ X + vµ after an occurrence ofreaction µ.

Page 36: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Infinitesimal time interval

By considering a discrete infinitesimal time interval (t, t + dt) inwhich either 0 or 1 reactions occur we see that there exist onlyM + 1 distinct configurations at time t that can lead to the stateX at time t + dt.

Pr(X; t + dt)

= Pr(X; t) Pr(no state change over dt)

+∑M

µ=1 Pr(X− vµ; t) Pr(state change to X over dt)

where vµ is a stoichiometric vector defining the result of reaction µon state vector X, i.e. X→ X + vµ after an occurrence ofreaction µ.

Page 37: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: State change probabilities

Pr(no state change over dt)

1−M∑

µ=1

aµ(X)dt

Pr(state change to X over dt)

M∑µ=1

Pr(X− vµ; t)aµ(X− vµ)dt

Page 38: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: State change probabilities

Pr(no state change over dt)

1−M∑

µ=1

aµ(X)dt

Pr(state change to X over dt)

M∑µ=1

Pr(X− vµ; t)aµ(X− vµ)dt

Page 39: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Partial derivatives

We are considering the behaviour of the system in the limit as dttends to zero. This leads us to consider partial derivatives, whichare defined thus:

∂ Pr(X; t)

∂t= lim

dt→0

Pr(X; t + dt)− Pr(X; t)

dt

Page 40: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Chemical Master Equation

Applying this, and re-arranging the former, leads us to animportant partial differential equation (PDE) known as theChemical Master Equation (CME).

∂ Pr(X; t)

∂t=

M∑µ=1

aµ(X− vµ) Pr(X− vµ; t)− aµ(X) Pr(X; t)

Page 41: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Chemical Master Equation

Applying this, and re-arranging the former, leads us to animportant partial differential equation (PDE) known as theChemical Master Equation (CME).

∂ Pr(X; t)

∂t=

M∑µ=1

aµ(X− vµ) Pr(X− vµ; t)− aµ(X) Pr(X; t)

Page 42: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Chemical Master Equation

Applying this, and re-arranging the former, leads us to animportant partial differential equation (PDE) known as theChemical Master Equation (CME).

∂ Pr(X; t)

∂t=

M∑µ=1

aµ(X− vµ) Pr(X− vµ; t)− aµ(X) Pr(X; t)

Page 43: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic: Chemical Master Equation

Applying this, and re-arranging the former, leads us to animportant partial differential equation (PDE) known as theChemical Master Equation (CME).

∂ Pr(X; t)

∂t=

M∑µ=1

aµ(X− vµ) Pr(X− vµ; t)− aµ(X) Pr(X; t)

Page 44: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

The problem with the Chemical Master Equation

The CME is really a set of nearly as many coupled ordinarydifferential equations as there are combinations of moleculesthat can exist in the system!

The CME can be solved analytically for only a very few verysimple systems, and numerical solutions are usuallyprohibitively difficult.

D. Gillespie and L. Petzold.

chapter Numerical Simulation for Biochemical Kinetics, in SystemModelling in Cellular Biology, editors Z. Szallasi, J. Stelling and V.Periwal.

MIT Press, 2006.

Page 45: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Outline

1 The deterministic and stochastic approaches

2 Stochastic simulation algorithms

3 Comparing stochastic simulation and ODEs

4 Modelling challenges

Page 46: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic simulation algorithms

Gillespie’s Stochastic Simulation Algorithm (SSA) is essentially anexact procedure for numerically simulating the time evolution of awell-stirred chemically reacting system by taking proper account ofthe randomness inherent in such a system.

It is rigorously based on the same microphysical premise thatunderlies the chemical master equation and gives a more realisticrepresentation of a system’s evolution than the deterministicreaction rate equation (RRE) represented mathematically byODEs.

As with the chemical master equation, the SSA converges, in thelimit of large numbers of reactants, to the same solution as the lawof mass action.

Page 47: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic simulation algorithms

Gillespie’s Stochastic Simulation Algorithm (SSA) is essentially anexact procedure for numerically simulating the time evolution of awell-stirred chemically reacting system by taking proper account ofthe randomness inherent in such a system.

It is rigorously based on the same microphysical premise thatunderlies the chemical master equation and gives a more realisticrepresentation of a system’s evolution than the deterministicreaction rate equation (RRE) represented mathematically byODEs.

As with the chemical master equation, the SSA converges, in thelimit of large numbers of reactants, to the same solution as the lawof mass action.

Page 48: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic simulation algorithms

Gillespie’s Stochastic Simulation Algorithm (SSA) is essentially anexact procedure for numerically simulating the time evolution of awell-stirred chemically reacting system by taking proper account ofthe randomness inherent in such a system.

It is rigorously based on the same microphysical premise thatunderlies the chemical master equation and gives a more realisticrepresentation of a system’s evolution than the deterministicreaction rate equation (RRE) represented mathematically byODEs.

As with the chemical master equation, the SSA converges, in thelimit of large numbers of reactants, to the same solution as the lawof mass action.

Page 49: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s exact SSA (1977)

The algorithm takes time steps of variable length, based onthe rate constants and population size of each chemicalspecies.

The probability of one reaction occurring relative to another isdictated by their relative propensity functions.

According to the correct probability distribution derived fromthe statistical thermodynamics theory, a random variable isthen used to choose which reaction will occur, and anotherrandom variable determines how long the step will last.

The chemical populations are altered according to thestoichiometry of the reaction and the process is repeated.

Page 50: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s exact SSA (1977)

The algorithm takes time steps of variable length, based onthe rate constants and population size of each chemicalspecies.

The probability of one reaction occurring relative to another isdictated by their relative propensity functions.

According to the correct probability distribution derived fromthe statistical thermodynamics theory, a random variable isthen used to choose which reaction will occur, and anotherrandom variable determines how long the step will last.

The chemical populations are altered according to thestoichiometry of the reaction and the process is repeated.

Page 51: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s exact SSA (1977)

The algorithm takes time steps of variable length, based onthe rate constants and population size of each chemicalspecies.

The probability of one reaction occurring relative to another isdictated by their relative propensity functions.

According to the correct probability distribution derived fromthe statistical thermodynamics theory, a random variable isthen used to choose which reaction will occur, and anotherrandom variable determines how long the step will last.

The chemical populations are altered according to thestoichiometry of the reaction and the process is repeated.

Page 52: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s exact SSA (1977)

The algorithm takes time steps of variable length, based onthe rate constants and population size of each chemicalspecies.

The probability of one reaction occurring relative to another isdictated by their relative propensity functions.

According to the correct probability distribution derived fromthe statistical thermodynamics theory, a random variable isthen used to choose which reaction will occur, and anotherrandom variable determines how long the step will last.

The chemical populations are altered according to thestoichiometry of the reaction and the process is repeated.

Page 53: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic simulation: realisations and ensembles

The SSA computes one realisation of a dynamic trajectory of achemically reacting system. Often an ensemble of trajectories iscomputed, to obtain an estimate of the probability density functionof the system.

The dynamic evolution of the probability density function is givenby the Chemical Master Equation.

Page 54: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s SSA is a Monte Carlo Markov Chain simulation

The SSA is a Monte Carlo type method. With the SSA one mayapproximate any variable of interest by generating manytrajectories and observing the statistics of the values of thevariable. Since many trajectories are needed to obtain a reasonableapproximation, the efficiency of the SSA is of critical importance.

Page 55: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Computational cost of Gillespie’s exact algorithm

The cost of this detailed stochastic simulation algorithm is thelikely large amounts of computing time.

The key issue is that the time step for the next reaction can bevery small indeed if we are to guarantee that only one reaction cantake place in a given time interval.

Increasing the molecular population or number of reactionmechanisms necessarily requires a corresponding decrease in thetime interval. The SSA can be very computationally inefficientespecially when there are large numbers of molecules or thepropensity functions are large.

Page 56: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Computational cost of Gillespie’s exact algorithm

The cost of this detailed stochastic simulation algorithm is thelikely large amounts of computing time.

The key issue is that the time step for the next reaction can bevery small indeed if we are to guarantee that only one reaction cantake place in a given time interval.

Increasing the molecular population or number of reactionmechanisms necessarily requires a corresponding decrease in thetime interval. The SSA can be very computationally inefficientespecially when there are large numbers of molecules or thepropensity functions are large.

Page 57: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gibson and Bruck (2000)

Gibson and Bruck refined the first reaction SSA of Gillespie byreducing the number of random variables that need to besimulated.

This can be effective for systems in which some reactions occurmuch more frequently than others.

M.A. Gibson and J. Bruck.

Efficient exact stochastic simulation of chemical systems with manyspecies and many channels.

J. Comp. Phys., 104:1876–1889, 2000.

Page 58: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Variants of SSA

Gillespie developed two different but equivalent formulations of theSSA: the Direct Method (DM) and the First Reaction Method(FRM). A third formulation of the SSA is the Next ReactionMethod (NRM) of Gibson and Bruck. The NRM can be viewed asan extension of the FRM, but it is much more efficient than thelatter.

It was widely believed that Gibson and Bruck’s method (the NextReaction Method) was more efficient than Gillespie’s DirectMethod (DM). This conclusion is based on a count of arithmeticoperations.

Page 59: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Variants of SSA

Gillespie developed two different but equivalent formulations of theSSA: the Direct Method (DM) and the First Reaction Method(FRM). A third formulation of the SSA is the Next ReactionMethod (NRM) of Gibson and Bruck. The NRM can be viewed asan extension of the FRM, but it is much more efficient than thelatter.

It was widely believed that Gibson and Bruck’s method (the NextReaction Method) was more efficient than Gillespie’s DirectMethod (DM). This conclusion is based on a count of arithmeticoperations.

Page 60: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gibson and Bruck challenged (2004)

It was established by Cao, Li and Petzold (2004) that Gibson andBruck’s analysis misses the dominant cost of the NRM, which ismaintaining the priority queue data structure of the tentativereaction times and that good implementations of DM such as theOptimised Direct Method (ODM) have lower asymptoticcomplexity than Gibson and Bruck’s method.

Y. Cao, H. Li, and L. Petzold.

Efficient formulation of the stochastic simulation algorithm forchemically reacting systems.

J. Chem. Phys, 121(9):4059–4067, 2004.

Page 61: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Enhanced stochastic simulation techniques

If the system under study possesses a macroscopically infinitesimaltimescale so that during any dt all of the reaction channels can firemany times, yet none of the propensity functions changeappreciably, then the discrete Markov process as described by theSSA can be approximated by a continuous Markov process.

This Markov process is described by the Chemical LangevinEquation (CLE), which is a stochastic ordinary differential equation(SDE).

Page 62: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Enhanced stochastic simulation techniques

If the system under study possesses a macroscopically infinitesimaltimescale so that during any dt all of the reaction channels can firemany times, yet none of the propensity functions changeappreciably, then the discrete Markov process as described by theSSA can be approximated by a continuous Markov process.

This Markov process is described by the Chemical LangevinEquation (CLE), which is a stochastic ordinary differential equation(SDE).

Page 63: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Enhanced stochastic simulation techniques

If the system under study possesses a macroscopically infinitesimaltimescale so that during any dt all of the reaction channels can firemany times, yet none of the propensity functions changeappreciably, then the discrete Markov process as described by theSSA can be approximated by a continuous Markov process.

This Markov process is described by the Chemical LangevinEquation (CLE), which is a stochastic ordinary differential equation(SDE).

Page 64: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Enhanced stochastic simulation techniques

If the system under study possesses a macroscopically infinitesimaltimescale so that during any dt all of the reaction channels can firemany times, yet none of the propensity functions changeappreciably, then the discrete Markov process as described by theSSA can be approximated by a continuous Markov process.

This Markov process is described by the Chemical LangevinEquation (CLE), which is a stochastic ordinary differential equation(SDE).

Page 65: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Enhanced stochastic simulation techniques

If the system under study possesses a macroscopically infinitesimaltimescale so that during any dt all of the reaction channels can firemany times, yet none of the propensity functions changeappreciably, then the discrete Markov process as described by theSSA can be approximated by a continuous Markov process.

This Markov process is described by the Chemical LangevinEquation (CLE), which is a stochastic ordinary differential equation(SDE).

Page 66: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic Differential Equations

A stochastic differential equation (SDE)

dXt = a(t,Xt)dt + b(t,Xt)dWt

is interpreted as a stochastic integral equation

Xt = Xt0 +

∫ t

t0

a(s,Xs)ds +

∫ t

t0

b(s,Xs)dWs

where the first integral is a Lebesgue (or Riemann) integral foreach sample path and the second integral is usually an Ito integral.

Page 67: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Chemical Langevin Equation

The Langevin equation

dXt = −aXtdt + dWt

is a linear SDE with additive noise. The solution for t0 = 0 is

Xt = X0e−at + e−at

∫ t

0easdWs

Page 68: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s tau-leap method (2001)

Gillespie proposed two new methods, namely the τ -leap methodand the midpoint τ -leap method in order to improve the efficiencyof the SSA while maintaining acceptable losses in accuracy.

Daniel T. Gillespie.

Approximate accelerated stochastic simulation of chemically reactingsystems.

J. Comp. Phys., 115(4):1716–1733, 2001.

The key idea here is to take a larger time step and allow for morereactions to take place in that step, but under the proviso that thepropensity functions do not change too much in that interval. Bymeans of a Poisson approximation, the tau-leaping method can“leap over” many reactions.

Page 69: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s tau-leap method (2001)

Gillespie proposed two new methods, namely the τ -leap methodand the midpoint τ -leap method in order to improve the efficiencyof the SSA while maintaining acceptable losses in accuracy.

Daniel T. Gillespie.

Approximate accelerated stochastic simulation of chemically reactingsystems.

J. Comp. Phys., 115(4):1716–1733, 2001.

The key idea here is to take a larger time step and allow for morereactions to take place in that step, but under the proviso that thepropensity functions do not change too much in that interval. Bymeans of a Poisson approximation, the tau-leaping method can“leap over” many reactions.

Page 70: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s tau-leap method (significance)

For many problems, the tau-leaping method can approximate thestochastic behaviour of the system very well.

The tau-leaping method connects the SSA in the discretestochastic regime to the explicit Euler method for the chemicalLangevin equation in the continuous stochastic regime and theRRE in the continuous deterministic regime.

Page 71: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s tau-leap method (significance)

For many problems, the tau-leaping method can approximate thestochastic behaviour of the system very well.

The tau-leaping method connects the SSA in the discretestochastic regime to the explicit Euler method for the chemicalLangevin equation in the continuous stochastic regime and theRRE in the continuous deterministic regime.

Page 72: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s tau-leap method (significance)

For many problems, the tau-leaping method can approximate thestochastic behaviour of the system very well.

The tau-leaping method connects the SSA in the discretestochastic regime to the explicit Euler method for the chemicalLangevin equation in the continuous stochastic regime and theRRE in the continuous deterministic regime.

Page 73: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s tau-leap method (significance)

For many problems, the tau-leaping method can approximate thestochastic behaviour of the system very well.

The tau-leaping method connects the SSA in the discretestochastic regime to the explicit Euler method for the chemicalLangevin equation in the continuous stochastic regime and theRRE in the continuous deterministic regime.

Page 74: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s tau-leap method (significance)

For many problems, the tau-leaping method can approximate thestochastic behaviour of the system very well.

The tau-leaping method connects the SSA in the discretestochastic regime to the explicit Euler method for the chemicalLangevin equation in the continuous stochastic regime and theRRE in the continuous deterministic regime.

Page 75: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s tau-leap method (drawback)

The use of approximation in Poisson methods leads to thepossibility of negative molecular numbers being predicted —something with no physical explanation.

Page 76: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Binomial leap methods (2004)

Independently Tian and Burrage, and Chatterjee and Vlachos,proposed replacing the use of the Poisson distribution with thebinomial distribution.

Unlike Poisson random variables whose range of sample values isfrom zero to infinity, binomial random variables have a finite rangeof sample values.

Page 77: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s Modified Poisson tau-leap methods (2005)

Gillespie’s modified Poisson tau-leaping method introduces asecond control parameter whose value dials the procedure from theoriginal Poisson tau-leaping method at one extreme to the exactSSA at the other.

Any reaction channel with a positive propensity function which iswithin nc firings of exhausting its reactants is termed a criticalreaction.

Y. Cao, D. Gillespie, and L. Petzold.

Avoiding negative populations in explicit tau leaping.

J. Chem. Phys, 123(054104), 2005.

Page 78: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s Modified Poisson tau-leap methods (2005)

Gillespie’s modified Poisson tau-leaping method introduces asecond control parameter whose value dials the procedure from theoriginal Poisson tau-leaping method at one extreme to the exactSSA at the other.

Any reaction channel with a positive propensity function which iswithin nc firings of exhausting its reactants is termed a criticalreaction.

Y. Cao, D. Gillespie, and L. Petzold.

Avoiding negative populations in explicit tau leaping.

J. Chem. Phys, 123(054104), 2005.

Page 79: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s Modified Poisson tau-leap methods (2006)

The modified algorithm chooses τ in such a way that no more thanone firing of all the critical reactions can occur during the leap.The probability of producing a negative population is reduced tonearly zero.

If a negative population does occur the leap can simply be rejectedand repeated with τ reduced by half, or the entire simulation canbe abandoned and repeated for larger nc .

Y. Cao, D. Gillespie, and L. Petzold.

Efficient stepsize selection for the tau-leaping method.

J. Chem. Phys, 2006.

To appear.

Page 80: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s Modified Poisson tau-leap methods (2006)

The modified algorithm chooses τ in such a way that no more thanone firing of all the critical reactions can occur during the leap.The probability of producing a negative population is reduced tonearly zero.

If a negative population does occur the leap can simply be rejectedand repeated with τ reduced by half, or the entire simulation canbe abandoned and repeated for larger nc .

Y. Cao, D. Gillespie, and L. Petzold.

Efficient stepsize selection for the tau-leaping method.

J. Chem. Phys, 2006.

To appear.

Page 81: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Comparing Poisson and Binomial leap results

Page 82: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Computation time

Original Poisson Binomial Mod. Poissonε Time (s) Leaps Time (s) Leaps Time (s) Leaps

0.03 57 5.15× 105 89 7.75× 105 72 6.31× 105

0.05 36 3.20× 105 85 7.73× 105 47 4.13× 105

Page 83: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Family of stochastic simulation algorithms

FASTEST, BEST

Discrete, exact Continuous, approximate

Modified Poisson τ leap (2005)

τ leap (2001)

Logarithmic Direct Method (2006)

Sorting Direct Method (2005)

Optimised Direct Method (2004)

Next Reaction Method (2000)

Direct Method (1977)

First Reaction Method (1977)

SLOWEST, WORST

Page 84: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Outline

1 The deterministic and stochastic approaches

2 Stochastic simulation algorithms

3 Comparing stochastic simulation and ODEs

4 Modelling challenges

Page 85: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock

To adapt to natural periodicity, such as the alternation of day andnight, most living organisms have developed the capability ofgenerating oscillating expressions of proteins in their cells with aperiod close to 24 hours (circadian rhythm).

The Vilar-Kueh-Barkai-Leibler (VKBL in short) description of thecircadian oscillator incorporates an abstraction of a minimal set ofessential, experimentally determined mechanisms for the circadiansystem.

Page 86: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock

To adapt to natural periodicity, such as the alternation of day andnight, most living organisms have developed the capability ofgenerating oscillating expressions of proteins in their cells with aperiod close to 24 hours (circadian rhythm).

The Vilar-Kueh-Barkai-Leibler (VKBL in short) description of thecircadian oscillator incorporates an abstraction of a minimal set ofessential, experimentally determined mechanisms for the circadiansystem.

Page 87: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock

The VKBL model involves two genes, an activator A and arepressor R, which are transcribed into mRNA andsubsequently translated into proteins.

The activator A binds to the A and R promoters and increasestheir expression rate.

Therefore, A implements a positive loop acting on its owntranscription.

At the same time, R sequesters A to form a complex C ,therefore inhibiting it from binding to the gene promoter andacting as a negative feedback loop.

Page 88: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock

The VKBL model involves two genes, an activator A and arepressor R, which are transcribed into mRNA andsubsequently translated into proteins.

The activator A binds to the A and R promoters and increasestheir expression rate.

Therefore, A implements a positive loop acting on its owntranscription.

At the same time, R sequesters A to form a complex C ,therefore inhibiting it from binding to the gene promoter andacting as a negative feedback loop.

Page 89: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock

The VKBL model involves two genes, an activator A and arepressor R, which are transcribed into mRNA andsubsequently translated into proteins.

The activator A binds to the A and R promoters and increasestheir expression rate.

Therefore, A implements a positive loop acting on its owntranscription.

At the same time, R sequesters A to form a complex C ,therefore inhibiting it from binding to the gene promoter andacting as a negative feedback loop.

Page 90: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock

The VKBL model involves two genes, an activator A and arepressor R, which are transcribed into mRNA andsubsequently translated into proteins.

The activator A binds to the A and R promoters and increasestheir expression rate.

Therefore, A implements a positive loop acting on its owntranscription.

At the same time, R sequesters A to form a complex C ,therefore inhibiting it from binding to the gene promoter andacting as a negative feedback loop.

Page 91: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock

The VKBL model involves two genes, an activator A and arepressor R, which are transcribed into mRNA andsubsequently translated into proteins.

The activator A binds to the A and R promoters and increasestheir expression rate.

Therefore, A implements a positive loop acting on its owntranscription.

At the same time, R sequesters A to form a complex C ,therefore inhibiting it from binding to the gene promoter andacting as a negative feedback loop.

Page 92: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock

The VKBL model involves two genes, an activator A and arepressor R, which are transcribed into mRNA andsubsequently translated into proteins.

The activator A binds to the A and R promoters and increasestheir expression rate.

Therefore, A implements a positive loop acting on its owntranscription.

At the same time, R sequesters A to form a complex C ,therefore inhibiting it from binding to the gene promoter andacting as a negative feedback loop.

Page 93: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock (cartoon)

Page 94: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock (deterministically . . . )

Page 95: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock (. . . and stochastically)

Page 96: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Circadian clock (Conclusions)

For some parameter values a differential equation modelexhibits autonomous oscillations.

These oscillations disappear from the deterministic model asthe degradation rate of the repressor δR is decreased.

The system of ODEs undergoes a bifurcation at this point andthe unique deterministic equilibrium of the system becomesstable.

However, if the effects of molecular noise are incorporated theoscillations in the stochastic system pertain.

This phenomenon is a manifestation of coherence resonance,and illustrates the crucial interplay between noise anddynamics.

Page 97: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Comparing stochastic simulation and ODEs

It is relatively straightforward to contrast the results of the twomethods. We compare the results of 2000 runs of the stochasticalgorithm simulating a system with initial molecular populationsS0 = 100,E0 = 10,C0 = 0,P0 = 0 and a volume of 1000 units.

Page 98: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Results for S0 = 100, E0 = 10, C0 = 0, P0 = 0 (vol 1000)

Page 99: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Results for S0 = 100, E0 = 10, C0 = 0, P0 = 0 (vol 1000)

Page 100: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Comparing stochastic simulation and ODEs

It is clear that there is a close correspondence between thepredictions of the deterministic approach and the stochasticapproach, with the deterministic curve falling well within onestandard deviation (S.D.) of the stochastic mean.

This is a very close match, especially considering our stochasticsimulation is modelling a system containing just 110molecules—well within what we might consider to be themicroscopic domain.

Page 101: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Comparing stochastic simulation and ODEs

It is clear that there is a close correspondence between thepredictions of the deterministic approach and the stochasticapproach, with the deterministic curve falling well within onestandard deviation (S.D.) of the stochastic mean.

This is a very close match, especially considering our stochasticsimulation is modelling a system containing just 110molecules—well within what we might consider to be themicroscopic domain.

Page 102: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

The variance of the stochastic approach

However, it is worth bearing in mind that an actual in vivobiochemical reaction would follow just one of the many randomcurves that average together producing the closely fitting mean.This curve may deviate significantly from that of the deterministicapproach, and thus call into question its validity.

Hence, it is perhaps most important to consider the variance of thestochastic approach—with a larger variance indicating a greaterdeviation from the mean and hence from the deterministic curve.

Page 103: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

The variance of the stochastic approach

However, it is worth bearing in mind that an actual in vivobiochemical reaction would follow just one of the many randomcurves that average together producing the closely fitting mean.This curve may deviate significantly from that of the deterministicapproach, and thus call into question its validity.

Hence, it is perhaps most important to consider the variance of thestochastic approach—with a larger variance indicating a greaterdeviation from the mean and hence from the deterministic curve.

Page 104: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Comparing results at lower population sizes

Consider exactly the same simulation setup, except this time weare modelling a system consisting of just 11 molecules within avolume of 100 units [thus the molecular concentrations are equalto those earlier].

Page 105: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Results for S0 = 10, E0 = 1, C0 = 0, P0 = 0 (vol 100)

Page 106: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Compatibility of the two approaches

On average, the stochastic approach tends to the same solution asthe deterministic approach as the number of molecules in thesystem increases, and we hence move from the microscopic to themacroscopic domain.

Page 107: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Mean results for 11, 110 and 1100 molecules

Page 108: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

From the microscopic to the macroscopic domain

Each specific run is individually in closer and closer agreement withthe deterministic approach as the number of molecules in thesystem increases.

This is a direct effect of the inherent averaging of macroscopicproperties of a system of many particles.

Page 109: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Conclusions from the comparison

1 These results provide clear verification of the compatibility ofthe deterministic and stochastic approaches.

2 They also illustrate the validity of the deterministic approachin systems containing as few as 100 copies of components.

Page 110: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Outline

1 The deterministic and stochastic approaches

2 Stochastic simulation algorithms

3 Comparing stochastic simulation and ODEs

4 Modelling challenges

Page 111: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Modelling challenges: stiffness

A problem for modelling temporal evolution is stiffness. Somereactions are much faster than others and quickly reach a stablestate. The dynamics of the system is driven by the slow reactions.

Most chemical systems, whether considered at a scale appropriateto stochastic or to deterministic simulation, involve several widelyvarying time scales, so such systems are nearly always stiff.

Page 112: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Modelling challenges: stiffness

A problem for modelling temporal evolution is stiffness. Somereactions are much faster than others and quickly reach a stablestate. The dynamics of the system is driven by the slow reactions.

Most chemical systems, whether considered at a scale appropriateto stochastic or to deterministic simulation, involve several widelyvarying time scales, so such systems are nearly always stiff.

Page 113: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Modelling challenges: stiffness

A problem for modelling temporal evolution is stiffness. Somereactions are much faster than others and quickly reach a stablestate. The dynamics of the system is driven by the slow reactions.

Most chemical systems, whether considered at a scale appropriateto stochastic or to deterministic simulation, involve several widelyvarying time scales, so such systems are nearly always stiff.

Page 114: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Modelling challenges: multiscale populations

The multiscale population problem arises when some species arepresent in relatively small quantities and should be modelled by adiscrete stochastic process, whereas other species are present inlarger quantities and are more efficiently modelled by adeterministic ordinary differential equation (or at some scale inbetween). SSA treats all of the species as discrete stochasticprocesses.

Page 115: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s multiscale SSA methods (2005)

SSA is used for slow reactions or species with small populations.The multiscale SSA method generalizes this idea to the case inwhich species with small population are involved in fast reactions.

Page 116: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s slow-scale SSA methods (2005)

The setting for Gillespie’s slow-scale SSA method is

S + Ek1

k−1

Ck2

→ E + P

wherek−1 � k2

Slow-scale SSA explicitly simulates only the relatively rareconversion reactions, skipping over occurrences of the other twoless interesting but much more frequent reactions.

Page 117: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Gillespie’s slow-scale SSA methods (2005)

The setting for Gillespie’s slow-scale SSA method is

S + Ek1

k−1

Ck2

→ E + P

wherek−1 � k2

Slow-scale SSA explicitly simulates only the relatively rareconversion reactions, skipping over occurrences of the other twoless interesting but much more frequent reactions.

Page 118: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Comparing SSA and Slow-Scale SSA results

Page 119: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Comparing SSA and Slow-Scale SSA results

Page 120: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Conclusions

Stochastic simulation is a well-founded method for simulatingin vivo reactions.

Gillespie’s SSA can be more accurate than ODEs at lowmolecular numbers; compatible with them at large molecularnumbers.

Recent explosion of interest in the subject with many newvariants of the SSA algorithm.

Page 121: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Excellent introductory papers

Daniel T. Gillespie.

Stochastic Simulation of Chemical Kinetics,

Annual Review of Physical Chemistry 58:35-55, 2007.

doi:10.1146/annurev.physchem.58.032806.104637

D. Gillespie and L. Petzold.

System Modelling in Cellular Biology, chapter “NumericalSimulation for Biochemical Kinetics”.

MIT Press, 2006.

T.E. Turner, S. Schnell, and K. Burrage.

Stochastic approaches for modelling in vivo reactions.

Computational Biology and Chemistry, 28:165–178, 2004.

Page 122: Process algebras for quantitative analysis: Lecture 9 ...homepages.inf.ed.ac.uk/jeh/lec9_simulation_slides.pdf · The deterministic and stochastic approaches Stochastic simulation

The deterministic and stochastic approaches Stochastic simulation algorithms Comparing stochastic simulation and ODEs Modelling challenges

Stochastic simulation software

S. Ramsey, D. Orrell, and H. Bolouri.

Dizzy: stochastic simulation of large-scale genetic regulatorynetworks.

J. Bioinf. Comp. Biol., 3(2):415–436, 2005.

http://magnet.systemsbiology.net/software/Dizzy

Hong Li, Yang Cao, Linda R. Petzold, Daniel T. Gillespie

Algorithms and software for stochastic simulation of biochemicalreacting systems.

To appear in Biotechnology Progress, 2007.

http://www.engineering.ucsb.edu/∼cse/StochKit/