Professional Documents
Culture Documents
SYSC4005 5001 CheatSheet For FinalExam W2021
SYSC4005 5001 CheatSheet For FinalExam W2021
NOTE: For the probability distributions, the PDF (or the PMF), CDF, mean, and the variance
equations are listed. You should know how and when to use these equations.
𝑝, 𝑥𝑗 = 1, where 𝑗 = 1,2,3, . . , 𝑛
➢ PMF = 𝑝(𝑥𝑗 ) = {1 − 𝑝 = 𝑞, 𝑥𝑗 = 0, where 𝑗 = 1,2,3, . . , 𝑛
0, otherwise
0, 𝑗>0
➢ CDF = 𝐹(𝑥𝑗 ) = {𝑞, 0 ≤ 𝑗 < 1
1 𝑗≥1
➢ The mean 𝐸 (𝑋 ) = 𝑝
➢ The variance 𝑉 (𝑋 ) = 𝑝. 𝑞
Page|1
Cheat Sheet: Statistical Models in Simulation
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
𝑥 − 1 𝑘 𝑥−𝑘
( ) 𝑝 𝑞 , 𝑥 = 𝑘, 𝑘 + 1, 𝑘 + 2, …
➢ PMF = 𝑝(𝑥) = { 𝑘 − 1
0 otherwise
Where k is the number of successes.
➢ CDF = 𝐹 (𝑥) = ∑𝑥𝑡=0 𝑝(𝑡)
𝑘
➢ The mean 𝐸 (𝑋 ) =
𝑝
𝑘𝑞
➢ The variance 𝑉 (𝑋 ) =
𝑝2
𝑒 −𝛼 𝛼𝑥
➢ PMF = 𝑝(𝑥) = , 𝑥 = 0,1,2, …
𝑥!
𝑒 −𝛼 𝛼𝑡
➢ CDF = 𝐹 (𝑥) = ∑𝑥𝑡=0
𝑡!
➢ The mean 𝐸 (𝑋 ) = The variance 𝑉 (𝑋 ) = 𝛼
Page|2
Cheat Sheet: Statistical Models in Simulation
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
−1 𝑥−𝜇 2
1 ( )
➢ PDF = 𝑝(𝑥) = 𝑒 2 𝜎 , 𝑤ℎ𝑒𝑟𝑒 − ∞ < 𝑥 < ∞, −∞ < 𝜇 <
𝜎√2𝜋
∞, 𝑎𝑛𝑑 𝜎 2 > 0
−1 𝑡−𝜇 2
𝑥 1 ( )
➢ CDF = 𝐹 (𝑥) = ∫−∞ 𝜎 2𝜋 𝑒 2 𝜎 . 𝑑𝑡
√
➢ The mean 𝐸 (𝑋 ) = 𝜇
➢ The variance 𝑉 (𝑋 ) = 𝜎 2
𝑥−𝜇
𝐹 (𝑥 ) = Φ ( ) and use table A.3
𝜎
𝑥−𝜇
Pay attention to where is : on the positive or the negative side: Φ(−𝑥) = 1 − Φ(𝑥)
𝜎
Page|3
Cheat Sheet: Statistical Models in Simulation
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
𝑥−𝑣 𝛽
𝛽 𝑥−𝑣 𝛽−1 −( )
➢ PDF = 𝑝(𝑥) = {𝛼 ( 𝛼
) 𝑒 𝛼 , 𝑥≥𝑣
0 otherwise
Where −∞ < 𝑣 < ∞, 𝛽 > 0, and 𝛼 > 0
0, 𝑥<𝑣
➢ CDF = 𝐹 (𝑥) = { 𝑥−𝑣 𝛽
)
1 − 𝑒 −( 𝛼 , 𝑥 ≥ 𝑣
1
➢ The mean 𝐸 (𝑋 ) = 𝑣 + 𝛼 ( ) !
𝛽
2 1 2
➢ The variance 𝑉 (𝑋 ) = 𝛼 2 [( ) ! − [( ) !] ]
𝛽 𝑏
−1 ln(𝑥−𝜇) 2
1 ( )
➢ PDF = 𝑝(𝑥) = 𝑒 2 𝜎 , where 𝑥 ≥ ∞ and 𝜎 2 > 0
𝜎𝑥√2𝜋
(ln 𝑥)−𝜇
➢ CDF = 𝐹 (𝑥) = Φ ( ), and use table A.3
𝜎
𝜎2
(𝜇+ )
➢ The mean 𝐸 (𝑋 ) = 𝑒 2
𝜎2
(2𝜇+ ) 2
➢ The variance 𝑉 (𝑋 ) = 𝑒 2 (𝑒 𝜎 − 1)
Page|4
Cheat Sheet: Statistical Models in Simulation
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
𝑥 𝛽1 −1 (1−𝑥)𝛽2 −1
➢ PDF = 𝑝(𝑥) = , for 0 < 𝑥 < 1
𝐵(𝛽1 ,𝛽2 )
Γ(𝛽1 )Γ(𝛽2 )
Where 𝐵 (𝛽1 , 𝛽2 ) =
Γ(𝛽1 +𝛽2 )
➢ CDF is not defined in a closed form.
➢ For a specific range (a,b):-
(𝑏−𝑎)𝛽1
❖ The mean 𝐸 (𝑋 ) = 𝑎 +
𝛽1 +𝛽2
𝛽1 𝛽2 (𝑏−𝑎)2
❖ The variance 𝑉 (𝑋 ) = (𝛽 2
1 +𝛽2 ) (𝛽1 +𝛽2 +1)
Page|5
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
NOTE: For the probability distributions, the PDF (or the PMF), CDF, mean, and the variance
equations are listed. You should know how and when to use these equations.
1
𝑌̅ = ∑𝑅𝑖=1 𝑌̅𝑖 for the overall sample mean (pointer estimator)
𝑅
𝑆
𝑌̅ ± (𝑡𝑎,𝑛−1 × )
2 √𝑛
1
𝑌̅ ± (𝑡𝛼,𝑛−1 × 𝑆 × √1 + )
2 𝑛
Page|1
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
➢ Within Replications:
❖ The average
𝑛𝑖
1 𝑇𝐸𝑖 1
𝑌̅𝑖∙ = ∫ 𝑌(𝑡 ). 𝑑𝑡 (Continuous-time), 𝑌̅𝑖∙ = ∑ 𝑌𝑖𝑗 (Discrete-time)
𝑇𝐸𝑖 0 𝑛𝑖
𝑗=1
➢ Across Replications:
❖ The average
𝑅
1
𝑌̅∙∙ = 𝑌̅ = ∑ 𝑌̅𝑖∙
𝑅
𝑖=1
Page|2
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
➢ CI for Probabilities
𝑝̂ (1 − 𝑝̂ )
𝑝̂ ± (𝑧𝛼 × √ )
2 𝑅−1
➢ CI for Quantiles
The estimate of θ is the (R x p)th value of the ordered data. To find the CI, use the
following equations then the upper and lower limits (θu and θl) will use the same
approach of the estimator θ
𝒑(𝟏 − 𝒑)
𝒑𝒍 = 𝒑 − (𝒛𝜶 × √ )
𝟐 𝑹−𝟏
𝒑(𝟏 − 𝒑)
𝒑𝒖 = 𝒑 + (𝒛𝜶 × √ )
𝟐 𝑹−𝟏
Page|3
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
1 𝑇𝐸
𝜑 = lim ( ∫ 𝑌(𝑡 ). 𝑑𝑡 ) , for 𝑐𝑜𝑛𝑡𝑖𝑛𝑢𝑜𝑢𝑠-time observations(with probability 1)
𝑇𝐸 →∞ 𝑇𝐸 0
➢ Error Estimation
• ̅ is:
The variance of 𝒀
𝑛 𝑛 𝑛−1
1 𝜎2 𝑘
̅
𝑉 (𝑌) = 2 ∑ ∑ 𝑐𝑜𝑣(𝑌𝑖 , 𝑌𝑗 ) = [1 + 2 ∑ ((1 − ) 𝜌𝑘 )]
𝑛 𝑛 𝑛
𝑖=1 𝑗=1 𝑘=1
Page|4
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
𝑛
𝑆2 −1
( ̅ )
𝐸 ( ) = 𝐵. 𝑉 𝑌 , 𝑤ℎ𝑒𝑟𝑒 𝐵 = 𝑐
𝑛 𝑛−1
To estimate standard error of 𝑌̅∙∙ , the sample variance and standard error:
𝑅
1 𝑆
𝑆2 = ∑(𝑌̅𝑟∙2 − 𝑅𝑌̅∙∙ ) and 𝑆𝐸 (𝑌̅∙∙ ) =
𝑅−1 √𝑅
𝑟=1
𝑉 (𝑌∙𝑖 ) 𝜎𝑖2
𝑉 (𝑌̅∙𝑖 ) = = , 𝑖 = 1,2, …
𝑅𝑖 𝑅𝑖
𝜎12 𝜎22
𝑉 (𝑌̅∙1 − 𝑌̅∙2 ) = 𝑉 (𝑌̅∙1 ) + 𝑉 (𝑌̅∙2 ) = +
𝑅1 𝑅2
Page|5
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
𝑌̅∙1 − 𝑌̅∙2
➢ Standard error:
1 1
𝑆𝐸 (𝑌̅∙1 − 𝑌̅∙2 ) = 𝑆𝑝 √ +
𝑅1 𝑅2
➢ CI is given by:
➢ Standard error:
𝑆12 𝑆22
𝑆𝐸 (𝑌̅∙1 − 𝑌̅∙2 ) = √ +
𝑅1 𝑅2
➢ CI is given by:
Page|6
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
𝐷𝑟 = 𝑌̅𝑟1 − 𝑌̅𝑟2
➢ Sample Average:
𝑅
1
̅ = ∑ 𝐷𝑟
𝐷
𝑅
𝑟=1
➢ Standard Error:
𝑆𝐷
̅ ) = 𝑆𝐸 (𝑌̅∙1 − 𝑌̅∙2 ) =
𝑆𝐸 (𝐷
√𝑅
➢ General Rules
∞
1 1 𝑇
̂𝐿 = ∑ 𝑖. 𝑇𝑖 = ∫ 𝐿(𝑡 ). 𝑑𝑡
𝑇 𝑇 0
𝑖=0
Page|7
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
∞
1 1 𝑇
̂𝐿𝑄 = ∑ 𝑖. 𝑇𝑖𝑄 = ∫ 𝐿𝑄 (𝑡 ). 𝑑𝑡
𝑇 𝑇 0
𝑖=0
𝑁
1
̂ = ∑ 𝑊𝑖
𝑤
𝑁
𝑖=0
𝑁
1
𝑤
̂𝑄 = ∑ 𝑊𝑖 𝑄
𝑁
𝑖=0
𝑳̂ = 𝝀̂𝒘
̂
➢ Server Utilization
𝜆 𝐿𝑠 𝜆
𝐿̂𝑠 = 𝜌 𝑎𝑛𝑑 𝜌 = 𝜆𝐸 (𝑆) = 𝑓𝑜𝑟 𝑠𝑖𝑛𝑔𝑙𝑒 𝑠𝑒𝑟𝑣𝑒𝑟𝑠, 𝑜𝑟 𝜌 = = 𝑓𝑜𝑟 𝑚𝑢𝑙𝑡𝑖𝑠𝑒𝑟𝑣𝑒𝑟
𝜇 𝑐 𝑐𝜇
➢ M/G/1 Queues
Page|8
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
➢ M/M/1 Queues
➢ M/M/c/∞/∞ queue
Page|9
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
P a g e | 10
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
P a g e | 11
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
Table A.6: Percentage Points of The Chi-Square Distribution with v Degrees of Freedom
P a g e | 12
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
P a g e | 13
Cheat Sheet: Quiz #2
SYSC4005/5001 – Discrete Simulation/Modeling
Lecturer: Ahmed Raoof Winter 2021
P a g e | 14
Appendix
Table A.10 Operating Characteristic Curves for The Two-Sided t Test for Different Values of
Sample Size n
1.0
n2
0.8
Probability of accepting H0
0.6 3
4
0.4
5
7
30 40
15 20
10
50 75
100
0.2
0 1 2 3
d
(a) a 0.05
1.00
0.90 n3
0.80
Probability of accepting H0
0.70 n
4
n
0.60
5
0.50
n
n
n
0.40
7
n4 n5
10
20
n
n 100
n 75
0.30
0
15
n
0.20
30
0
0.10
0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2
d
(b) a 0.01
Source: C. L. Ferris, F. E. Grubbs, and C. L. Weaver, “Operating Characteristics for the Common
Statistical Tests of Significance,” Annals of Mathematical Statistics, June 1946. Reproduced with
permission of The Institute of Mathematical Statistics.
549
Appendix
Table A.11 Operating Characteristic Curves for the One-Sided t Test for Different Values of
Sample Size n
1.00
0.90
Probability of accepting H0
0.80
0.70
0.60
0.50
n 100
n
n 475
0.40
n
n 4
0.30
n
n 20
n 5
0 n 50
4
n
n 30
n
5
0.20
1
10
7
0.10
0
0.8 0.4 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2
d
(a) a 0.05
1.00
0.90
Probability of accepting H0
0.80
0.70 n
3
0.60
0.50
n 75
n 100
n
4
n
0.40
n
n
n3 n
n 20
n
n 50
5
10
0.30
7
0
15
0.20
40
0.10
0
0.8 0.4 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2
d
(b) a 0.01
550