Simulation Theory Review
Simulation Theory Review
Uniform
Selecting the Family of Distribution
Reference:
● Understanding and choosing the right probability distribution
https://onlinelibrary.wiley.com/doi/pdf/10.1002/9781119197096.app03
● Jerry Bank’s chapter 5: Statistical models in simulation
● Jerry Bank's chapter 9: page 346 3
Poisson
Exponential
Normal Exponential
Guideline of Probability Distributions
● Binomial: # of successes in n trials
● Negative binomial: # of trials for r successes
● Geometry: #of trials for 1st success Discret
● Poisson: # of independent events that occur in a fixed amount of
time or space
8
Common random variables
● Queuing system: Interarrival time, Service time
→ constant, Normal (>0), Exponential, Gamma, Weibull
Common random variables
Histogram Histogram
uniform, single hump number of values groupings
(multimodals), data points different
from main set (outliers)
Theoretical Empirical (large sample size)
mathematical formulation divide data into groupings,
calculate proportion, interpolate
ARENA: TRIA( ), NORM( ).. ARENA: CONT( ), DISC( )
Bounded/ unbounded? discrete/continuous?
eg.TRIA is prefered to NORM eg. assigning entity type
discrete/continuous?
ease of parameter
manipulation?
eg.EXPO is prefered to WEIB
11
4 Steps of Input modelling
1. Data Collection
2. Identifying Distribution (Family)
3. Parameter Estimation
4. Goodness-of-Fit Tests
Parameter Estimation (signature)
• To identify a specific instance of the distribution family
• Location parameters — they shift the density function
• Shape parameters — they change the shape of the
density function
• Scale parameters – change scale
16
Example of Raw data of Component life (days)
The histogram +
context → X follows
Poisson distribution
1. Data Collection
2. Identifying Distribution (Family)
3. Parameter Estimation
4. Goodness-of-Fit Tests
Goodness-of-fit Test
• Graphical approach:
– Q-Q plot: graphs the quantiles of the fitted distribution
vs. the sample quantiles.
– P-P plot: graphs the fitted CDF vs. the empirical CDF
• Statistical Test:
– Kolmogorov-Smirnov test
– Chi-square test
20
Quantile-Quantile Plot
A Median is a
_______% quantile
each other 22
Exercise
Uniform
Test uniform distribution using Q-Q plot
Comment?
Quantile-
Quantile
Plot
Quantile-Quantile Plot
Combined because
of min Ei
Need to combine Ei when Ei < 5 =>
đồng thời, combine Oi tương ứng
Sn(x)
Kolmogorov-Smirnov (only for continuous data;
small data set)
• Test statistics:
D = max| F(x) - Sn(x)|
39
Verification and validation
Hypothesis Testing
45
Validating I-O Transformation
[Cal. & Val.]
Type II Error
HW
- Is a small width of C.I. prefered to a large width of C.I.?
- What is the relationship between the width of C.I and the sample size n?
49
Validating I-O Transformation
[Cal. & Val.]
Accept, Reject, or More Replication?
– “Real” value falls outside the confidence interval, the best case |
3.37 – 4.3| = 0.93 < 1, but the worst case |1.65 – 4.3| = 2.65 > 1,
→ conclusion: additional replications are needed to reach a
decision
51
I-O Validation: Using Historical Input Data
[Cal. & Val.]
Pair T test
pair-T test
52
I-O Validation: Using Historical Input Data
[Cal. & Val.]
The Candy Factory
53
Estimation of absolute
performance (1 system)
Book: Jerry Bank’s chapter 11
Kelton’s chapter 7
# Simulation length
ARENA v16
“Terminating” or “Steady state” simulation ?
o Bank opens from 8:30 to 4:30 (terminating)
Performance: one day operation, flow of money, ATM
Simulation length:
o Manufacturing process runs continuously from Monday mornings until Saturday mornings (terminating)
Performance: one shift, 13 shifts
Simulation length:
o Large web based order-processing company runs continuously 24h per day (steady state)
Types of
performance
measures and their
estimation
Example:
WIP
Throughput
Time in system
Cycle time
Takt time
Types of
performance
measures and their
estimation
Example:
WIP
Throughput
Time in system
Cycle time
Takt time
Types of performance measures and their
estimation
• Discrete-time statistic (Tally) => thay đổi theo từng entity (lấy average như thông
thường)
Estimation of a performance parameter θ (ordinary mean)
Simulation output data are of the form Y1 Y2Y3.. Yn
E.g.: time in system, waiting time
• Continuous-time statistic (Time persistent) => thay đổi theo thời gian (lấy average
theo thời gian)
Estimation of a performance parameter φ (time weighted mean)
Simulation output data are of the form Y(t), 0<t<TE
E.g.: WIP, throughput, number in queue
Absolute measures of performance and their
estimation
• Point estimation
(Discrete/Tally) (Continuous/Time persistent)
Types of performance measures and their
estimation
•
HW
Avg
CI =
(--> there is (1-α)% chance that E[y] is within these two limits.)
● “Half Width”: half of the range between upper limit and lower limit is used
as a measure of accuracy of the measurement.
• “Terminating” and “Steady state” simulation
• “Tally” and “Time persistent” Statistics
• “Within” and “across replication”
• Confidence Interval (C.I) and C.I. with specified precision
• “Warm-up” time
Output analysis for terminating simulation
With across-replication data, we use the same equations for both tally
and time-persistent statistics
• “Terminating” and “Steady state” simulation
• “Tally” and “Time persistent” Statistics
• “Within” and “across replication”
• Confidence Interval (C.I) and C.I. with specified precision
• “Warm-up” time
Dạng bài tính number of replications
→ →
Estimation of Relative
Performance (>= 2 systems)
Book: - Jerry Bank’s Chapter 12
- Kelton’s Chapter 6,12