Interactive element. A sandbox to illustrate the consequences of different resampling strategies. Select a resampling strategy and observe how it affects sample diversity. The blocks on the left side represent initial weights.

Resampling

This interactive element illustrates the performance of two different resampling strategies: multinomial resampling, which simply randomly draws from a weighted list of indices, and stochastic universal resampling, which draws a random offset and then samples the indices from the empirical cumulative density function at regular intervals. Choose a resampling strategy, click "Resample", and observe the following patterns:

Furthermore, you can click the "Rejuvenate" button to add a bit of noise to the particle's states (represented here as color). Observe how rejuvenation re-introduces sample diversity, but not that excessive rejuvenation can drown out the information contained within the ensemble in noise.