An asymptotically optimum Bernoulli factory for certain functions that can be expressed as power series

Abstract
Given a sequence of independent Bernoulli variables with unknown parameter , and a function that can be expressed as a power series with non-negative coefficients, an algorithm is presented that produces a Bernoulli random variable with parameter . In particular, the algorithm can simulate for . The algorithm requires, for general , an average number of inputs that is asymptotically optimal in a precisely defined sense. In addition, the distribution of the number of inputs has an exponentially decaying tail. Some extensions of the algorithm are discussed.
View on arXivComments on this paper