Interactive element. Adjust the sample distribution, the desired distribution, and the resampling trategy via the dropdown menus, and observe how importance sampling attempts to approximate the desired distribution using the sample distribution. All samples are black, sample weight is represented as opacity. Press the resampling button to generate new equal-weighted samples from the current weighted ensemble.