Estimating with weighted guesses
Often you want an average under a distribution that you cannot draw from. In filtering, is the belief about the hidden state after seeing today's data. The trick of importance sampling is to draw from an easy distribution instead, called the proposal, and to repair the mismatch with weights. A point that the proposal produces too often gets a small weight, and one it produces too rarely gets a large weight: . Usually is known only up to a constant, so the weights are divided by their sum, which makes them add to .
In a filter, the proposal is the prediction (where the state is likely to be before seeing the data) and the target is the belief after the data. Their ratio is just the likelihood of the observation, so the weight of a particle is how well it explains . The effective sample size, ESS, tells how many equally weighted draws the weighted sample is worth. It equals when all weights are equal and when one point carries everything. When ESS is small the estimate rests on a few points and is noisy. This happens when the proposal misses the places where the target has most of its mass, for example when the data is a big surprise.
- Weights repair the mismatch: draw from an easy , weight by , divide by the sum.
- In a filter the weight is the likelihood: the particle that explains the observation best gets the most weight.
- Watch the ESS: falls when a few points dominate, which is the warning sign of a poor proposal.
Lab · what's graded
- A normalised weight15 pts
- The weighted mean15 pts
- The effective sample size15 pts
- The weighted variance10 pts
- A dangerous proposal10 pts
- The steps of importance sampling10 pts
- Match the vocabulary10 pts
- Why weights are needed15 pts