Bayesian Discrete-Event Simulation — Posterior-informed stochastic process modeling

Simulation
Introduced by
Developed across operations research and Bayesian statistics communities; prominently formalized in health economic simulation in the 2000s–2010s
Year
2000s–2010s
Type
Hybrid simulation-inference framework
Family
Simulation / optimization

What does it do?

Bayesian Discrete-Event Simulation (BDES) couples Bayesian inference with discrete-event simulation (DES).

Uncertain model inputs, such as arrival rates, service times or failure probabilities, receive prior distributions. These priors are updated with observed data through Bayes' theorem, and the resulting posterior samples drive the simulation. The output is a distribution of process performance measures that reflects both parameter uncertainty and the random variation inherent in the process.

The intuition behind the method

In conventional DES, inputs such as inter-arrival times and service durations are fixed values or draws from assumed distributions whose parameters are treated as known. BDES instead treats those parameters as uncertain quantities with probability distributions. Consider a queue model of a hospital ward. Rather than assuming a single average patient arrival rate, the modeller starts from a prior, updates it with historical admission counts, and draws a parameter set from the resulting posterior for each simulation run. The spread of simulated outcomes then shows how much the uncertain inputs, together with the process randomness, affect the forecast.

History

Discrete-event simulation is a long-established tool of operations research and management science (see Pidd, 2004). The explicit Bayesian formulation, in which priors are updated from process data and the posteriors are propagated through the simulation, became more common in the 2000s and 2010s, particularly in health economic modelling, where sparse trial data and expert elicitation are routine. Onggo and Kunc (2016) examine combining discrete-event simulation with Bayesian updating of real-world data. No single originator is credited for the framework.

When to use it

Choose BDES when you need to model a sequential, event-driven process (queues, logistics chains, patient pathways, manufacturing lines) and parameter uncertainty is substantial. This is most relevant when data are sparse, expensive to collect or heterogeneous across sites. It is particularly useful in health technology assessment, emergency services planning and supply-chain risk analysis, where decision-makers need uncertainty bounds rather than point estimates. Do not use BDES when event-level data are rich enough to estimate the parameters with negligible uncertainty, since standard DES is then sufficient. Prefer system dynamics or agent-based modelling when the process structure itself is poorly understood. BDES is also a poor fit when the computing budget cannot cover MCMC plus repeated simulation runs.

Limitations and considerations

  • Computationally intensive: MCMC or variational inference for the posterior, combined with many DES replications, can be prohibitive for large or complex models.
  • Prior choice matters most when data are limited. Poorly chosen priors can dominate the results, and sensitivity analyses add further workload.
  • Validation is more demanding than for standard DES, because the statistical component and the process-simulation component must be validated separately and then jointly.
  • Credible intervals are not guaranteed to be well calibrated. Their reliability depends on the priors, the likelihood and the process structure, and it has to be checked rather than assumed.
  • Posterior distributions can be hard to communicate to stakeholders unfamiliar with Bayesian reasoning, and the implementation requires expertise in Bayesian statistics, simulation modelling and the application domain.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Propagates two kinds of uncertainty through one model: process randomness (for example, exponential service times) and parameter estimation error (for example, an unknown mean service rate). Output intervals therefore reflect both sources.
  • Lets prior knowledge, such as expert judgement, enter the analysis formally, so predictions remain possible when observed data are sparse or partial.
  • Posterior distributions can be updated as new data arrive, so the model can be refreshed without rebuilding the analysis from scratch.
  • Produces full predictive distributions rather than single values, which supports probability statements about KPIs and value-of-information calculations.
  • The Bayesian layer supplies the parameter inputs, so an existing DES engine can usually be used without structural changes.

Applications

  • Hospital capacity planning: estimating patient waiting times under uncertainty about admission rates and length-of-stay distributions
  • Health technology assessment: propagating uncertainty in clinical parameters through disease pathway simulations to compute cost-effectiveness distributions
  • Supply chain risk management: modeling disruption probabilities and recovery times when historical failure data are limited
  • Emergency services dispatch: calibrating response-time models from sparse incident logs with Bayesian-updated arrival and service rates
  • Manufacturing process optimization: inferring machine failure rates from censored maintenance records and simulating production throughput distributions
  • Software testing and reliability engineering: updating failure-rate priors from test-phase observations and predicting field reliability through event-driven models

How it works

How it works

1

