Algorithm Search⌘K

Modelcore

Chemical master equation

Also called CME.

The forward Kolmogorov equation for the probability of each molecule count vector of a well-mixed reaction network in continuous time.

The chemical master equation (CME) is the stochastic model of a chemical reaction network in a small, well-mixed volume. The state is the vector of molecule counts, not of concentrations, and the reactions fire at random times. The CME is a system of linear differential equations, one for each possible count vector, for the probability that the system is in that state at time tt. In the language of probability, it is the forward Kolmogorov equation of a continuous-time Markov chain on Nn\mathbb{N}^n. The model matters in cell biology because many species (genes, mRNAs, transcription factors) are present in counts of 1 to 100, where the random firing of single reactions is a large part of the behavior.

The machine

State. A volume VV holds nn species X1,…,XnX_1, \ldots, X_n. The state is x=(x1,…,xn)∈Nnx = (x_1, \ldots, x_n) \in \mathbb{N}^n, the number of molecules of each species.

Reactions. There are mm reactions R1,…,RmR_1, \ldots, R_m. Reaction RjR_j changes the state from xx to x+νjx + \nu_j, where νj∈Zn\nu_j \in \mathbb{Z}^n is column jj of the stoichiometric matrix SS. Each reaction has a propensity aj(x)≥0a_j(x) \ge 0: given X(t)=xX(t) = x, the probability that RjR_j fires once in [t,t+dt)[t, t + dt) is aj(x) dt+o(dt)a_j(x)\, dt + o(dt), and the probability of two or more firings is o(dt)o(dt).

Stochastic mass action. The propensity is a stochastic rate constant cjc_j times the number of distinct combinations of reactant molecules:

reaction propensity aj(x)a_j(x) cjc_j from the deterministic kjk_j
∅→…\emptyset \to \ldots cjc_j kjNAVk_j N_A V
A→…A \to \ldots cjxAc_j x_A kjk_j
A+B→…A + B \to \ldots cjxAxBc_j x_A x_B kj/(NAV)k_j / (N_A V)
2A→…2A \to \ldots cjxA(xA−1)/2c_j x_A (x_A - 1) / 2 2kj/(NAV)2 k_j / (N_A V)

Here NAN_A is Avogadro's number, kjk_j is in molar units, and the deterministic rate of 2A→…2A \to \ldots is kj[A]2k_j [A]^2. Books differ by a factor of 2 for 2A2A: some write the propensity as c xA(xA−1)c\, x_A (x_A - 1). All pages of this site use c xA(xA−1)/2c\, x_A (x_A - 1)/2 with c=2k/(NAV)c = 2k / (N_A V), which is the convention of Gillespie (1977) and Wilkinson (2018).

The equation. For every state xx,

dP(x,t)dt=∑j=1m[aj(x−νj) P(x−νj,t)−aj(x) P(x,t)],\frac{dP(x, t)}{dt} = \sum_{j=1}^{m} \Bigl[ a_j(x - \nu_j)\, P(x - \nu_j, t) - a_j(x)\, P(x, t) \Bigr],

with P(y,t)=0P(y, t) = 0 for a yy that has a negative entry. The first term is the flow into xx by reaction jj from the state x−νjx - \nu_j, and the second is the flow out of xx. With the states in a fixed order and P(t)P(t) as a column vector, this is P˙=AP\dot P = A P with the generator Axx=−a0(x)A_{xx} = -a_0(x), where a0=∑jaja_0 = \sum_j a_j, and Ax+νj,x=aj(x)A_{x + \nu_j, x} = a_j(x). The columns of AA sum to 0, so total probability is kept.

Assumptions. The molecules are well mixed: between two reactive collisions, each molecule moves through the whole volume many times, so the position of a molecule does not matter. The volume and the temperature are constant, and the solution is dilute. Gillespie (1992) derived the CME from these assumptions for a gas in thermal equilibrium, and the same form is used for reactions in solution. Space, crowding and delays (for example, the time to make a protein) are outside the model.

