Chapter 9 - Review Input Analysis
Chapter 9 - Review Input Analysis
Chapter 1 Formulation
What is Chapter 6
Simulation? • System modeling: Conceptual
Define a & Logical modeling
• Terminology model • ARENA’s logics
• Classification Chapter 7 Chapter 7
Chapter 3
Contruct and
Input Analysis
Spreadsheet verify a model
Simulation Chapter 8 Chapter 9
Chapter 5
Modeling Steady-state
Chapter 2 & Descrete Event Operations Analysis
4:
Simulations
• Review
Statistics
Run pilots and
• Review • Simple Queueing validate the
Distributions Theory model
• Arrival Rates
• Service Rates Chapter 10
• Stability Process
• LITTLE’s law Make runs
Analysis
• Modeling of a system
Chapter 11
• Performance
Measures Analyze output data
1
4/19/2023
Data Collection
2
4/19/2023
Raw Data
10 8 5 1 6 0 4 6 2 3
• Histogram with Discrete Data 2
5
3
1
5
8
9
9
2
1
0
9
2
3
4
7
2
4
3
0
2 6 3 1 4 5 0 3 3 2
2 10 0 3 6 0 6 5 7 0
Arrivals per 8 2 3 7 0 2 2 1 0 4
0 2 4 1 2 5 1 5 3 2
period Frequency 8 6 3 4 6 11 3 2 8 0
0 12 2 4 2 4 1 3 1 2 1 2
3 10 0 7 3 5 3 7 3 4
1 10
2 19 Histogram of Arrivals per Period
3 17 20
4 10 18
5 8
16
6 7
14
7 5
12
8 5
10
9 3 Frequency
8
10 3
6
11 1
4
0 6
0 1 2 3 4 5 6 7 8 9 10 11
3
4/19/2023
Raw Data
79.919 3.081 0.062 1.961 5.845
• Histogram with Continuous Data 3.027
6.769
6.505
59.899
0.021
1.192
0.013
34.760
0.123
5.009
Component Life 18.387 0.141 43.565 24.420 0.433
(days) Frequency 144.695 2.663 17.967 0.091 9.003
[0‐3) 23 0.941 0.878 3.148 2.157 7.579
[3‐6) 10 0.624 5.380 3.371 7.078 23.960
[6,9) 5 0.590 1.928 0.300 0.002 0.543
7.004 31.764 1.005 1.147 0.219
[9‐12) 1
3.217 14.382 1.008 2.336 4.562
[12‐15) 1
[15‐18) 2 Histogram of Component Life
[18‐21) 0
25
[21‐24) 1
[24‐27) 1
[27‐30) 0 20
[30‐33) 1
[33‐36) 1 15
... ...
[42‐45) 1 Frequency
... ... 10
[57‐60) 1
... ... 5
[78‐81) 1
... ...
[144‐147) 1 0 7
3 6 9 12 15 18 21 24 27 30 33 36
• There are ample data, so the histogram may have a cell for each
possible value in the data range
4
4/19/2023
5
4/19/2023
12
6
4/19/2023
14
7
4/19/2023
15
8
4/19/2023
17
9
4/19/2023
10
4/19/2023
22
11
4/19/2023
Applications of
Continuous Empirical
Distribution
•Used to incorporate
empirical data as an
alternative to
theoretical distribution,
when there are
multimodes,
significant outliers, etc.
24
12
4/19/2023
Applications of Discrete
Empirical Distribution
25
26
13
4/19/2023
• Sample mean and the sample variance are the point estimators for the
population mean and population variance
Let Xi; i=1,2,...,n iid random variables (raw data are known) , then the sample
mean and sample variance s2 are calculated as
0 12 6 7
1 10 7 5
2 19 8 5
3 17 9 3
4 10 10 3
5 8 11 1 28
14
4/19/2023
30
15
4/19/2023
• Chi square test is valid for large sample sizes and for both discrete and
continuous assumptions when parameters are estimated with maximum
likelihood.
• Hypothesis test:
Ho: The random variable X conforms to the theoretical distribution with
the estimated parameters
Ha: The random variable does NOT conform to the theoretical
distribution with the estimated parameters
We need a test statistic to either reject or fail to reject Ho. This test
statistic should measure the discrepency between the theoretical and the
emprical distribution.
If this test statistic is high, then Ho is rejected,
Otherwise we fail to reject Ho! (Hence we accept Ho)
32
16
4/19/2023
Test statistic:
Arrange n observations into a set of k class intervals or cells. The
test statistic is given by
33
34
17
4/19/2023
• Evaluation
Let α =P(rejecting Ho when it is true); the significance level is 5%.
35
(k‐s‐1) α
𝜒 ,
36
18
4/19/2023
So, Ho is rejected!
38
19
4/19/2023
39
Distribution Summary
Distribution: Lognormal
Expression: 2 + LOGN(145, 67.9)
Square Error:0.000271 Reject Lognormal distribution at
5% significance level!
Chi Square Test
Number of intervals =4
Degrees of freedom =1
Test Statistic = 207
Corresponding p-value < 0.005
Data Summary
Number of Data Points = 21547
Min Data Value =2
Max Data Value = 6.01e+003
Sample Mean = 146
Sample Std Dev = 79.5
Histogram Summary
Histogram Range = 2 to 6.01e+003
Number of Intervals = 40
40
20
4/19/2023
Data Summary
Number of Data Points = 12418
Min Data Value =1
Max Data Value = 1.47e+003
Sample Mean = 108
Sample Std Dev = 135
Histogram Summary
Histogram Range = 0.999 to 1.47e+003
Number of Intervals = 40
41
42
21
4/19/2023
• Hypothesis test:
Ho: Data follow the selected pdf
Ha: Data do NOT follow the selected pdf
• Test Statistic:
The largest deviation, D between F(x) and SN(x).
43
𝐹 𝑋𝑖 𝑃 𝑋 𝑋𝑖
44
22
4/19/2023
𝑖
𝐷 max 𝑆𝑁 𝑋 𝑖 𝐹 𝑋 𝑖 max 𝐹 𝑋 𝑖
0 𝑖 𝑁 0 𝑖 𝑁 𝑁
𝑖 1
𝐷 max 𝐹 𝑋 𝑖 𝑆𝑁 𝑋 𝑖 1 max 𝐹 𝑋 𝑖
0 𝑖 𝑁 0 𝑖 𝑁 𝑁
• If F is continuous
𝐷 max 𝐹 𝑋 𝑖 𝑆𝑁 𝑋 𝑖
0 𝑖 𝑁
45
46
23
4/19/2023
i 1 2 3 4 5
Since D=0.26 <𝐷0.05,5 = 0.565
𝑋 𝑖 0.05 0.14 0.44 0.81 0.93 Ho is not rejected!
𝐹 𝑋 𝑖 𝑋 𝑖 0.05 0.14 0.44 0.81 0.93 Data are uniform between (0,1)
𝑆𝑁 𝑋 𝑖 𝑖/𝑁 0.20 0.40 0.60 0.80 1.00
𝑖/𝑁 𝐹 𝑋 𝑖 0.15 0.26 0.16 ‐ 0.07
0.05 ‐ 0.04 0.21 0.13 47
𝐹 𝑋 𝑖 𝑖 1 /𝑁
24