Specify prior distributions p(theta) for each uncertain input, such as arrival rates, service times, branching probabilities or failure rates. Priors can be based on expert judgement, historical benchmarks or weakly informative defaults. Record the rationale for each prior so that its influence can be examined in a sensitivity analysis.

2

Collect observed process data D, such as event logs, throughput counts or duration records. Combine them with the priors through Bayes' theorem, p(theta|D) proportional to p(D|theta) times p(theta), to obtain posterior distributions over the parameters. Conjugate update formulas can be used for simple models. For more complex likelihoods without a closed-form posterior, MCMC or variational inference is needed.

Formula
p(\theta \mid D) \propto p(D \mid \theta)\, p(\theta)
3

Draw parameter vectors theta^(k), for k = 1 to K, from the joint posterior p(theta|D). Each draw is one configuration of the system that is consistent with both the data and the priors. Together the draws express the parameter uncertainty that is passed to the simulation.

4

For each posterior draw, run the discrete-event engine with those parameter values. Entities arrive, join queues and seize resources, and events are processed in time order. Record key performance indicators such as throughput, waiting time and utilisation. Repeat over the K draws. Because each run also contains process randomness, several replications per draw may be needed to stabilise the outputs.

5

Combine the outputs of all runs into posterior predictive distributions for each KPI. Formally, the predictive distribution of a KPI y* is p(y*|D) = ∫ p(y*|theta) p(theta|D) dtheta. In practice this integral is approximated by averaging the simulation outputs over the K posterior draws, with each draw's own replications included. Summaries include expected values, credible intervals (for example a 95% HDI) and probability statements such as P(waiting time > threshold). These summaries describe the model's predictions given its inputs and assumptions. They are only as reliable as those assumptions.

Common pitfalls

  • Conflating aleatory and epistemic uncertainty. Treat process randomness (for example, exponential service times) and parameter uncertainty (for example, an unknown mean service rate) as distinct layers, to avoid double-counting variability.
  • Using strong priors without documenting them. Undisclosed informative priors can steer results invisibly, so report them and test sensitivity to the prior choice.
  • Running too few posterior draws, or too few replications per draw, before feeding the results into the DES. Insufficient draws or replications make the reported KPI intervals unstable, so Monte Carlo error should be checked separately from parameter uncertainty.
  • Ignoring structural uncertainty. BDES handles parameter uncertainty but does not account for errors in the assumed process topology, such as queue discipline or branching logic. Validate the structural model separately.
  • Reporting only posterior means of the simulation outputs and discarding the distributional information. This removes the main advantage of the Bayesian framework.

Frequently asked questions

How is Bayesian DES different from standard stochastic DES?

Standard stochastic DES uses fixed input distributions, for example Exponential(lambda) with a preset lambda. Bayesian DES treats lambda itself as uncertain, places a prior on it and updates it from data. Each simulation run samples from the posterior over lambda, so the output uncertainty reflects both process randomness and parameter estimation error.

Do I need custom software to implement Bayesian DES?

Not necessarily. A practical workflow couples a Bayesian inference library (Stan, PyMC, JAGS) with an existing DES engine (SimPy, AnyLogic, Arena). The inference library produces posterior samples, which are passed as input parameters to the DES engine for each run.

How many simulation runs are needed?

No fixed number applies to every model. The number of posterior draws and the replications per draw should be guided by convergence diagnostics for the MCMC output (such as R-hat) and by the variance of the outputs across replications.

When should I prefer BDES over a simpler Monte Carlo sensitivity analysis?

Prefer BDES when parameter uncertainty is derived from real data and must be propagated formally. A sensitivity analysis typically varies parameters over assumed ranges, whereas Bayesian updating ties the parameter distribution to the observed data through the likelihood, so the resulting uncertainty is consistent with that data.

Can BDES handle non-stationary processes (e.g., time-varying arrival rates)?

Yes. Time-varying parameters, such as a Poisson arrival rate that changes by hour of day, can be modelled with Bayesian hierarchical or time-series priors, and the resulting posterior process drives the DES in the same pipeline.

Related methods

Sources

  1. Onggo, B. S., & Kunc, M. (2016). Combining discrete-event simulation and Bayesian updating for incorporating evidence from real-world data. Journal of Simulation, 10(1), 1-12.

    Open publication reference
  2. Pidd, M. (2004). Computer Simulation in Management Science (5th ed.). Wiley.

    ISBN: 9780470092781