Much of what we do when we analyze data and invent algorithms is think about *estimators* for unknown quantities, even when we don’t directly phrase things this way. One type of estimator that we commonly encounter is the Monte Carlo estimator, which approximates expectations via the sample mean. That is, many problems in which we are interested involve a distribution on a space , where we wish to calculate the expectation of a function :

This is very nice because it gives you an unbiased estimator of . That is, the expectation of this estimator is the desired quantity. However, one issue that comes up very often is that we want to find an unbiased estimator of a quantity that is a *function* of an expectation. Of course, we know that the expectation of a function is not in general a function of the expectation, so we can’t do the easy thing that we’d like to do and wind up with an unbiased estimator. For me, this is most salient when one wants to compute an unbiased estimate of a geometric mean. Let’s imagine that we have a set of (where is very large) positive quantities and we are interested in estimating the geometric mean:

You might reasonably examine this and observe that you can get an unbiased estimator of the log of this quantity with a randomly-chosen subset of of the , i.e.,

You might now imagine exponentiating this to get an estimator, but it will be biased. (Jensen’s Inequality should help you think about why this is true.) Is there anything to be done? Are we sunk? Remarkably, it turns out that there are ways to fix up such estimators so that they are unbiased. One such example is the Poisson estimator, which I learned about from Fearnhead et al. (2010) and which they attribute to Wagner (1987). I particularly recommend the general treatment in Papaspiliopoulos (2009). Continuing with the example above, we want to know , but we can only estimate . Let’s imagine that is so much larger than that we can get i.i.d. estimates of , which I will denote .

The trick is to compute the randomized product of your estimators:

where is a free parameter. This has expectation where . You can see this by thinking about unrolling the expectation of the estimator, where , , and so on according to the Poisson distribution

Then the expectation of the estimator becomes:

If all of the are independent, then we can see this is the power series expansion of . I think this is a very cool trick. In practice, one can introduce another free parameter to get lower variance, so that the final estimator is:

(1)

Max Welling and his student Anoop Korattikara, as well as some other folks, have been thinking about how this could be used with pseudo-marginal Markov chain Monte Carlo (Andrieu and Roberts, 2009) to get “batch MCMC” that only computes the likelihood for a subset of the data but nevertheless has the full posterior as its equilibrium distribution. However, Anoop and Max report that the variance of such estimators is sufficiently high that the Markov chain is very likely to get stuck in a bad location due to the occasional overestimation of the likelihood. It’s too bad, because this seems like it could overcome some of the frustrations intrinsic to Monte Carlo inference with very large data sets.

- Christophe Andrieu and Gareth O. Roberts. The pseudo-marginal approach for efficient Monte Carlo computations. Annals of Statistics. 37(2):697-725. 2009.
- Paul Fearnhead, Omiros Papaspiliopoulos, Gareth O. Roberts, and Andrew Stewart. Random-weight particle filtering of continuous time processes. Journal of the Royal Statistical Society, Series B. 72(4):497-512. 2010.
- Omiros Papaspiliopoulos. A methodological framework for Monte Carlo probabilistic inference for diffusion processes.
*Inference and Learning in Dynamic Models*. Cambridge University Press. 2009. - Wolfgang Wagner. Unbiased Monte Carlo evaluation of certain functional integrals. Journal of Computational Physics. 71:21-33. 1987.