Simulating a coin with irrational bias using rational arithmetic
Luis Mendo

TL;DR
This paper introduces an algorithm that simulates a Bernoulli random variable with an irrational parameter using only rational arithmetic and a series representation, solving an open problem for specific irrational values like Euler's constant.
Contribution
It provides a novel algorithm that efficiently simulates irrational Bernoulli parameters with rational arithmetic, including for Euler's constant, with bounded expected inputs and operations.
Findings
Expected number of inputs is at most 3.
Number of operations has a tail bounded by truncation error.
Successfully simulates Bernoulli with irrational parameters like Euler's constant.
Abstract
An algorithm is presented that, taking a sequence of independent Bernoulli random variables with parameter as inputs and using only rational arithmetic, simulates a Bernoulli random variable with possibly irrational parameter . It requires a series representation of with positive, rational terms, and a rational bound on its truncation error that converges to . The number of required inputs has an exponentially bounded tail, and its mean is at most . The number of arithmetic operations has a tail that can be bounded in terms of the sequence of truncation error bounds. The algorithm is applied to two specific values of , including Euler's constant, for which obtaining a simple simulation algorithm was an open problem.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNeural Networks and Applications · Numerical Methods and Algorithms
