Cookies on this website

We use cookies to ensure that we give you the best experience on our website. If you click 'Accept all cookies' we'll assume that you are happy to receive all cookies and you won't see this message again. If you click 'Reject all non-essential cookies' only necessary cookies providing core functionality such as security, network management, and accessibility will be enabled. Click 'Find out more' for information on how to change your cookie settings.

Stochastic simulations are often used to model real-world phenomena such as infectious disease dynamics. In this modelling, differing strategies are often compared to one another by comparing the model outputs of each strategy. Hash-based matching, pseudo-random number generation is an approach for stochastic simulations that was implemented by Pearson and Abbott in the hashprng package to overcome challenges with comparing model simulations in a way that considers the dependency between model outputs. We demonstrate how methods based on this approach grant considerable benefit when comparing different strategies, and show when each of our three proposed methods ought to be used. We illustrate our methods with two epidemiological models: one simple model of a vaccine-preventable infection and one complex model of African sleeping sickness, which can be controlled through multiple interventions. We show how our Bernoulli hashing method works very well for simple models, and a variation of it can be used for more complex models in certain cases. Additionally, we discuss the properties of our methods for considering counterfactual scenarios and note that, compared to other attempts to obtain perfect counterfactuals, they demonstrate advantages in computational efficiency and their application to a wider variety of models.

More information Original publication

DOI

10.1098/rsif.2025.1081

Type

Journal article

Publication Date

2026-07-08T00:00:00+00:00

Volume

23

Keywords

counterfactuals, infectious disease dynamics, modelling, stochastic modelling, Stochastic Processes, Models, Biological, Humans, Computer Simulation, Trypanosomiasis, African