
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

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?