Lecture 4 The stochastic ingredient

Similar documents
Stochastic Simulation.

Lecture 1 Modeling in Biology: an introduction

Modelling in Systems Biology

Biochemical simulation by stochastic concurrent constraint programming and hybrid systems

Reaction time distributions in chemical kinetics: Oscillations and other weird behaviors

EVOLUTIONARY DISTANCES

Modeling Biological Systems in Stochastic Concurrent Constraint Programming

ON THE APPROXIMATION OF STOCHASTIC CONCURRENT CONSTRAINT PROGRAMMING BY MASTER EQUATION

STOCHASTIC CHEMICAL KINETICS

MA 777: Topics in Mathematical Biology

Continuous-time Markov Chains

Stochastic Simulation of Biochemical Reactions

Modeling Biological Systems in Stochastic Concurrent Constraint Programming

Varieties of Stochastic Calculi

Stochastic Chemical Kinetics

Formal Modeling of Biological Systems with Delays

Gillespie s Algorithm and its Approximations. Des Higham Department of Mathematics and Statistics University of Strathclyde

The exponential distribution and the Poisson process

Efficient Leaping Methods for Stochastic Chemical Systems

Logic-based Multi-Objective Design of Chemical Reaction Networks

Kinetic Monte Carlo. Heiko Rieger. Theoretical Physics Saarland University Saarbrücken, Germany

MARKOV PROCESSES. Valerio Di Valerio

The story of the film so far... Mathematics for Informatics 4a. Continuous-time Markov processes. Counting processes

Modelling the Randomness in Biological Systems

Notes for Math 450 Stochastic Petri nets and reactions

MATH 56A: STOCHASTIC PROCESSES CHAPTER 6

Biomolecular reaction networks: gene regulation & the Repressilator Phys 682/ CIS 629: Computational Methods for Nonlinear Systems

Poisson Processes. Stochastic Processes. Feb UC3M

Q1. (a) Define the term activation energy for a chemical reaction. (2)

Continuous time Markov chains

CS 237: Probability in Computing

Introduction to stochastic multiscale modelling in tumour growth

From cell biology to Petri nets. Rainer Breitling, Groningen, NL David Gilbert, London, UK Monika Heiner, Cottbus, DE

Regulation of metabolism

An Introduction to Stochastic Simulation

Exponential Distribution and Poisson Process

Problem Set 5. 1 Waiting times for chemical reactions (8 points)

Part I Stochastic variables and Markov chains

SPA for quantitative analysis: Lecture 6 Modelling Biological Processes

Stochastic Simulation of Chemical Kinetics

Nested Stochastic Simulation Algorithm for Chemical Kinetic Systems with Disparate Rates. Abstract

Markov Chains. X(t) is a Markov Process if, for arbitrary times t 1 < t 2 <... < t k < t k+1. If X(t) is discrete-valued. If X(t) is continuous-valued

Stochastic process. X, a series of random variables indexed by t

Effect of Reactant Size on Discrete Stochastic Chemical Kinetics

Stochastic Modelling Unit 1: Markov chain models

Nested Stochastic Simulation Algorithm for KMC with Multiple Time-Scales

When do diffusion-limited trajectories become memoryless?

Persistence and Stationary Distributions of Biochemical Reaction Networks

Markov Chain Monte Carlo The Metropolis-Hastings Algorithm

Markov Reliability and Availability Analysis. Markov Processes

PoissonprocessandderivationofBellmanequations

CS 237: Probability in Computing

arxiv: v2 [q-bio.qm] 12 Jan 2017

Lecture 3. Many reactions happen in steps. Mechanism of reaction. Professor Hicks Inorganic Chemistry (CHE152) A + B C C + 2B D D+ B + E F

MCMC and Gibbs Sampling. Sargur Srihari

Cells in silico: a Holistic Approach

Partial Differential Equations (PDEs)

Mathematical Modeling I

Link Models for Packet Switching

Pattern Recognition and Machine Learning. Bishop Chapter 11: Sampling Methods

Stochastic Simulation Methods for Solving Systems with Multi-State Species

Page 0 of 5 Final Examination Name. Closed book. 120 minutes. Cover page plus five pages of exam.

Model Counting for Logical Theories

Diffusion. CS/CME/BioE/Biophys/BMI 279 Nov. 15 and 20, 2016 Ron Dror

CS 781 Lecture 9 March 10, 2011 Topics: Local Search and Optimization Metropolis Algorithm Greedy Optimization Hopfield Networks Max Cut Problem Nash

Markov Chains and MCMC

Models of Language Evolution

25.1 Markov Chain Monte Carlo (MCMC)

Birth-Death Processes

Some investigations concerning the CTMC and the ODE model derived from Bio-PEPA

Extending the Tools of Chemical Reaction Engineering to the Molecular Scale

AN INTRODUCTION TO DISCRETE-EVENT SIMULATION

A REACHABLE THROUGHPUT UPPER BOUND FOR LIVE AND SAFE FREE CHOICE NETS VIA T-INVARIANTS

