Professional Documents
Culture Documents
Chapter 4-Simulation Techniques
Chapter 4-Simulation Techniques
SIMULATION TECHNIQUES
4.1 MONTE CARLO METHODS
Y=R–Q
Where, R = 0.85f’cAc.
pF = P(Y<0) = P(R-Q<0)
3. Calculate Y = R – Q
x = a + (b-a)u (4-1)
4.1 MONTE CARLO METHODS
4.1.2. Generation of uniformly distributed random numbers
We can also generate sample values i for a uniformly distributed
random integer i between two integer values a and b (including a
and b) using the formula:
i = a + TRUNC[(b-a+1)u] (4-2)
zi 1 (ui ) (4-3)
X X Z X (4-4)
xi X zi X (4-5)
4.1 MONTE CARLO METHODS
4.1.4. Generation of normal random numbers
Example 4.2
Assume the dead load D on a structure is normally distributed
random variable. The mean D is 2.0 k/ft and coefficient of
variation VD is 10%. The PDF for dead load is shown in Figure
4.4. Generate 10 values of the random variable D.
4.1 MONTE CARLO METHODS
4.1.4. Generation of normal random numbers
Example 4.2 To begin, we need generate some uniformly distributed random
Solution variables. For this example, the first 10 values in column 1 of
Table 4.1 are used. Then Eq. 4.3 is used to generate
corresponding zi values. Finally, Eq. 4.5 is used to convert the zi
values to Di values. Note that D VD D 0.2k / ft . The
numerical results are tabulated in Table 4.2.
4.1 MONTE CARLO METHODS
4.1.4. Generation of normal random numbers
Example 4.3 Consider a wood cantilever beam shown in Figure 4.5. Using
the Monte Carlo technique, calculate the mean and standard
deviation of the moment M at a distance 6 ft from the free and.
The loads P and w are independent normal random variables
with the following parameters:
P 4000lb ; w 50lb / ft
P 400lb ; w 5lb / ft
4.1 MONTE CARLO METHODS
4.1.4. Generation of normal random numbers
Example 4.3
Solution The bending moment at the location of interest:
M = 6P – 18w
2 2
M 6 P 18 w 2400lbft 2.40kft
M i 6 Pi 18wi
1
ln X ln X ln2 X (4-8)
2
ln X (for VX <0.20)
xi FX1 ui (4-10)
1 1 Ptrue
E P Ptrue ; P2 Ptrue 1 Ptrue ; VP
N N Ptrue
(4-12)
1 ln ln(ui )
qi F (ui ) 94.6
Q
0.107
X X , X
1 2
,..., X n (4-13)
(4-14)
4.1 MONTE CARLO METHODS
4.1.8. Simulation of correlated normal random variables
To generate correlated random variables for X 1 , X 2 ,..., X n , it is
necessary to first generate a set of uncorrelated random numbers
Y1, Y2 ,..., Yn using the techniques discussed ealier. Then,
X T Y (4-15)
Where [T] is a transform matrix.
[A] is [CX].
Y21 0 0
0 2
Y2 0
T
CY T C X T (4-18)
0 0 2
Yn
T
C X T CY T (4-19)
X 2 V X 2 X 2 0.20 15 3
The vector of mean values and the covariance matrix for the
original variables X1 and X2 are:
X1 10
X 2 15
X2 1 12 X 1 X1 1 1.5
C X
12 X1 X1 X2 2 1.5 9
0.984 0.178
T
0.178 0.984
4.1 MONTE CARLO METHODS
4.1.8. Simulation of correlated normal random variables
Solution
Y f ( X 1 , X 2 ,..., X K ) (4-21)
N
th 1 m
Estimated m moment of Y
N
y
i 1
i
number of times yi y
Estimated CDF FY y
N
4.2 LATIN HYPERCUBE SAMPLING
Example 4.7
Y 3X1 7 X 2
Example 4.7
Solution:
Since there are two random variables, K=2.
Example 4.7
Solution:
Now we must randomly select a value from each interval as a
representative value of the interval. Suppose that we do this and
obtain the following representative values.
Example 4.7
Solution:
For each of these repairs, we must compute the corresponding
value of Y:
y1(2.23,0.55) = 2.84
y2(2.90,1.5) = -1.8
y3(3.04,0.61) = 4.85
y4(3.81,0.51) = 7.86
These represent the four simulated values (N=4) of Y. The
sample mean is obtained using Eq. 4.22
N
1 1
Y yi 2.48 1.8 4.85 7.86 3.44
N i 1 4
4.2 LATIN HYPERCUBE SAMPLING
Example 4.7
Solution:
For comparison, since the function is linear, Eq. 3.2 can be used
to calculate the exact mean value of the function:
Y 3 X1 7 X 2 3 3 7 0.6 4.8
Y f ( X 1 , X 2 ,..., X K )
y0 f ( X1 , X 2 ,..., X K )
4.3 ROSENBLUETH’S 2K+1 POINT ESTIMATE METHOD
yi f X1 , X 2 ,..., X i X i ,..., X K
yi f X1 , X 2 ,..., X i X i ,..., X K
4.3 ROSENBLUETH’S 2K+1 POINT ESTIMATE METHOD
yi yi
yi
2
yi yi
V yi
yi yi
5. Calculate the estimated mean and coefficient of variation
of Y as follows:
K y
Y y0 i
i 1
y0
K
VY 1 V y2i 1
i 1
4.3 ROSENBLUETH’S 2K+1 POINT ESTIMATE METHOD
Example 4.8
For the function considered in Example 4.7, estimate the mean
and coefficient of variation using Rosenblueth’s 2K+1 method.
Solution:
Example 4.8
Solution: 2. Calculate y0 using Eq 4.26:
y0 3 X1 7 X 2 3 3 7 0.6 4.8
y1 f X1 X1 , X 2 3 3 1/ 3 7 0.6 6.53
y1 f X1 X1 , X 2 3 3 1/ 3 7 0.6 3.07
y2 f X1 , X 2 X 2 3 3 7 0.6 0.1 4.10
y2 f X1 , X 2 X 2 3 3 7 0.6 0.1 5.50
4.3 ROSENBLUETH’S 2K+1 POINT ESTIMATE METHOD
Example 4.8
Solution: 4. Use Eqs 4.28a and b to calculate some intermediate
quantities:
Example 4.8
Solution: 5. Use Eqs 4.29a and b to estimate the mean and coefficient
of variation of Y:
4.80 4.80
Y 4.80 4.80
4.80 4.80
K
VY 1 Vy2i 1 1 (0.360) 1 (0.146) 1 0.392
2 2
i 1
4.3 ROSENBLUETH’S 2K+1 POINT ESTIMATE METHOD
Example 4.8
Solution: For comparison purposes, consider the exact mean and
coefficient of variation. In example 4.7, the exact mean value of
this function was found to be 4.80. From Eq. 3.4, the exact
variance (assuming no correlation) is
2 2
2
a
Y
i 1
2
i
2
Xi
2
3 1/ 3 2 2
7 0.1 3.49
Y 3.49
VY 0.389
Y 4.8
For this simple problem, the estimated and exact mean values
are identical. The estimated and exact values of the coefficient
of variation are very close