Numerical Methods For Engineering Design and Optimization
Numerical Methods For Engineering Design and Optimization
Slide 1
Overview
Slide 2
CDF
Evenly partitioned
regions
x
Avoid the probability that all sampling points come from
the same local region
Slide 4
Probability of x2
x1
0.8
0.6
0.4
0.2
0
1
Slide 5
# of random variables
# of samples
LHS sampling points
Slide 6
0.5
-0.5
0
10
10
# of Samples
Random sampling
10
0.5
-0.5
0
10
10
# of Samples
10
Importance Sampling
P( x 5) = ???
Slide 8
Importance Sampling
Key idea:
Do not generate random samples from pdfx(t)
Instead, find a good distorted pdfy(t) to improve Monte Carlo
sampling accuracy
pdfx(t)
P(x-5)
0
t
Slide 9
Importance Sampling
f (t ) pdf (t ) dt
x
(x 5)
(x > 5)
1
f (x ) =
0
5
E [ f ( x )] = 1 pdf x (t ) dt + 0 pdf x (t ) dt = P( x 5)
Slide 10
Importance Sampling
pdf x (t )
E [ f (x )] = f (t )
pdf y (t ) dt = g (t ) pdf y (t ) dt = E [g ( x )]
pdf y (t )
Slide 11
Importance Sampling
Importance Sampling
[ ]
Error ~ VAR f
Slide 13
Importance Sampling
pdf y (t ) =
pdf x (t )
pdf y (t )
=k
f (t ) pdf x (t )
k
(Constant)
f(tm)pdfx(tm)/pdfy(tm) is equal to
the same constant for all
sampling points
(Optimal PDF)
Slide 14
Importance Sampling
pdf y (t ) =
f (t ) pdf x (t )
pdf y (t ) dt =
f (t ) pdf x (t )
k
k=
dt = 1
f (t ) pdf (t ) dt = E[ f ]
Slide 15
Importance Sampling
Slide 16
Importance Sampling
Slide 17
Importance Sampling
Shifted Normal
pdfx(t)
Uniform
P(x-5)
0
Slide 18
Summary
Slide 19