Anda di halaman 1dari 3

Ghalib Muhammad Jihado Akbar

545160054

1. What is the difference between a stochastic model and a deterministic model in


terms of the input variables and the way results are interprested?
Jawab:
Stokastik Deterministik
1. Satu atau lebih input variables 1. Tidak ada komponen input yang
bersifat acak. acak.
2. Outputnya bersifat acak. 2. Tidak ada yang bersifat random.
3. Hanya memberikan satu poin 3. Semua future states ditentukan
data mengenai bagaimana sifat oleh input data dan initial state
sistem telah ditentukan sebelumnya

2. Give a statistical description of the numbers produced by a random number


generator!
Jawab:
Dalam statistik angka yang dihasilkan random number generator, penentuannya
menggunakan metode-metode sebagai berikut:
a. Linear Congruential Generator (LCG)
Metode ini digunakan untuk membangkitkan bilangan acak dengan
distribusi uniform. Untuk setiap bilangan acak yang dihasilkan terjadi
pengulangan pada periode tertentu atau setelah sekian kali
pembangkitan.
b. Multiplicative Random Number Generator
c. Mixed Congruential Random Number Generator
Rumus Pseudo Number generator ini adalah dengan syarat utama n harus
sejumlah bilangan integer (bulat) dan lebih besar dari nol, runus ini
dikenal juga dengan nama ‘Linier Congruential RNG’. Namun apabila
nilai C = 0 maka akan diperoleh rumus yang dikenal ‘Multiplicative
Congruen RNG’. Rumus multiplicative ini cukup baik untuk masa-masa
yang akan datang karena sedikit sekali kapasitas memori yang
dibutuhkan.
Ghalib Muhammad Jihado Akbar
545160054

3. What are the two statistical properties that random numbers must satisfy?
Jawab:
Random numbers haruslah :
 Bersifat independen,
 Terdistribusi antara 0 dan 1

4. Given these two LCGs:


Zi = (9Zi-1 + 3) mod(32)
Zi = (12Zi-1 + 5) mod(32)
a. Which LCG will achieve its maximum cycle length? Answer the question
without computing any Zi values.
b. Compute Zi through Z5 from a seed of 29 (Z0 = 29) for the second LCG.
Jawab:
Zi = (12Zi-1 + 5) mod(32) Zo = 29
Z1 = (12 x 29 + 5) mod(32) = 1 Z2 = (12 x 1 + 5) mod(32) = 17
Z3 = (12 x 17 + 5) mod (32) = 17 Z4 = (12 x 17 + 5) mod (32) = 17
Z5 = (12 x 17 + 5) mod (32) = 17

5. What is a random variate, and how are random variates generated?


Jawab:
Random variate adalah nilai suatu random variable yang mempunyai distribusi
tertentu untuk mengambil random variate dari beberapa distribusi yang berbeda-
beda fungsinya sehingga harus terlebih dahulu melalui distribusi CDF dari suatu
random variable. Untuk menghasilkan random variate dari distribusi
probabilitas selain distribusi the uniform (0, 1):
 Transforming the observation generated by the random number generator
to the desired distribution.
 Transformed value = variate from the specified distribution.

6. Apply the inverse transformation method to generate three variates from the
following distributions using U1 = 0.10, U2 = 0.53, and U3 = 0.15.
Ghalib Muhammad Jihado Akbar
545160054

a. Probability density function:


1
f (x) = {𝛽− 𝛼 for α ≤ x ≤ β
0
elsewhere
where β = 7 and α = 4.
b. Probability mass function:
𝑥
p (x) = P(X = x) = {15 for x = 1, 2, 3, 4, 5
0
elsewhere

7. How would a random number generator be used to simulate a 12 percent chance


of rejecting a part because it is defective?

8. Reproduce the spreadsheet simulation of the ATM system presented in Section


3.5. Set the random numbers seed Z10 = 29 and Z20 = 92 to compute the average
time customers spend in the queue and in the system.
a. Verify that the average time customers spend in the queue and in the system
match the values given for the second replication in Table 3.3
b. Verify that the resulting random number Stream 1 and random number
Stream 2 are completely different than the corresponding streams in Tabel
3.2. Is this a requirement for a new replication of the simulation?

Anda mungkin juga menyukai