Mathematics > Probability
[Submitted on 28 Oct 2020 (v1), last revised 7 Nov 2024 (this version, v6)]
Title:Simulating a coin with irrational bias using rational arithmetic
View PDF HTML (experimental)Abstract:An algorithm is presented that, taking a sequence of independent Bernoulli random variables with parameter $1/2$ as inputs and using only rational arithmetic, simulates a Bernoulli random variable with possibly irrational parameter $\tau$. It requires a series representation of $\tau$ with positive, rational terms, and a rational bound on its truncation error that converges to $0$. The number of required inputs has an exponentially bounded tail, and its mean is at most $3$. 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 $\tau$, including Euler's constant, for which obtaining a simple simulation algorithm was an open problem.
Submission history
From: Luis Mendo [view email][v1] Wed, 28 Oct 2020 11:39:14 UTC (782 KB)
[v2] Thu, 29 Oct 2020 12:00:58 UTC (782 KB)
[v3] Wed, 18 Nov 2020 23:47:39 UTC (783 KB)
[v4] Fri, 3 Dec 2021 11:45:26 UTC (782 KB)
[v5] Mon, 19 Aug 2024 16:44:26 UTC (784 KB)
[v6] Thu, 7 Nov 2024 12:07:04 UTC (784 KB)
Current browse context:
math.PR
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.