What it counts

The CME gives the full distribution P(x,t)P(x, t) of the counts, and from it every moment, the probability of extinction of a species, the distribution of the time to reach a state, and the stationary distribution if there is one.

Pure death. X→∅X \to \emptyset with propensity cxc x. Each molecule dies at rate cc independently of the others, so X(t)X(t) is Binomial(x0,e−ct)(x_0, e^{-ct}). For x0=2x_0 = 2 the CME is three equations: P˙2=−2cP2\dot P_2 = -2c P_2, P˙1=2cP2−cP1\dot P_1 = 2c P_2 - c P_1, P˙0=cP1\dot P_0 = c P_1. With c=1c = 1 and t=1t = 1 the solution is P2=e−2=0.135335P_2 = e^{-2} = 0.135335, P1=2e−1(1−e−1)=0.465088P_1 = 2e^{-1}(1 - e^{-1}) = 0.465088 and P0=(1−e−1)2=0.399576P_0 = (1 - e^{-1})^2 = 0.399576. From x0=100x_0 = 100, X(1)X(1) has mean 100e−1=36.787944100 e^{-1} = 36.787944 and variance 100e−1(1−e−1)=23.254416100 e^{-1}(1 - e^{-1}) = 23.254416.

Immigration-death. ∅→X\emptyset \to X with propensity bb, and X→∅X \to \emptyset with propensity cxc x. From x0x_0, X(t)X(t) is the sum of a Binomial(x0,e−ct)(x_0, e^{-ct}) count of the first molecules that are still there and an independent Poisson((b/c)(1−e−ct))((b/c)(1 - e^{-ct})) count of new ones. The stationary law is Poisson(b/c)(b/c): the Poisson probabilities satisfy b P(x)=c (x+1) P(x+1)b\, P(x) = c\,(x + 1)\, P(x + 1) for every xx, so the flow from xx to x+1x + 1 equals the flow back, and the right side of the CME is 0. With b=10b = 10 and c=1c = 1 the stationary mean and variance are both 10, and from x0=0x_0 = 0, X(1)X(1) is Poisson(6.321206)(6.321206).

A nonlinear network. ∅→A\emptyset \to A with propensity k=10k = 10, and 2A→∅2A \to \emptyset with propensity c x(x−1)/2c\, x(x-1)/2, c=1c = 1. Each firing of the second reaction removes 2 molecules. The CME gives ddtE[X]=k−c (E[X2]−E[X])\frac{d}{dt}\mathbb{E}[X] = k - c\,(\mathbb{E}[X^2] - \mathbb{E}[X]): the mean depends on the second moment, and there is no closed equation for it. The stationary law, computed by solving the stationary equations on the states 0 to 30 (the probability of state 30 is below 10−2910^{-29}), has mean 3.295346 and variance 2.436040. The deterministic rate equation ϕ˙=k−cϕ2\dot\phi = k - c \phi^2 has the fixed point ϕ=10=3.162278\phi = \sqrt{10} = 3.162278, which is 4 percent low.

Relation to other models

  • Deterministic rate equations. For first order networks (every reaction has at most one reactant molecule), the means solve exactly the mass action rate equations, because E[aj(X)]=aj(E[X])\mathbb{E}[a_j(X)] = a_j(\mathbb{E}[X]) for propensities that are linear. For a general network, Kurtz (1972) showed that the concentrations X(t)/VX(t)/V converge to the solution of the rate equations as V→∞V \to \infty with the concentrations fixed, on any finite time interval.
  • Approximations. The chemical Langevin equation replaces the jumps by a stochastic differential equation when every reaction fires many times in a short time. The linear noise approximation gives Gaussian fluctuations around the rate equations. Moment closure cuts the chain of moment equations.
  • Exact numerical methods. The Gillespie algorithm, the first reaction method and the next reaction method draw exact sample paths of the process. Finite state projection solves the equation itself on a finite set of states, with a bound on the error. Tau-leaping draws approximate paths faster.
  • Other jump processes. The stochastic SIR model is a CME with infection as the reaction S+I→2IS + I \to 2I and recovery as I→RI \to R. Kinetic Monte Carlo in materials science uses the same master equation with other events. A Markov chain in discrete time is the closest page on this site; the CME is its continuous time form, with rates in place of transition probabilities.

