Professional Documents
Culture Documents
𝑥2
2. Given the pdf 𝑓(𝑥) = on 0 ≤ 𝑥 ≤ 3, develop a generator for this distribution.
9
3. Service time of a bank teller is found to follow normal with p. = 5 minutes and a= 1 minute.
Generate five service times.
R1 R2 R3 R4 R5 R6 R7 R8 R9 R10
0.3436 0.1213 0.7642 0.8609 0.0006 0.7303 0.5024 0.2372 0.5779 0.1600
𝑥(𝑥 + 1)(2𝑥 + 1)
𝐹(𝑥) = , 𝑥 = 1,2, … , 𝑛
𝑛(𝑛 + 1)(2𝑛 + 1)
When n=4, generate three values of X, using 𝑅1 = 0.83, 𝑅2 = 0.24, 𝑎𝑛𝑑 𝑅3 = 0.57.
Develop a lookup table and generate five repair times using random numbers. Note that
the set of data represents a continuous empirical distribution.