Click here to Skip to main content
15,886,199 members
Articles / General Programming / Algorithms

Bernoulli Factory Algorithms

Rate me:
Please Sign up or sign in to vote.
5.00/5 (12 votes)
2 Sep 2021Public Domain142 min read 28.3K   159   20  
Algorithms to turn biased "coin flips" into biased "coin flips", and how to code them.
This page catalogs algorithms to turn coins biased one way into coins biased another way, also known as Bernoulli factories. It provides step-by-step instructions to help programmers implement these Bernoulli factory algorithms. This page also contains algorithms to exactly simulate probabilities that are irrational numbers, using only random bits, which is related to the Bernoulli factory problem. This page is focused on sampling methods that exactly simulate a given probability without introducing new errors, assuming "truly random" numbers are available. The page links to a Python module that implements several Bernoulli factories.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions