Академический Документы
Профессиональный Документы
Культура Документы
Uncertainty
Jake Blanchard
Spring 2010
Introduction
Weve
discussed single-variable
probability distributions
This lets us represent uncertain
inputs
But what of variables that
depend on these inputs? How do
we represent their uncertainty?
Some problems can be done
analytically; others can only be
done numerically
Uncertainty Analysis for Engineers
Functions of 1 Random
Variable
Suppose
Example
Consider
Y=X2.
Also, assume discrete pdf of X is
as shown below
When X=1, Y=1; X=2, Y=4; X=3,
Y=9
0.4
0.4
0.35
0.35
0.3
0.3
0.25
0.25
0.2
0.2
0.15
0.15
0.1
0.1
0.05
0.05
0
0.5
0
1
1.5
2.5
3.5
4.5
5.5
10
15
20
25
30
Discrete Variables
Example:
e x
f ( x)
x 0,1, 2, ...
x!
x0
0
w h( x ) x
x 1, 2, ...
C
Formulation
w0
ln( w)
ln(C )
w C , C 2 , ...
p ( w)
ln( w )
w0
ln( C )
e
2
w
C
,
C
, ...
ln( w)
!
ln(C )
Plots
0.4
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0
0.4
1.5
2.5
3.5
4.5
0.35
0.3
0.25
C=2
=1
0.2
0.15
0.1
0.05
0
10
15
20
25
30
35
xi g 1 ( y )
( xi )
Another Example
Suppose
g (Y ) X Y
px
py
x!
e t
y
y !
x 0,1,2,3,...
y 0,1,4,9,...
Uncertainty Analysis for Engineers
Continuous Distributions
If
x g ( y )
x g 1 y
dg 1 ( y )
dx
dy
dy
y
1
dg
( y)
1
FY ( y ) f x g y
dy
dy
or
1
dF
dg
f y ( y)
f x g 1
dy
dy
10
X
Y
Example
X g 1 ( y ) Y
dg 1
dy
imagine
Normal
distribution
Mean=0, =1
1 X
1
fx
exp
2
2
y2
1
fy
exp
2
2
y2
1
fy
exp
2
2
Uncertainty Analysis for Engineers
11
Y ln( X )
Example
X g 1 ( y ) exp(Y )
is
dg 1
exp(Y )
lognormal dy
imagine
Normal
distributi
on
1 ln( x)
1
fx
exp
2 x
2
1 y
1
fy
exp
2 exp( y )
2
1 y
1
fy
exp
2
2
exp( y )
12
If g-1(y) is multi-valued
k
fY ( y ) f x g i1
i 1
dg 1
dy
Example
U cS 2
u
S
c
dS
1
du 2 cu
u
u 1
fs
f u f s
2 cu
c
c
S l ognormal ( , )
13
Example (continued)
1 ln(s )
1
fs
exp
2 s
2
fu
1
2
lognorma
l
u
c
exp
ln
1
u
c
1
2 cu
2
1 ln u ln c 2
1
fu
exp
2
2 2 u
2
u ln c 2
u 2
14
Example
FV 2
Z
aV 2
1400d
imagine
v
1
f v exp
v0
v0
v
v0
Z
a
dV
1
dz
2 az
f z f v
z
z 1
fv
f v
a
a 2 az
z 1
a 2 az
1 1
a
exp
v0
2 az v0
15
A second example
Suppose
16
Schematic
17
Example (continued)
Whenever
a flaw is found, we
must cut out a segment of width
w
w h L sin
f U 0,
w
w sin
L
1
d 1
w
1
dw L
L
L2 w2
1 / 2
18
Example (continued)
g-1
is multivalued
f1 w
f 2 w
</2
L w
1
2
L w
2
f w f1 w f 2 w
0w L
>/
2
0w L
2
L2 w2
Uncertainty Analysis for Engineers
19
Results
5
4.5
4
3.5
pd
f
3
2.5
2
1.5
1
0.5
L=1
0.1
0.2
0.3
0.4
0.5
w
0.6
0.7
0.8
0.9
1
0.9
0.8
0.7
cdf
0.6
0.5
0.4
0.3
0.2
0.1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
w
Uncertainty
Analysis for Engineers
20
discrete variables
fz
x, y
g ( xi , y j ) z
( xi , y j )
If
xi y j z
x, y
( xi , y j )
f x ,z x
x, y
all xi
21
Example
Z=X+Y
0.7
0.6
0.5
0.4
fx
0.3
0.2
0.1
0
0.5
0.45
1
1.5
2.5
3.5
0.4
0.35
0.3
x
fy
0.25
0.2
0.15
0.1
0.05
0
5
10
15
20
25
30
35
y
Uncertainty Analysis for Engineers
22
Analysis
X
Z-rank
10
11
.08
20
21
.04
30
31
.08
10
12
.24
20
22
.12
30
32
.24
10
13
.08
20
23
.04
30
33
.08
23
Result
0.3
0.25
0.2
fz
0.15
0.1
0.05
0
5
10
15
20
25
30
35
24
Example
Z=X+Y
0.7
0.6
0.5
0.4
fx
0.3
0.2
0.1
0
0.5
fy
1
1.5
2.5
3.5 0.5
0.4
0.3
0.2
0.1
0
1.5
2.5
3.5
4.5
25
Analysis
X
Z-rank
.08
.04
.08
.24
.12
.24
.08
.04
.08
26
Compiled Data
z
fz
.08
.28
.28
.28
.08
fz
0.3
0.25
0.2
0.15
0.1
0.05
0
2.5
3.5
4.5
5.5
6.5
7.5
27
Example
Z X Y
fx
vt
exp(vt )
x!
y
t
fy
exp( t )
y!
x and y are
integers
f z f x ( x) f y ( z x)
all x
vt t
x
x!( z x)!
allx
v
exp v t
x
fz t
allx
zx
exp v t
zx
x!( z x)!
Uncertainty Analysis for Engineers
28
Example (continued)
v
x
zx
allx
x!( z x)!
fz
vt
z!
z!
exp v t
The sum of n
independent Poisson
processes is Poisson
29
Continuous Variables
Z g( X ,Y )
Fz ( z )
Fz ( z )
x, y
g ( x , y ) z
( x, y )dxdy
1
g
x, y
( x, y )dxdy
x g 1 ( z , y ) g 1
z
dg 1
Fz ( z ) f x , y ( g , y )
dzdy
dz
1
1
dg
Fz ( z ) f x , y ( g 1 , y )
dydz
dz
30
Continuous Variables
1
dg
f z ( z ) f x , y ( g 1 , Y )
dY
dz
dg 1
f x, y ( X , g )
dX
dz
if
Z aX bY
Z bY
a
dg 1 1
dz
a
fz
1
Z bY
f
(
a x, y a , Y )dY
Uncertainty Analysis for Engineers
31
Continuous Variables
(cont.)
1
Z bY
f z f x, y (
, Y )dY
a
a
1
Z aX
f z f x, y ( X ,
)dX
b
b
x, y independent
1
Z bY
fz fx (
) f y (Y )dy
a
a
32
Example
W U V ; U ,V 0
1
u
fu
exp
2 mu
2m
1
v
fv
exp
2 mv
2m
fw
f u (u ) f v ( w u )du
1
w
fw
exp
2m
2m
1
w
fw
exp
2 m
2
m
fw
1
w
exp
2m
2
m
1
u
1
u
exp
2 mu
2m
1
(w u)
exp
du
2m
2 m( w u )
1
du
wu
du
u(w u)
33
In General
If
fz
( z y ) f y ( y ) dy
fz
1 z y
1
x
exp
x
2 x
2
1
exp 2
1
fz
exp
2 x2 y2
1
fz
2 x y
Then
1
1 y y
exp
2 y
2 y
2
2
z y x
1
y
dy
x
2 y
1
x
y
2
2
2
x
y
dy
z x y
Z is also normal with
2
2
2
Uncertainty
z Analysis
x for Engineers
y
34
Products
Z XY
Z
X
Y
X 1
Z Y
1
z
f z ( Z ) f X ,Y ( , y )dy
Y
y
Z Xi
i 1
ln( Z ) ln( X i )
i 1
Z X i
i 1
n
X2 i
2
Z
i 1
35
Example
W,
F, E are lognormal
WF
C
E
1
ln(C ) ln(W ) ln( F ) ln( E )
2
1
C W F E
2
1
E
2
2
C
2
W
2
F
36
37
Generalization
More
Z g ( x1 , x2 , x3 ,..., xn )
f Z ( z ) ... f x1 ,..., xn
g
g 1 , x2 , x3 ,..., xn
dx2 dx3 ...dxn
z
38
Moments
Suppose
E (Y ) a x f x ( x)dx b f x ( x)dx aE ( X ) b
Uncertainty Analysis for Engineers
39
Moments
ax b
Var (Y ) E Y Y
Var (Y )
f x ( x)dx
Y
ax
aE
(
x
)
b
f x ( x)dx
Var (Y ) a 2
E
(
x
)
f x ( x)dx
Var (Y ) a 2Var ( X )
40
imagine
Moments
Y aX 1 bX 2
E (Y ) aE ( X 1 ) bE ( X 2 )
Var (Y )
f x1 , x2 ( x1 , x2 )dx1dx2
Var (Y )
ax bx
1
2 a x1 b x2
f x1 , x2 ( x1 , x2 )dx1dx2
Var (Y ) a 2
x
1
x1
f x1 , x2 ( x1 , x2 )dx1dx2
b2
2 x2
f x1 , x2 ( x1 , x2 )dx1dx2
2ab
x1 x2 x2 f x1 , x2 ( x1 , x2 )dx1dx2
Cov ( X 1 , X 2 ) E X 1 X 1 X 2 X 2 E (Uncertainty
X 1 X 2 ) Analysis
E ( X 1 )for
E (Engineers
X2)
41
Approximation
Y g( X )
E (Y )
g( X ) f
( X )dX
dg
g ( X ) g ( x ) X x
dx
E (Y )
dg
g
(
f x ( X )dX
x
x
dx
dg
E (Y ) g ( x ) f x ( X )dX X x
f x ( X )dX
dx
dg
X x f x ( X )dX
E (Y ) g ( x ) f x ( X )dX
dx
E (Y ) g ( x )
42
Approximation
g( X )
Var (Y )
f x ( X )dX
dg
g ( X ) g ( x ) X x
dx
dg
g
(
x
y
x
dx
Var (Y )
dg
dx
Var (Y )
f x ( X )dX
dg
Var (Y )
dx
f x ( X )dX
f x ( X )dX
x
dg
Var (Y ) Var X
dx
x x
43
Second Order
Approximation
Y g( X )
E (Y )
g( X ) f
( X )dX
2
dg 1
d
g
2
g ( X ) g ( x ) X x
X x
dx 2
dx 2
1
d
g
2
E (Y ) g ( x ) X x
f x ( X )dX
2
2
dx
1 d 2g
2
E (Y ) g ( x )
X
f x ( X )dX
x
2
2 dx
1 d 2g
E (Y ) g ( x )
2 dx 2
Var ( x)
xx
44
E (Y ) g X 1 , X 2 , X 3 ,..., X n
g
Var (Y )
i 1
X i
n
1 n 2 2g
xi
2
2 i 1 xi
2
Xi
45
Example
WF
C
E
Example
4.13
Do exact and then use
approximation and compare
Waste Treatment Plant C=cost,
W=weight of waste, F=unit cost
factor, E=efficiency coefficient
median
cov
2000 ton/y
.2
$20/ton
.15
1.6
.125
Uncertainty Analysis for Engineers
46
Solving
W lnWmedian 7.6009
F ln Fmedian 2.9957
E ln Emedian 0.4700
W ln 1 covW2 0.19804
F ln 1 cov 2F 0.149166
E ln 1 cov 2E 0.124516
1
ln C ln W ln F ln E
2
1
C E ln C W F E 10.36
2
1 2
2
2
C W F E 0.25563
4
1 2
C exp C C 32,620
2
C C exp C2 1 8477
47
Approximation
1 2 2 g 1 2 2 g 1 2 2 g
E (C ) g W , F , E W
F
E
2
W 2 2
F 2 2
E 2
g W , F , E W F
E
0
W 2 F 2
2 g 3W F
2
E
4 E5 / 2
W F 1 2 2 g
E
32673
2
E
E 2
error
32673 32620
0.16%
32620
Uncertainty Analysis for Engineers
48
Variance
2
2 g
2 g
2 g
Var (C ) W
F
E
W
F
E
F
2
Var (C ) W
E
W
2
F
E2 W F
2 3 / 2
C 8370
8477 8370
error
1.3%
8477
49