38
8

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 pp, and a function ff that can be expressed as a power series with non-negative coefficients, an algorithm is presented that produces a Bernoulli random variable with parameter f(p)f(p). In particular, the algorithm can simulate f(p)=prf(p) = p^r for 0<r<1 0 < r < 1. The algorithm requires, for general ff, 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 arXiv
Comments on this paper