6 Independent Monte Carlo

Suppose we want to compute for some function h:RkR, Ef[h(X)]=h(x)f(x)dx.

If we could simulate x1,,xni.i.d.f, then by the law of large numbers, we would have 1nni=1h(xi)Ef[h(X)].

Furthermore, we have that Var(1nni=1h(xi))=1n2ni=1Var(h(Xi))=1nVar(h(X1)), which, we will note for now, does not depend on the dimension of the random variable X1.

This approach to computing the expectation above is known as Monte Carlo integration which takes advantage of the law of large numbers saying that averages of numbers converge to their expectation. Monte Carlo integration can be quite useful, but it takes the problem of computing the integral directly (or via approximation) and replaces it with a problem of drawing samples from an arbitrary density function f.

Before we go further, we will take a brief diversion into random number generation.