Proxel-Based Simulation of Stochastic Petri Nets Containing Immediate Transitions

Stochastic modelling in Mathematical Biology

Influence of Nuclear Substructure on Gene Regulation and Expression

Computational Cognitive Science

Average Value and Variance of Pattern Statistics in Rational Models

More Protein Synthesis and a Model for Protein Transcription Error Rates

Formal Methods and Systems Biology: The Calculus of Looping Sequences

Dynamical Monte-Carlo Simulation of Surface Kinetics

4: The Pandemic process

Methods of Data Analysis Random numbers, Monte Carlo integration, and Stochastic Simulation Algorithm (SSA / Gillespie)

Advanced Monte Carlo Methods Problems

Discrete planning (an introduction)

Today: Fundamentals of Monte Carlo

Informatics 2D Reasoning and Agents Semester 2,

Universal examples. Chapter The Bernoulli process

On the Interpretation of Delays in Delay Stochastic Simulation of Biological Systems

Computer Intensive Methods in Mathematical Statistics

Numerical Simulation for Biochemical Kinetics

Markov chains. Randomness and Computation. Markov chains. Markov processes

Modelling data networks stochastic processes and Markov chains

Collision Theory and Rate of Reaction. Sunday, April 15, 18

Figure 10.1: Recording when the event E occurs

From Stochastic Processes to Stochastic Petri Nets

Lecture 11: Non-Equilibrium Statistical Physics

Stochastic Simulation of Biological Systems with Dynamical Compartments

Data Analysis I. Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK. 10 lectures, beginning October 2006

arxiv: v1 [math.pr] 18 Nov 2018

Transcription:

Lecture 4 The stochastic ingredient Luca Bortolussi 1 Alberto Policriti 2 1 Dipartimento di Matematica ed Informatica Università degli studi di Trieste Via Valerio 12/a, 34100 Trieste. luca@dmi.units.it 2 Dipartimento di Matematica ed Informatica Università degli studi di Udine Via delle Scienze 206, 33100 Udine. policriti@dimi.uniud.it SISSA, January 2007

Quote of the day D.T. Gillespie Exact Stochastic Simulation of Coupled Chemical Reactions J. of Physical Chemistry, 81(25), 1977 There are two formalisms for mathematically describing the time behavior of a spatially homogeneous chemical system: the deterministic approach regards the time evolution as a continuous, wholly predictable process which is governed by a set of coupled, ordinary differential equations (the reaction-rate equations ); the stochastic approach regards the time evolution as a kind of random-walk process which is governed by a single differential-difference equation (the master equation ). Fairly simple kinetic theory arguments show that the stochastic formulation of chemical kinetics has a firmer physical basis than the deterministic formulation, but unfortunately the stochastic master equation is often mathematically intractable. There is, however, a way to make exact numerical calculations within the framework of the stochastic formulation without having to deal with the master equation directly. [...]

Outline 1 Stochastic Processes 2

Outline 1 Stochastic Processes 2

Exponential distribution An exponential distribution models the time of occurrence of a (simple) random event. It is given by a random variable T, with values in [0, ), with density f (t) = λe λt, where λ is the rate of the exponential distribution. The probability of the event happening within time t is P(T t) = 1 e λt. Mean: E[T ] = 1 λ Variance: VAR[T ] = 1 λ 2 λ is the average density of frequency of events per unit of time.

Continuous Time Markov Chains What happens if we have more than one event competing? In this case, there is a race condition between events: the fastest event is executed and modifies globally the state of the system. Continuous Time Markov Chains The is a discrete set of states, connected by transitions each with an associated rate of an exponential distribution. In each state, transitions compete in a race condition: the fastest one determines the new state and the time elapsed. In the new state, the race condition is started anew (memoryless property).

Continuous Time Markov Chains What happens if we have more than one event competing? In this case, there is a race condition between events: the fastest event is executed and modifies globally the state of the system. Continuous Time Markov Chains The is a discrete set of states, connected by transitions each with an associated rate of an exponential distribution. In each state, transitions compete in a race condition: the fastest one determines the new state and the time elapsed. In the new state, the race condition is started anew (memoryless property).

Continuous Time Markov Chains What happens if we have more than one event competing? In this case, there is a race condition between events: the fastest event is executed and modifies globally the state of the system. Continuous Time Markov Chains The is a discrete set of states, connected by transitions each with an associated rate of an exponential distribution. In each state, transitions compete in a race condition: the fastest one determines the new state and the time elapsed. In the new state, the race condition is started anew (memoryless property).

Continuous Time Markov Chains Equivalent Characterization In each state, we select the next state according to a probability distribution obtained normalizing rates (from S to S 1 r with prob. 1 ). r 1 +r 2 The time spent in a state is given by an exponentially distributed random variable, with rate given by the sum of outgoing transitions from the actual node (r 1 + r 2 ).

Outline 1 Stochastic Processes 2

