Imagine that we want to sample the function in the
interval . It is evident that most of our points will fall in the
region where the value of is very small, and therefore we will
need a large number of values to achieve a decent accuracy. A way to
improve the measurement by reducing the variance is obtained by
``importance sampling''. As the name says, the idea is to sample the
regions with larger contributions to the integral. For this goal, we
introduce a probability distribution normalized in the interval of
integration
We are free to choose now. We wish to do it in a way to reduce and
minimize the variance of the integrand . The way to to this is
picking a that mimics where is large. if we are able
to determine an apropiate , the integrand will be slowly varying,
and hence the variance will be reduced. Another consideration is that
the generation of points according to the distribution should be
a simple task. As an example, let us consider again the integral
Notice that for the variance is zero! This is known as the zero variance property.