Download presentation
Presentation is loading. Please wait.
1
Output Data Analysis
2
How to analyze simulation data? simulation –computer based statistical sampling experiment –estimates are just particular realizations of random variables that may have large variances –n independent replications –each replication terminated by same event –started with same initial conditions –replications are independent by means of using different random variables –single measure of performance one per replication 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 2
3
obtained random numbers Y 1, Y 2, … Y m –is an output stochastic process from a single run –generally neither independent nor identically distributed –most formulas assuming IIDs not directly applicable y 11, y 12, … y 1m –realizations for random variables Y 1, Y 2, … Y m –resulting from making a simulation run of length m observations y 21, y 22, …, y 2m –realizations for random variables Y 1, Y 2, … Y m –if simulation is run again (using different random variables) 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 3
4
obtained random numbers (cont) 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 4 if you make n independent replications (runs) –with different random number used –observations from particular run/row not IID –observations from form i th column are IID observations of random variable Y i (i = 1..m) ! independence across runs y 11, y 12, …y 1i, ….y 1m y 21, y 22, ….y 2i, ….y 2m …….…. y n1, y n2, …y ni, …..y nm
5
Transient and Steady-State Behavior stochastic output process Y 1, Y 2,.. –transient condition: F i ( y | I ) = P(Y i · y | I) for i = 1, 2… –y is a real number –I represents initial conditions density f Y i –specifies how random variable Y i can vary from one replication to another F i (y | I ) ! F(y) as i ! 1 –F(y)steady-state distribution of output process Y 1, Y 2, … –in theory only obtained at limit –in practice ! finite time index (k+1) ! distributions will be approximately the same 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 5
6
Transient and Steady-State Behavior (cont.) 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 6
7
Types of Simulations terminating simulation non-terminating simulations –steady-state parameters –steady-state cycle parameters –other parameters 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 7 we’ll focus on this type only
8
Example bank –5 tellers, one queue –opens at 9:00 –closes at 17:00 (stays open until all customers in the bank have been served) –terminating simulation close at/after17:00 (as soon as all customers have left) 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 8
9
Example (cont.) 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 9 R# servedtimeavg Delayavg Length% C’s delayed < 5 minutes 14848.121.531.520.917 24758.141.661.620.916 34848.191.241.230.952 44838.032.34 0.822 54558.032.001.890.84 64618.321.691.560.866 74518.092.692.50.783 84868.192.862.830.782 95028.151.71.740.873 104758.252.62.50.779
10
Estimating Means point estimate and confidence interval for mean ¹ = E(X) –unbiased point estimator for ¹ –approximate 100(1- ® ) percent confidence interval for ¹ 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 10
11
Estimating Means (example) estimate expected delay – = 2.031 – S 2 (n) = 0.309 – confidence interval with ® = 10% estimated proportion of customers being delayed < 5 minutes –expected proportion for a given day/run indicator function – = 0.853S 2 (n) = 0.0039 – CI with ® = 10% 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 11
12
Obtaining a desired precision so far –fixed sample size procedure (based on n replications) –disadvantage: no control over the CI’s half length (i.e. precision of ) –half length depends on population variance S 2 (n) 2 ways to measure the error in the estimate –absolute error ¯ –relative error ° –resulting number of replications may be random 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 12
13
Obtaining a desired precision (absolute error ¯ ) absolute error ¯ –estimator has an absolute error of at most ¯ with a probability of approximately 1 - ® approximate expression for total number of replications n a * ( ¯ ) required to obtain an absolute error of ¯ –assumes that estimate S 2 (n) will not change (appreciately) as n increases) –n a * ( ¯ ) will be determined iteratively 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 13
14
Obtaining a desired precision (absolute error ¯ ) example (bank) –Q: what’s the number of replications necessary in order to estimate the expected average delay with an absolute error of 0.25 minutes and a confidence level of 90%? 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 14 it i-1,0.95 t i-1,0.95 * sqrt(0.309/i) 101.8330.322 111.8120.304 141.7710.263 151.7610.253 161.7530.244 · 0.25
15
Obtaining a desired precision (relative error ° ) relative error ° –estimator as a relative error of at most ° /(1 - ° ) with a probability of approximately 1 - ®. approximate expression for total number of replications n a * ( ¯ ) required to obtain a relative error of ° –assumes that estimate S 2 (n) will not change (appreciately) as n increases) –n r* ( ° ) will be determined iteratively 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 15
16
Obtaining a desired precision (relative error ° ) example (bank) –Q: what’s the number of replications necessary in order to estimate the expected average delay with a relative error of 10% and a confidence level of 90%? 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 16 it i-1,0.95 t i-1,0.95 * sqrt(0.309/i) / mean 101.8330.1586 171.7460.116 181.740.112 261.7080.092 271.7060.090 · 0.0909
17
Estimating other Measures of Performance be careful! –comparing two systems by some sort of mean may result in misleading conclusions example: 2 bank policies –5 queues (one in front of every teller) –1 queue (that feeds all tellers) 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 17 Measure of performanceFive queuesOne queue Expected operating time (hours)8.14 Expected average delay (minutes)5.57 Expected average number in queue(s)5.52
18
Estimating other Measures of Performance Estimates of expected proportions of delays in interval 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 18 Interval (minutes)Five queuesOne queue [0,5)0.6260.597 [5,10)0.1820.188 [10,15)0.0760.107 [15,20)0.0470.095 [20,25)0.0310.013 [25,30)0.020 [30,35)0.0150 [35,40)0.0030 [40,45)00 still identical?
19
Choosing initial conditions careful! –measures of performance depend explicitly on the state of the system at time 0 –take care when choosing appropriate initial conditions example: estimate expected average delay at bank between noon and 1pm –bank will probably be quite congested at noon starting with no customers present -> estimates will be biased low 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 19
20
Choosing initial conditions careful! –measures of performance depend explicitly on the state of the system at time 0 –take care when choosing appropriate initial conditions 2 heuristic approaches –use warmup period –collect data to get an idea of state of system and choose it randomly 040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I 20
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.