Simulating events of unknown probabilities via reverse time martingales

Krzysztof Latuszynski, Ioannis Kosmidis, Omiros Papaspiliopoulos, Gareth O. RobertsRandom Struct. Algorithms 2011

TL;DR

This paper introduces a general framework for simulating events with unknown probabilities, even when only approximations of these probabilities are available. The core innovation is the use of "reverse time martingales" to construct algorithms that efficiently and accurately simulate these events, with direct applications to the challenging "Bernoulli factory problem" and the exact simulation of diffusions.

What Problem Does This Paper Address?

Imagine you need to simulate an event that has a specific probability, say s, but you can't know s exactly. Instead, you can only get approximations of s through some computational effort. This scenario pops up frequently in statistical simulations. Two classic examples are:

  1. The Bernoulli Factory Problem: Given a coin that lands heads with an unknown probability p, how do you create a new "virtual" coin that lands heads with a probability f(p), where f is a known function? This is crucial for generating random outcomes with specific, complex probabilities.
  2. Exact Simulation of Diffusions: Simulating the exact path of a diffusion process (like the movement of a particle in a fluid) is notoriously difficult.

Existing methods for these problems often rely on complex constructions or approximations that can be computationally expensive or introduce subtle biases. This paper aims to provide a more unified, efficient, and theoretically sound approach.

Methods

The paper's central contribution is a general framework for simulating events of unknown probability s using reverse time martingales. Here's a breakdown of the key ideas:

  • Unbiased Estimators: The fundamental insight is that simulating an event of probability s is equivalent to constructing an unbiased estimator of s that takes values between 0 and 1.
  • Randomized Bounds: Instead of deterministic bounds for s, the authors introduce randomized bounds, denoted by Ln and Un, which are sequences of random variables. These bounds are designed to be "reverse time super- and submartingales" with respect to a filtration of information available over time.
  • Algorithms 3 & 4: These are the core algorithms presented. They use the randomized bounds Ln and Un along with a uniform random variable to decide whether to output a simulated event (1) or not (0), or to continue sampling more bounds. Algorithm 4 is a more sophisticated version that constructs the bounds online.
  • Bernoulli Factory Connection: The paper shows how the Nacu-Peres algorithm for the Bernoulli factory problem can be reformulated using this martingale framework. This leads to a more practical implementation that avoids dealing with exponentially large sets of binary strings.
  • Application to Diffusions: The framework is also applied to derive an "Exact Algorithm" for simulating diffusions, building upon existing work.

What's novel is the systematic use of martingales to manage the uncertainty in the probability s and to construct efficient simulation algorithms.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithms and their simulation properties, not on empirical evaluation with specific datasets.

Key Insights and Ideas

  • Martingales as a Unifying Tool: The paper elegantly demonstrates how reverse time martingales can unify seemingly disparate problems like the Bernoulli factory and diffusion simulation. This provides a powerful theoretical lens for understanding and developing simulation algorithms.
  • Randomized Bounds for Unknown Probabilities: The shift from deterministic to randomized bounds (Ln, Un) is a key conceptual leap. It allows for more flexible and efficient algorithms when the exact probability is unknown but can be approximated.
  • Practical Bernoulli Factory: By reformulating the Nacu-Peres algorithm using martingales, the authors bypass the computationally prohibitive step of enumerating large sets of binary strings, making the Bernoulli factory problem more tractable.
  • Efficiency Gains: For certain classes of functions (like those with alternating series expansions), the martingale approach allows for direct application of Algorithm 3, leading to significant efficiency improvements over more general methods.

Key Results

  • General Simulation Framework: The paper provides a general framework (Algorithms 3 and 4) for simulating events of unknown probability s using reverse time martingales.
  • Valid s-Coin Generation: The algorithms are proven to generate a valid s-coin (an event with probability s) with probability 1.
  • Convergence Guarantees: The probability that the algorithms require more than n iterations is shown to be related to the difference between the upper and lower bounds (un - ln), which converges to zero, ensuring algorithm termination.
  • Bernoulli Factory Reformulation: A practical version of the Nacu-Peres algorithm is presented, leveraging the martingale framework and avoiding complex combinatorial constructions.
  • Exact Diffusion Simulation: The paper derives an Exact Algorithm for diffusions, building on the Bernoulli factory results.
  • Efficiency for Alternating Series: For functions with alternating series expansions, Algorithm 3 is shown to be directly applicable, leading to efficient simulation with a probability of needing N > n iterations being anp^n.

Limitations and Future Work

  • Computational Cost of Bounds: While the algorithms are theoretically sound, the practical efficiency can still depend on how quickly the bounds Ln and Un converge to s. The paper notes that for some problems, finding suitable polynomial envelopes can be challenging, with substantial computational costs (e.g., no(ε) values in the hundreds or thousands).
  • Practical Implementation of Bounds: The paper mentions that for the Bernoulli factory, the coefficients of polynomial envelopes can be substantial, impacting practical performance.
  • Future Directions: The authors suggest that significant improvements in terms of the number of original p-coins required can be achieved if monotone super/sub-martingales can be constructed directly and used with Algorithm 3, rather than Algorithm 4. This is hinted at in Section 3.1 and could be a fruitful area for future research. The paper also notes that exact simulation algorithms for multivariate diffusions and unbounded drift functionals exist, suggesting further extensions of this work.

Summary updated

BibTeX
@article{latuszynski2011simulating,
  author = {Krzysztof Latuszynski and Ioannis Kosmidis and Omiros Papaspiliopoulos and Gareth O. Roberts},
  title = {{Simulating events of unknown probabilities via reverse time martingales}},
  journal = {Random Struct. Algorithms},
  year = {2011},
  doi = {10.1002/rsa.20333},
}
Figure