Section 8.3: Finite-Horizon and Infinite-Horizon Statistics: Discrete-Event Simulation: A First Course
Section 8.3: Finite-Horizon and Infinite-Horizon Statistics: Discrete-Event Simulation: A First Course
1/ 20
Denition 8.3.1: Steady-state statistics Produced by simulating the operation of a stationary discrete-event system for an innite length of time Steady-state statistics may not exist
2/ 20
Example 8.3.1
Use sis4 to simulate dierent numbers of time intervals, compute average inventory level l for each Output from sis4 for an increasing number of time intervals n n: 20 40 80 160 320 640 1280 2560 l : 25.98 26.09 25.49 27.24 26.96 26.36 27.19 26.75 As n , l seems to converge to 26.75
A better approach is to use interval estimation for the steady-state l , using large but nite n One way is to use batch means Section 8.4
3/ 20
Example 8.3.2
Use an arrival rate of 1/2 Change Erlang parameters so service rate is 1/2 or less As n increases, w and l will tend to increase, without limit Why? The server cannot keep up with demand, so the queue will grow as more jobs arrive In this case, the steady-state average wait and the average number in the node are both innite
4/ 20
Example 8.3.3
With minor modications, program ssq4 can be used to simulate an initially idle M /M /1 service node processing a small number of jobs (say 100) and with relatively high trac intensity (say 0.8) If the program is executed multiple times varying only the rngs initial seed from replication to replication,
the average wait in the node will vary signicantly for most replications, the average wait will not be close to the steady-state average wait
If a relatively large number of jobs (say 10000) are used, variability of the average wait will be much less signicant and be close to the steady-state average number When the number of jobs becomes innite, the initial condition bias disappears
6/ 20
In an innite-horizon simulation, the system environment is assumed to remain static If the system is a single-server service node, both the arrival rate and the service rate are assumed to remain constant in time In a nite-horizon simulation, no need to assume a static environment
7/ 20
The pragmatic view: transient statistics are most important because steady-state is just a convenient ction Depending on the application, both transient and steady-state statistics may be important Important to decide which statistics best characterize the systems performance
8/ 20
Innite-horizon discrete-event simulations must be terminated; typically done using whatever stopping conditions are most convenient
9/ 20
Formal Representation
The state variable X () is known formally as a stochastic process
The typical objective of a nite-horizon simulation of this system would be to estimate the time-averaged transient statistic ( ) = 1 X X (t )dt 0 where > 0 is the terminal time The typical objective of an innite-horizon simulation of this sytem would be to estimate the time-averaged steady-state statistics ( ) = lim 1 x = lim X
X (t )dt
0
10/ 20
Denition 8.3.3
If a discrete-event simulation is repeated, varying only the rngs initial states from run to run, each run of the simulation program is a replication and the totality of replications is said to be ensemble Replications are used to generate estimates of the same transient statistic The initial seed for each replication should be chosen to be no replication-to-replication overlap The standard way is to use the nal state of each rngs stream from one replication as the initial state for the next replication accomplished by calling PlantSeeds once outside the main replication loop
11/ 20
Suppose the nite-horizon simulation is replicated n times, each time generating a state time history xi (t ) x i ( ) = 1
0
xi (t )dt
where i = 1, 2, . . . , n is the replication index Each data point x i ( ) is an independent observation of the ( ) random variable X ( ) can be estimated from a If n is large enough, the pdf of X histogram of the x i ( )
12/ 20
13/ 20
Example 8.3.5
A modied version of sis4 was used to produce 21 replications 100 time intervals of operation were simulated Inventory parameters were (s , S ) = (20, 80). ( ), the time-averaged inventory level Measured L ( ) Each of these 21 numbers is a realization of L
23
| | | | | | |
27.06 0.82
| | | || ||
31
| | || | | |
14/ 20
The mean and standard deviation are 27.06 and 1.76 respectively If a 95% condence interval estimate is desired, t = idfStudent(20, 0.975) = 2.086 The 95% condence interval estimate is 27.06 (2.086)(1.76) = 27.06 0.82 20
15/ 20
Example 8.3.6
A modied version of ssq2 was used to produce 20 replications 100 jobs processed through M /M /1 service node
Node is initially idle Arrival rate is = 1.0 Service rate is = 1.25
3.33 1.04 | | | | | |
12
| | | |
From Algorithm 8.1.1, the resulting 95% condence interval estimate is 3.33 1.04
16/ 20
17/ 20
Example 8.3.7
The modied version of program ssq2 was used to produce 60 more replications Consistent with n rule, expect two-fold decrease in the width of the interval estimate Based on 80 replications, the resulting 95% condence interval estimate was 3.25 0.39
1
|| || |||| | || ||| | || ||
12
| | || | | | ||| | | | | |
In this case 100 jobs are not enough to produce steady-state statistics
18/ 20
Example 8.3.8
As a continuation of Example 8.3.6, the number of jobs per replication was increased from 100 to 1000 20 replications were used to produce 20 observations of the average wait in the node
1
||
3.82 0.37 | | | | | | | | | | || | |
12
| |
Relative to Example 8.3.6, much more symmetric sample mean in Example 8.3.8
1
| || | | || |
3.33 1.04 | | | | | |
12
| | | |
19/ 20
The 1000-jobs per replication results are more consistent with the underlying theory of interval estimation
Requires a sample mean distribution that is approximately Normal(, / n) Sample mean distribution is centered on (unknown) population mean
1000 jobs may achieve steady-state; 100 jobs cannot More on this issue in Section 8.4
20/ 20