An asymptotically optimal 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 expressed as a power series with non-negative coefficients that sum to at most , an algorithm is presented that produces a Bernoulli variable with parameter . In particular, the algorithm can simulate , . For functions with a derivative growing at least as for , the average number of inputs required by the algorithm is asymptotically optimal among all simulations that are fast in the sense of Nacu and Peres. A non-randomized version of the algorithm is also given. Some extensions are discussed.
View on arXivComments on this paper