Computer Science, Informatik 4 Communication and Distributed Systems
Simulation Simulation
Modeling and Performance Analysis with Discrete-Event Simulation g y
- Dr. Mesut Güneş
Simulation Simulation Modeling and Performance Analysis with - - PowerPoint PPT Presentation
Computer Science, Informatik 4 Communication and Distributed Systems Simulation Simulation Modeling and Performance Analysis with Discrete-Event Simulation g y Dr. Mesut Gne Computer Science, Informatik 4 Communication and Distributed
Computer Science, Informatik 4 Communication and Distributed Systems
Computer Science, Informatik 4 Communication and Distributed Systems
Output Analysis for a Single Model
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 3
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 4
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 5
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 6
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 7
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 8
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 9
Computer Science, Informatik 4 Communication and Distributed Systems
2 2
Chapter 11. Output Analysis for a Single Model 10
Server Waiting line
Q
Computer Science, Informatik 4 Communication and Distributed Systems
1, Y1j 2, Y2j 3, Y3j [0, 1000) 1 3.61 2.91 7.67 [1000, 2000) 2 3.21 9.00 19.53 Replication Batching Interval (minutes) Batch, j [2000, 3000) 3 2.18 16.15 20.36 [3000, 4000) 4 6.92 24.53 8.11 [4000, 5000) 5 2.82 25.19 12.62 [0, 5000) 3.75 15.56 13.66
. 3 . 2 . 1
Chapter 11. Output Analysis for a Single Model 11
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 12
Computer Science, Informatik 4 Communication and Distributed Systems
n
Desired
=
i i
1
θ θ − ) ˆ ( E
Chapter 11. Output Analysis for a Single Model 13
Computer Science, Informatik 4 Communication and Distributed Systems
E
T
E
Chapter 11. Output Analysis for a Single Model 14
Computer Science, Informatik 4 Communication and Distributed Systems
θ ˆ θ ˆ
Chapter 11. Output Analysis for a Single Model 15
Computer Science, Informatik 4 Communication and Distributed Systems
1, 2,
n
= =
n i i n i i
1 2 1
Chapter 11. Output Analysis for a Single Model 16
Computer Science, Informatik 4 Communication and Distributed Systems
=
R i i
1 2 .. . 2
Chapter 11. Output Analysis for a Single Model 17
Computer Science, Informatik 4 Communication and Distributed Systems
Quantile of the t
distribution with R-1 degrees of freedom.
R 1 , ..
2
−
α
..
..
..
Chapter 11. Output Analysis for a Single Model 18
Computer Science, Informatik 4 Communication and Distributed Systems
R
1
α
R 1 , ..
2
−
α
α 2 /
Chapter 11. Output Analysis for a Single Model 19
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 20
Computer Science, Informatik 4 Communication and Distributed Systems
n i i
=
T 1
E E
E
T
Chapter 11. Output Analysis for a Single Model 21
Computer Science, Informatik 4 Communication and Distributed Systems
j
. i
Within-Replication Data
Across-Rep. Data
n n 2 2 2 2 2 22 21 1 2 1 1 1 12 11
2 1
⋅ ⋅
R R R Rn R R n
R
2 2 1 2 2 2 2 22 21
2
⋅
Chapter 11. Output Analysis for a Single Model 22
R R R Rn R R
R
2 2 1 ⋅ ⋅
Computer Science, Informatik 4 Communication and Distributed Systems
The average:
R
=
i i
1 . ..
R i i
1 2 .. . 2
= i
1
R 1 , 2 / −
i E
T i E i
.
Chapter 11. Output Analysis for a Single Model 23
i
E
Ei
T i i Ei i
2 . 2
Computer Science, Informatik 4 Communication and Distributed Systems
..
. i
Chapter 11. Output Analysis for a Single Model 24
Computer Science, Informatik 4 Communication and Distributed Systems
R 1 , 2 / −
α
R is the number of replications S2 is the sample variance
replications variance
..
Chapter 11. Output Analysis for a Single Model 25
Computer Science, Informatik 4 Communication and Distributed Systems
0 (
2 of the population variance σ2.
α
−
R 1 ,
2
2 1 , 2 /
−
α
R
Chapter 11. Output Analysis for a Single Model 26
Computer Science, Informatik 4 Communication and Distributed Systems
2 / 1 2 /
R
2 / 2 2 / α α
2 / 1 , 2 / α α
R
−
2 / 1 , 2 / α α
R
−
R 1 , 2 / .. −
Chapter 11. Output Analysis for a Single Model 27
Computer Science, Informatik 4 Communication and Distributed Systems
is S0
2 = (0.072)2 = 0.00518.
Th it i i 0 04 d fid ffi i t i 1 0 95 h th fi l
sample size must be at least: 14 12 00518 . 96 . 1
2 2 025 .
= × = ⎟ ⎞ ⎜ ⎛ S z
14 . 12 04 .
2
= = ⎟ ⎠ ⎜ ⎝ ε R 13 14 15
2,18 2,16 2,14 15 39 15 1 14 83
1 2 /
R
replications are needed.
15,39 15,1 14,83
1 , 2 /
α
R−
Chapter 11. Output Analysis for a Single Model 28
Computer Science, Informatik 4 Communication and Distributed Systems
2 /
α
The sample proportion
The sample proportion p is given
Chapter 11. Output Analysis for a Single Model 29
Computer Science, Informatik 4 Communication and Distributed Systems
5.6 sorted data 7.1 8.8 8.9 9.5 9.7 10.1 12.2 this is our point estimate 12.5 12.9
Chapter 11. Output Analysis for a Single Model 30
Computer Science, Informatik 4 Communication and Distributed Systems
2 /
α l
2 / 2 /
u α α l
Chapter 11. Output Analysis for a Single Model 31
Computer Science, Informatik 4 Communication and Distributed Systems
A portion of the 1000 sorted values:
sorted values: Output Rank 180.92 779 188.96 780
th th
u
190.55 781 208.58 799 212.03 800 216 99 801
th th
216.99 801 250.32 819 256.79 820 256.99 821
Chapter 11. Output Analysis for a Single Model 32
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 33
Computer Science, Informatik 4 Communication and Distributed Systems
n i
(with probability 1)
1
= ∞ → i i n
(with probability 1)
∞ →
E
T E T
(with probability 1)
∞ →
E
E T
Chapter 11. Output Analysis for a Single Model 34
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 35
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 36
Computer Science, Informatik 4 Communication and Distributed Systems
Chapter 11. Output Analysis for a Single Model 37
Computer Science, Informatik 4 Communication and Distributed Systems
=
R r rj j
1 .
R replications
= r 1
Chapter 11. Output Analysis for a Single Model 38
Computer Science, Informatik 4 Communication and Distributed Systems
⋅
Chapter 11. Output Analysis for a Single Model 39
Computer Science, Informatik 4 Communication and Distributed Systems
+ =
n d j j
1 . ..
j
Chapter 11. Output Analysis for a Single Model 40
Computer Science, Informatik 4 Communication and Distributed Systems
j
Chapter 11. Output Analysis for a Single Model 41
Computer Science, Informatik 4 Communication and Distributed Systems
1,
n}
n i i
1
i
1
Chapter 11. Output Analysis for a Single Model 42
Computer Science, Informatik 4 Communication and Distributed Systems
1 1 k i i k k
+ +
2
k k =
k
−1 2
n
=1
k k
2
Chapter 11. Output Analysis for a Single Model 43
Computer Science, Informatik 4 Communication and Distributed Systems
k
below the mean.
k
k
Chapter 11. Output Analysis for a Single Model 44
Computer Science, Informatik 4 Communication and Distributed Systems
2
Chapter 11. Output Analysis for a Single Model 45
Computer Science, Informatik 4 Communication and Distributed Systems
deleting more data (i e increasing T0) or extending the length of each run (i e deleting more data (i.e., increasing T0) or extending the length of each run (i.e. increasing TE).
Individual observation from within replication r.
Batch mean of a continuous time process over time interval j.
Chapter 11. Output Analysis for a Single Model 46
Computer Science, Informatik 4 Communication and Distributed Systems
n
+ =
d j rj r
1 .
d n R r
, .. . ..
r
1 =
..
Chapter 11. Output Analysis for a Single Model 47
Computer Science, Informatik 4 Communication and Distributed Systems
..
R r R r
2 2 2 2
r r r r
= =
.. 1 .. . 1 .. .
Mean of the undeleted
Mean of ) , ( , ), , (
1
d n Y d n Y
R⋅ ⋅
K Standard error
from the r-th replication.
1 R
Chapter 11. Output Analysis for a Single Model 48
Computer Science, Informatik 4 Communication and Distributed Systems
..
Reducing bias Increasing variance Trade off
Chapter 11. Output Analysis for a Single Model 49
Computer Science, Informatik 4 Communication and Distributed Systems
minutes, starting at time 0 in the empty and idle state, initialized for T0 = 2000 minutes before data collection begins.
customers in queue for a 1000-minute interval. Th 1 b h d l d ( 2)
The point estimator and standard error are:
.. ..
1 , 2 / .. 1 , 2 / ..
− − Q R R
α α
Chapter 11. Output Analysis for a Single Model 50
and 12.02 (if d and n are “large” enough).
Computer Science, Informatik 4 Communication and Distributed Systems
2 2 2 05 .
2 1 , 05 .
R−
2 2 1 19 , 05 .
−
Chapter 11. Output Analysis for a Single Model 51
Computer Science, Informatik 4 Communication and Distributed Systems
Increase run length from (T +T ) to (R/R )(T +T ) and
Chapter 11. Output Analysis for a Single Model 52
Computer Science, Informatik 4 Communication and Distributed Systems
jm m j j
) 1 (
jm
Chapter 11. Output Analysis for a Single Model 53
jm m j i d i j
1 ) 1 (
+ − = +
Computer Science, Informatik 4 Communication and Distributed Systems
km d m k d m d m d m d d d
+ + − + + + + + +
1 ) 1 ( 2 1 1 1 km d m k d m d m d m d d d + + − + + + + + +
1 ) 1 ( 2 1 1 1
deleted
1
Y
2
Y
k
Y
= =
k j j k j j
1 2 2 1 2 2
Chapter 11. Output Analysis for a Single Model 54
Computer Science, Informatik 4 Communication and Distributed Systems
p y q sufficiently precise.
Chapter 11. Output Analysis for a Single Model 55