- Introduced by
- Bortz, Kalos & Lebowitz (physics); Gillespie (chemistry)
- Year
- 1975–1977
- Type
- stochastic simulation
- Family
- Bayesian / computational
What does it do?
Dynamic Monte Carlo (DMC) simulation is a computational method that tracks the stochastic time evolution of a system by drawing random event sequences weighted by transition rates.
Unlike static Monte Carlo sampling of equilibrium distributions, DMC explicitly advances a clock, making it suitable for kinetic, reaction, and time-dependent phenomena where the sequence and timing of events matter. The label "dynamic Monte Carlo" is also applied to other time-dependent schemes in the literature; this page covers only the rejection-free, event-driven variant, associated with the Bortz–Kalos–Lebowitz algorithm and Gillespie's stochastic simulation algorithm.
The intuition behind the method
Imagine a chemical reaction network where molecules collide and transform at known average rates. Rather than watching every femtosecond, DMC leaps from one event to the next, drawing the waiting time from an exponential distribution and selecting which event fires according to relative rates. The result is a statistically exact trajectory through the system's state space that correctly reproduces both the sequence and timing of events without wasting computation on timesteps where nothing happens.
History
Bortz, Kalos, and Lebowitz introduced a new Monte Carlo algorithm for Ising spin systems in 1975, which is the source usually associated with the rejection-free, event-driven approach described here. Gillespie's 1977 paper in The Journal of Physical Chemistry presents a stochastic simulation algorithm (SSA) for coupled chemical reactions that uses a Monte Carlo procedure and does not approximate infinitesimal time increments by finite time steps. The method subsequently spread through computational physics, materials science, and systems biology.
When to use it
Use Dynamic Monte Carlo when the question concerns how a system evolves in time, and the events that drive it and their rates are known or can be estimated. Typical examples are chemical kinetics, surface diffusion, epidemic spreading, and queuing models. It is especially suitable when events are rare, because fixed-timestep methods then spend most of their computation on steps where nothing happens. Avoid DMC when the number of distinct event types is so large that maintaining the rate catalogue becomes impractical, or when the dynamics are essentially deterministic so that ordinary differential equations suffice. Do not use it when the goal is equilibrium sampling rather than kinetic paths; standard MCMC is then the more appropriate tool. DMC is not itself a posterior sampler, so its role in a Bayesian workflow is as a simulator of time-evolving processes rather than as an inference engine. Where event rates are themselves uncertain, they can be given prior distributions and inferred from data, typically by MCMC over the rate parameters (see the related Markov chain Monte Carlo page). Each posterior draw of the rates then drives its own DMC ensemble, and the spread across draws yields predictive bands that include rate uncertainty.
Limitations and considerations
- Requires explicit knowledge of all event rates; incorrect or incomplete rate catalogs lead to wrong dynamics.
- Becomes computationally expensive when the number of possible event types is very large, because the rate catalog must be maintained and searched.
- Each trajectory is one stochastic realization; many independent runs are needed to estimate means and variances reliably.
- Not suited for equilibrium sampling tasks where detailed balance and ergodicity arguments are the primary concern.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Produces statistically exact kinetic trajectories that correctly capture timing and sequence of events.
- Rejection-free: every random draw advances the simulation, making it far more efficient than fixed-timestep methods for rare-event systems.
- Naturally incorporates stochasticity and fluctuations that deterministic models miss.
- Scales well when only a small fraction of rates change after each event.
- Applicable to non-equilibrium and transient dynamics, not just steady-state behavior.
Applications
- Chemical kinetics and biochemical reaction networks (gene expression, signaling cascades).
- Surface diffusion, catalysis, and thin-film growth in materials science.
- Epidemic and ecological spreading models with stochastic population dynamics.
- Queuing and reliability engineering where system state evolves through discrete random events.
- Radiation transport and particle physics detector simulations.
- Agent-based social and financial models with event-driven state transitions.
How it works
How it works
Enumerate all possible events (reactions, transitions, spin flips) and compute the rate r_i for each. The total rate R is their sum. This catalog of rates is the engine that drives the simulation forward.
Formula
r_i = \text{rate of event } i,\quad R = \sum_i r_iDraw the time until the next event from an exponential distribution with rate R. This follows directly from the memoryless property of Poisson processes and ensures the simulated clock is physically correct. The system advances by this randomly drawn interval.
Formula
\Delta t = -\frac{\ln u_1}{R},\quad u_1 \sim \mathrm{Uniform}(0,1)Choose which event fires by sampling a second uniform random number and comparing cumulative rates to u2*R. This rejection-free selection means every drawn random number corresponds to a real event — there is no wasted computation from rejected moves.
Formula
\text{select event } j \text{ s.t. } \sum_{i<j} r_i < u_2 R \le \sum_{i \le j} r_iApply the selected event: update all affected state variables (populations, spin orientations, spatial positions). Recompute only the rates that have changed because of this event, keeping the catalog current at low computational cost.
Repeat the cycle — compute rates, advance time, select and apply event — until the desired simulated time, a steady state, or a stopping criterion is reached. Averaging over many independent trajectories yields ensemble statistics and uncertainty estimates.
Common pitfalls
- Omitting rare but important events from the rate catalog, causing systematic bias in long-time dynamics.
- Confusing DMC with static Monte Carlo: DMC advances physical time; treating its outputs as equilibrium samples is wrong.
- Running too few independent trajectories and reporting a single run as representative of ensemble behavior.
- Ignoring rate updates after each event, leading to stale and incorrect transition probabilities.
- Applying DMC to systems where mean-field ordinary differential equations are adequate, adding stochastic noise without scientific justification.
Frequently asked questions
How is Dynamic Monte Carlo different from ordinary MCMC?
MCMC samples from a target equilibrium distribution; the order and timing of proposals carry no physical meaning. DMC advances a real physical clock, so each trajectory is a statistically exact sample path of the stochastic process in time. Use MCMC for posterior inference, DMC for kinetic or time-dependent dynamics.
How many trajectories do I need to run?
It depends on the variability of the quantity of interest across runs. Run a pilot set of n independent trajectories, compute the sample standard deviation s of the quantity, and use the standard error of the mean, SE = s/√n. To reach a target standard error E, choose n ≈ (z·s/E)², where z is the normal quantile for the chosen confidence level, and add trajectories until the target is met. For rare events, variance-reduction techniques or importance sampling may be needed.
Can DMC handle continuous-space systems?
Standard DMC assumes a discrete set of events with computable rates. For continuous-space kinetics, space is commonly discretized (for example onto a lattice) so that events can be enumerated, or a different formulation is required.
What is tau-leaping and how does it relate to DMC?
Tau-leaping is an approximation that fires multiple events per timestep rather than one, trading some statistical exactness for speed. It is useful when rates are high and events are frequent. Standard DMC (the Gillespie SSA) is exact; tau-leaping is an approximation suitable when the exact method is too slow.
How do I validate a DMC model?
Compare DMC output against analytical solutions for simple limiting cases, check that the steady-state distribution matches the known equilibrium when detailed balance holds, and perform sensitivity analysis on uncertain rates. For large populations, where fluctuations are small relative to the mean, the mean DMC trajectory should approximate the ODE solution. At small copy numbers, and for nonlinear rate laws, differences are expected, because the deterministic formulation ignores the fluctuations that the stochastic simulation retains.
Related methods
Sources
Bortz, A. B., Kalos, M. H., & Lebowitz, J. L. (1975). A new algorithm for Monte Carlo simulation of Ising spin systems. Journal of Computational Physics, 17(1), 10–18.
Open DOI referenceGillespie, D. T. (1977). Exact stochastic simulation of coupled chemical reactions. The Journal of Physical Chemistry, 81(25), 2340–2361.
Open DOI reference