5.8 Importance sampling
Source: Ideas from Computational Physics (Landau, Páez, Bordeianu), §5.8. Rewritten in original wording. Continues 5.7 Monte Carlo variance reduction. Labs: 5.8b Importance-sampling labs.
Reweight the measure
Write the integral against a weight (density) that you choose, average under samples from , then draw those samples by rejection or inverse CDF. Walk , the flattening choice , von Neumann’s accept test, and the map — pick the matching equation at each step.
Flatten
Uniform sampling is the special case . Importance sampling is the natural next step when you can sample from a peaked that matches the integrand’s shape.
von Neumann rejection sampling
How do you draw when is not a standard distribution? Enclose in a box of height ; the guide’s rejection step keeps points under the curve. Accepted abscissae are distributed according to . The acceptance rate is the area under over the box area.
Accepted samples feed an importance estimate . When is harder to sample by inversion or rejection, Metropolis algorithms (Chapter 17) generate correlated draws from without needing a tight enclosing box — mentioned here only as the later generalization.
Inverse-CDF shortcut
If the CDF of is invertible, you can skip rejection: draw and set . Example on : — the guide’s last step — after which you average .
Importance sampling
1 / 3Importance sampling writes I as…
Pick an answer to see if you are right.