Stochastic model of a chemical system We have a set of chemical substances S 1,..., S N contained in a volume V, with X i = number of molecules of species i, subject to a set of chemical reactions where each R j is of the form R 1,..., R M, R j : X j1 + X j2 X j 1 +... + X j pj, R j : X j1 X j 1 +... + X j pj, R j : X j 1 +... + X j pj, The system is supposed to be in thermal equilibrium

Stochastic model of a chemical system Key assumption Each reaction R j has associated a specific probability rate constant c j : c j dt = probability that a randomly chosen combination of R j reactant molecules inside V at time t will react according to R j in the next infinitesimal time interval [t, t + dt). Key observation The next reaction that will happen depends only on the current configuration of the system (number of molecules), not on past history (memoryless property).

Stochastic model of a chemical system Key assumption Each reaction R j has associated a specific probability rate constant c j : c j dt = probability that a randomly chosen combination of R j reactant molecules inside V at time t will react according to R j in the next infinitesimal time interval [t, t + dt). Key observation The next reaction that will happen depends only on the current configuration of the system (number of molecules), not on past history (memoryless property).

Deriving kinetic parameters Let s focus on a bimolecular reaction... Problem... it is physically meaningless to talk about the number of molecules whose centers lie inside δv coll in the required limit of vanishingly small δt....

The stochastic model Under the hypothesis of thermal equilibrium, molecules are uniformly distributed in space, and velocities follow a Boltzmann distribution. The collision volume swept on average is δv = πr 2 12 v 12 δt. The collision probability is therefore δv V = πr 12 2 v 12 δt. V

The stochastic model Reaction probability p j = def actant molecules will chemically react probability that a colliding pair of R j re- according to R j. The basic rate of reaction c j is therefore c j = V 1 πr 2 12 v 12 p j.

Rate functions c j gives the rate of reaction for a single pair of molecules involved in R j. To determine the global rate of reaction R j, we need to count how many pairs of reacting molecules we have. We do this with the rate function h j (c j, X). Reactants of different species X j1 + X j2 h j (c j, X) = c j X j1 X j2 Reactants of the same species 2X j1 h j (c j, X) = c j X j1 (X j1 1) 2

Chemical Master Equation From rate functions, we can derive a differential equations saying how the probability of being in different states (of having different number of molecules) varies over time. It is called the chemical master equation: dp(x, t) dt = M ( ) h j (c j, X ν j )P(X ν j, t) h j (c j, X)P(X, t) }{{}}{{} j=1 A reaction R j happened in time [t, t + dt] No reaction happened in [t, t + dt] Pro This equation everything we need to know about the stochastic process. Cons This equation is very difficult to solve, even numerically.

The approach of Gillespie The central notion becomes the following definition of reaction probability density function: P(τ, j) = def probability that, given the state X = (X 1,..., X N ) at time t, the next reaction in V will occur in the infinitesimal time interval (t + τ, t + τ + dt), and will be an R j reaction

The approach of Gillespie Explicit form of P(τ, µ) Intuitively... P(τ, j) = h 0 (X)e h 0(X)τ {z } time elapsed hj(c j, X) h 0 (X) {z } next reaction The equation says that the next reaction is chosen with probability h j h 0, while the time elapsed to see this reaction happen is exponentially distributed with rate h 0. This stochastic process is a Continuous Time Markov Chain.

Numerically simulating P(τ, µ) Numerically simulating P(τ, µ) A random number generator can be used to draw random pairs (τ, µ) whose probability density function is P(τ, µ). Given r 1 and r 2 randomly generated, determine τ and µ such that: τ = (1/h 0 ) log (1/r 1 ) Σ j 1 ν=1 h ν < r 2 h 0 Σ j ν=1 h ν The method A general Monte Carlo technique called inversion method: x will be randomly drawn with probability density function P(x) if x = F 1 (r) with r randomly drawn with uniform probability density function in [0, 1] and F is the probability distribution function ( x P(y)dy).

The algorithm

Gillespie Algorithm and Petri Nets 2P P 2 h 1 (1, X) = 378 h 2 (2, X) = 24 h 0 (X) = 378 + 24 = 402 p 1 = 0.94 p 2 = 0.06

Gillespie Algorithm and Petri Nets 2P P 2 h 1 (1, X) = 378 h 2 (2, X) = 24 h 0 (X) = 378 + 24 = 402 p 1 = 0.94 p 2 = 0.06

Gillespie Algorithm and Petri Nets 2P P 2 h 1 (1, X) = 378 h 2 (2, X) = 24 h 0 (X) = 378 + 24 = 402 p 1 = 0.94 p 2 = 0.06

Gillespie Algorithm and Petri Nets 2P P 2 h 1 (1, X) = 378 h 2 (2, X) = 24 h 0 (X) = 378 + 24 = 402 p 1 = 0.94 p 2 = 0.06

Gillespie Algorithm and π-calculus Each channel has a basic rate λ associated to it. The global rate of a channel depends on how many agents are ready to communicate on it. In this example: λmn The functions h i are determined implicitly by the semantics of the language. Gillespie can be used to simulate stochastic π-calculus as well!!!

An example: genetic regulatory networks Genes as logical gates Repressilator