Suppose that we want to sample from an HMM with complicated transition rules, conditional on some observations. (If the transition rules are Gaussian you can use Kalman filters, and if they are discrete then you do classical belief propagation).
Letâs say there is a sequence of hidden states
There are some simple update rules governing the evolution of our pr dist on
Weâre going to maintain
Given this approximation, we update as
Then, ideally weâd choose some new particles
In reality itâs not totally clear how to choose the new particles --- for instance sampling from the correct distribution might be computationally challenging.
So weâll instead use importance sampling!
We set
except you should normalize the weights to sum to one.