Idea: A plain run that starves
Default chance : plain paths see about defaults.
- The other paths tell you nothing
- Importance sampling moves paths to the action, then corrects
Formula: Reweighting
Draw from q and weight each draw by p/q. Unbiased if q > 0 wherever p·f is not 0.
Example: A weighted run
True default , sampled at , cost . Of draws, default. What is the estimate?
- Weight:
- Estimate:
Formula: Variance for a rare event
Falls as the sampling chance q rises towards 1. The ideal q follows |f| times p.
Quick check: Variance saved
A default with is sampled with . What is the variance of one weighted draw?
Show the answer
Answer:
, about times below a plain draw.
Common mistake: It can make things worse
A event sampled at : , against plain.
Instead Never give q thinner tails than p: one huge weight can move everything.
Formula: Effective sample size
How many equal draws the weighted sample is worth. A small share of n means do not trust it.
Quick check: Check the weights
draws have weights , , , , . What is the effective sample size?
Show the answer
Answer:
: the draws are worth fewer than .
Idea: Say it out loud
Report the effective sample size beside the estimate, not only the error bar.
- A region q never visits is one the estimate never sees
- Shift or tilt p towards the scenarios that matter
Courses / Simulation and approximation