Docsity

MCM & Box-Muller Methods: Generating U(0,1), expo(5), and NORM (10,2) Random Numbers, Assignments of Systems Engineering

Toggle sidebar
bg1
INDE 6370
HOMEWORK
Due 21 FEB 08
Generate 100 U(0,1) random numbers using the MCM method. Use a multiplier of
16,087, a modulus of 2^31-1, and an initial seed of 7342. Number these random numbers
1 to 100.
Use numbers 1 to 40 of the U(0,1)s to generate 40 expo(5) random numbers using the
inverse transformation method. Calculate the actual mean of your distribution. How
close does it match the original mean of 5?
Use the remaining 60 U(0,1)s to generate as many NORM (10,2)s as possible using the
Box-Mueller method. Do this by using numbers 41 to 70 as U1 and 71 to 100 as U2.
How many NORM(10,2)s did you end up with? Of the actual NORM (10,2) that you
generated, calculate the mean and standard deviation. How close does it match the
original mean of 10 and std of 2?

Partial preview of the text

Download MCM & Box-Muller Methods: Generating U(0,1), expo(5), and NORM (10,2) Random Numbers and more Assignments Systems Engineering in PDF only on Docsity!

INDE 6370

HOMEWORK

Due 21 FEB 08 Generate 100 U(0,1) random numbers using the MCM method. Use a multiplier of 16,087, a modulus of 2^31-1, and an initial seed of 7342. Number these random numbers 1 to 100. Use numbers 1 to 40 of the U(0,1)s to generate 40 expo(5) random numbers using the inverse transformation method. Calculate the actual mean of your distribution. How close does it match the original mean of 5? Use the remaining 60 U(0,1)s to generate as many NORM (10,2)s as possible using the Box-Mueller method. Do this by using numbers 41 to 70 as U1 and 71 to 100 as U2. How many NORM(10,2)s did you end up with? Of the actual NORM (10,2) that you generated, calculate the mean and standard deviation. How close does it match the original mean of 10 and std of 2?