0% found this document useful (0 votes)
146 views1 page

Random Variate Assignment

The document contains 5 problems about developing random number generators and generating random values from different probability distributions: a uniform distribution, a beta distribution, a normal distribution, a discrete distribution, and an empirical distribution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
146 views1 page

Random Variate Assignment

The document contains 5 problems about developing random number generators and generating random values from different probability distributions: a uniform distribution, a beta distribution, a normal distribution, a discrete distribution, and an empirical distribution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

𝑥4

1. Given the cdf 𝐹(𝑥) = 16 on 0 ≤ 𝑥 ≤ 2, develop a generator for this distribution.

𝑥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

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

𝑥(𝑥 + 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.

5. The details of time taken by a mechanic to repair a breakdown are

Develop a lookup table and generate five repair times using random numbers. Note that
the set of data represents a continuous empirical distribution.

You might also like