Known results in the model

  • Exact for well-stirred gases. The CME is exact, not an approximation, for a well-stirred gas in thermal equilibrium, under the conditions of Gillespie (1992).
  • Finite state spaces. If the reachable states are finite (a closed system), the solution is P(t)=eAtP(0)P(t) = e^{At} P(0) with the matrix exponential. The number of states grows as a power of the counts, which is the main obstacle to solving the CME directly.
  • First order networks. Jahnke and Huisinga (2007) solved the CME of any network of reactions of order 0 and 1 in closed form: from a fixed start, the state is the sum of independent multinomial counts of the start molecules and a product Poisson count of the new ones, with parameters that solve the rate equations. Pure death and immigration-death above are the smallest cases.
  • Product form stationary laws. If the network is complex balanced, which holds for every weakly reversible network of deficiency zero (see the deficiency zero theorem), the stationary law on each closed class of states is a product of Poisson laws, restricted to that class and normalized (Anderson, Craciun and Kurtz 2010).
  • Moment equations. For every network, ddtE[X]=S E[a(X)]\frac{d}{dt}\mathbb{E}[X] = S\, \mathbb{E}[a(X)]. If some reaction has order 2 or more, the equation for moments of order kk involves moments of order k+1k + 1, so the moment equations do not close. This is the problem that moment closure approximates.
  • Exact sampling. The direct method samples the waiting time from the exponential law with rate a0(x)a_0(x) and the reaction from the probabilities aj(x)/a0(x)a_j(x)/a_0(x), and this gives the exact law of the process (Gillespie 1976, 1977).
  • Truncation bound. Solving the CME on a finite set JJ of states, with the probability that leaves JJ thrown away, gives values that are below the true probabilities, and the L1 error equals the mass that left JJ (Munsky and Khammash 2006; see finite state projection).

References

  1. Donald A. McQuarrie, Stochastic approach to chemical kinetics, Journal of Applied Probability 4(3), 1967, 413-478, the review of the master equation for chemical reactions and its exact solutions for simple reactions
  2. Daniel T. Gillespie, A rigorous derivation of the chemical master equation, Physica A 188(1-3), 1992, 404-425, the derivation for a well-stirred gas in thermal equilibrium, and the conditions under which it holds
  3. Daniel T. Gillespie, Exact stochastic simulation of coupled chemical reactions, Journal of Physical Chemistry 81(25), 1977, 2340-2361, the stochastic rate constant c and its relation to the deterministic rate constant k
  4. Max Delbrück, Statistical fluctuations in autocatalytic reactions, Journal of Chemical Physics 8(1), 1940, 120-124, an early master equation for the count of one species
  5. Thomas G. Kurtz, The relationship between stochastic and deterministic models for chemical reactions, Journal of Chemical Physics 57(7), 1972, 2976-2978, the rate equations as the large volume limit of the jump process
  6. Tobias Jahnke and Wilhelm Huisinga, Solving the chemical master equation for monomolecular reaction systems analytically, Journal of Mathematical Biology 54(1), 2007, 1-26, the solution for first order networks as a convolution of multinomial and product Poisson laws
  7. David F. Anderson, Gheorghe Craciun and Thomas G. Kurtz, Product-form stationary distributions for deficiency zero chemical reaction networks, Bulletin of Mathematical Biology 72(8), 2010, 1947-1970, the product of Poisson laws as the stationary distribution of a complex balanced network
  8. Darren J. Wilkinson, Stochastic Modelling for Systems Biology, 3rd edition, CRC Press, 2018, the chapters on chemical kinetics, the master equation and stochastic simulation

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/BBD6VD/text.yaml