Tugas Bab 8 Nomor 9 11 29 32

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Aditya Dwi Gumara

5002201070

TUGAS BAB 8 NOMOR 9 11 29 32

29. Let time t = 0 correspond to 6 A.M., and suppose that the arrival rate (in arrivals per
hour) of customers to a breakfast restaurant that is open 6–9 A.M. is :

30, 0 ≤ 𝑡 ≤ 1
𝜆(𝑡) = {45, 1 ≤ 𝑡 ≤ 2
20, 2 ≤ 𝑡 ≤ 4
Derive a thinning algorithm for generating arrivals from this NSPP and generate the
first 100 arrival times.

0 ≤ 𝑡 ≤ 1𝜆 (𝑡) = ∫ 30𝑑𝐴 = 30𝑡


0

1 𝑡

1 ≤ 𝑡 ≤ 2𝜆 (𝑡) = ∫ 30𝑑𝐴 + ∫ 45𝑑𝐴 = 45𝑡 − 15


0 1
1 2 𝑡

2 ≤ 𝑡 ≤ 4𝜆 (𝑡) = ∫ 30𝑑𝐴 + ∫ 45𝑑𝐴 + ∫ 20 = 20𝑡 + 35


0 1 2

9. The cdf of a discrete random variable X is given by

When n = 4, generate three values of X, using R1 = 0,83 R2 = 0,24 and R3 = 0,57

𝑥(𝑥+1)(2𝑥+1)
𝐹 (𝑥 ) = 𝑛(𝑛+1)(2𝑛+1)

Katakan, F(x) = R
𝑥(𝑥 + 1)(2𝑥 + 1)
=𝑅
𝑛(𝑛 + 1)(2𝑛 + 1)
𝑥(𝑥 + 1)(2𝑥 + 1) = 𝑅 (𝑛(𝑛 + 1)(2𝑛 + 1))
2𝑥3 + 3𝑥 2 + 𝑥 = 𝑅 (𝑛(𝑛 + 1)(2𝑛 + 1))
𝑥(𝑥 − 1)(2𝑥 − 1) 𝑥(𝑥 − 1)(2𝑥 − 1)
𝐹(𝑥 − 1) = <𝑅≤ = 𝐹(𝑥)
𝑛(𝑛 + 1)(2𝑛 + 1) 𝑛(𝑛 + 1)(2𝑛 + 1)
𝑥(𝑥 − 1)(2𝑥 − 1) 𝑥(𝑥 − 1)(2𝑥 − 1)
𝐹(𝑥 − 1) <𝑅≤ = 𝐹(𝑥)
= 180 180
Aditya Dwi Gumara
5002201070

𝐹(1) = 0,033 𝐹(2) = 0,167 𝐹(3) = 0,233 𝐹(4) = 1


𝑅(1) = 0,83 𝑥 = 4
𝑅(2) = 0,24 𝑥 = 1
𝑅(3) = 0,57 𝑥 = 4

32. Suppose that the arrival rate of hits to a web site is hits
per hour. Derive a thinning algorithm for generating arrivals from this NSPP.
Katakan t bergerak +1 dengan awalan t = 0
Maka :
1. t = 0, i = 0
2𝜋𝑡
2. Hitung 𝜆(𝑡) = 1000 + 50 sin , maka didapat 𝜆(𝑡) = 1000 +
24
50 sin 0 = 1000, ini merupakan nilai awal,
3. t = 0+1 = 1, i = 0+1 = 1, lalu kembali ke langkah ke 2

11. Data have been collected on service times at a drive-in bank window at the Shady
Lane National Bank. This data are summarized into intervals as follows:

Interval (Seconds) Frequency


15-30 10
30-45 20
45-60 25
60-90 35
90-120 30
120-180 20
180-300 10
Set up a table like Table 3 for generating service times by the table-lookup method, and
generate five values of service time, using four-digit random numbers from Table A.1.

Total F = 150, maka 150 = 37,5 dengan min = 15


4

[37,5 −
𝑄1 = 45 + 30] . 15 = 52,5
15
[75 −
55]
𝑄2 = 60 + . 30 = 77,1428
35
𝑄3 = 90 + [112,5 −
90] . 30 = 112,5
30

You might also like