Importance sampling is a variance reduction technique that can be used in the Monte Carlo method.
The Monte Carlo method is used to approximate the integral of a function f as the average of the function evaluated at a set of points x1,...,xN.
where x1,...,xN were drawn from a uniform distribution over the inter val [a,b), and E{.} denotes the expected value. If we have additional knowledge about what f looks like and can find a function g similar to f, we can rewrite the integral as
where the yi now follow a g distribution.
A popular method to sample from the g distribution is Metropolis sampling.
If f(u) / g(u) has a smaller variance than f(u), the new sequence will converge faster.