Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are...

24
Importance Sampling
  • date post

    19-Dec-2015
  • Category

    Documents

  • view

    213
  • download

    0

Transcript of Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are...

Page 1: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Importance Sampling

Page 2: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

What is Importance Sampling ?

A simulation techniqueUsed when we are interested in rare eventsExamples:

Bit Error Rate on a channel, Failure probability of a reliable system

2

Page 3: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

What is the Problem ?

Assume you can simulate a systemYou want to evaluate the probability of a rare eventDo you do a stationary or terminating simulation ?

Assume proba of rare event is 1E-06: how many simulation runs do you need to obtain one rare event ?

3

Page 4: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Simulating Rare Events

You simulate a rare event using R replicationsYou want to estimate p, proba of rare event You obtain a confidence interval p-u, p+u; you want accuracy 10%

u/p = 0.1With proba 95%

4

Page 5: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

The Idea of Importance Sampling

5

Page 6: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

The Idea of Importance Sampling (cont’d)If we simulate X, how do we estimate p ?

If we simulate instead of X , we cannot use

But:

Show this !

6

Page 7: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Importance Sampling Monte Carlo

7

Page 8: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Example: Bit Error Rate (BER)

8

Page 9: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

9

Page 10: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

10

Page 11: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Wake Up Slot

What is the twisted distribution of X0 ?

What is the weighting function ?

11

Page 12: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Answer

12

Page 13: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Importance Sampling Monte Carlo

What is the gain ?Is Importance Sampling always better ?

13theta

R

Page 14: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Choosing an Importance Sampling Distribution

What is a good importance sampling distribution ? One that minimizes the number of runs

This can be quantified with the variance of the importance sampling estimator

14

Page 15: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

15

Page 16: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

The smallest variance is for

16

R (proportional to variance)

Page 17: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Choosing an Importance Sampling Distribution (1)

Rule of thumb:The events of interest, under the importance sampling distribution should be

not rare

not certain

17

Page 18: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Choosing an Importance Sampling Distribution (2)

The optimal importance sampling distribution is the one that minimizes

Wake up question: is it the same as minimizing the variance of the importance sampling estimator ?

18

Page 19: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

19

Page 20: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

20

Page 21: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

A Generic Algorithm

Ideas : empirically find importance sampling distribution such thatAverage occurrence of event of interest is close to 0.5Minimizes

Can be computed by Monte Carlo with small number of runs

The algorithm does not say how to do one important thing: which one ?

21

Page 22: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Exercise

Q: We simulate R = 10 000 samples and find no bit error. What can we say about the bit error rate ?

A: with confidence 0.95, BER < 3.7 E-04

22

Page 23: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

23

Page 24: Importance Sampling. What is Importance Sampling ? A simulation technique Used when we are interested in rare events Examples: Bit Error Rate on a channel,

Conclusion

If you have to simulate rare events, importance sampling is probably applicable to your case and will provide siginificant speedup

A generic algorithm can be used to find a good sampling distribution

24