paper

Nearly optimal Bernoulli factories for linear functions

arXiv:1308.1562 · doi:10.1017/S0963548315000371

Abstract

Suppose that are independent identically distributed Bernoulli random variables with mean . A Bernoulli factory for a function takes as input and outputs a random variable that is Bernoulli with mean A fast algorithm is a function that only depends on the values of , where is a stopping time with small mean. When is a real analytic function the problem reduces to being able to draw from linear functions for a constant . Also it is necessary that for known . Previous methods for this problem required extensive modification of the algorithm for every value of and . These methods did not have explicit bounds on as a function of and . This paper presents the first Bernoulli factory for with bounds on as a function of the input parameters. In fact, In addition, this method is very simple to implement. Furthermore, a lower bound on the average running time of any Bernoulli factory is shown. For , , so the new method is optimal up to a constant in the running time.

15 pages; Corrected typo in Theorem 3: changed (1 - γ)^{2} to (1 - γ^{-2}) in the definition of r