Skip to main content
. 2017 Dec 20;119(4):1394–1410. doi: 10.1152/jn.00684.2017

Fig. 2.

Fig. 2.

Illustration of generic particle filter with importance sampling and resampling. In a generic operation, i.i.d. samples or particles {zk(i)} (with equal weights) are first drawn from a proposal distribution. Ticks illustrate the neural spike observations overlaid on the conditional distribution p(y|z). Next, the particles are passed through the likelihood function p(yk|zk), weighted by their importance weights. More important particles are assigned greater weights (proportional to the size of the circles). The particles are further resampled to avoid the “weight degeneracy” problem, so that the importance weights are renormalized. Finally, the resampled particles are used for prediction in the next time step, producing the new particle set {zk+1(i)}.