Question: Use a linear congruential generator with parameters a=21,c=31,m=100 a =21, c =31, m =100, and Z 0=35 to generate a series of 60 numbers uniformly

Use a linear congruential generator with parameters a=21,c=31,m=100a=21,c=31,m=100, and Z0=35 to generate a series of 60 numbers uniformly distributed in the interval [0,1].

  • a) Compute and compare the mean and variance of these numbers to those of the expected theoretical Uniform(0,1) distribution (continuous uniform). Explain any differences.
  • b) Use the uniform random numbers from part a) to generate 60 observations of the random daily demand a store observes for a particular product. Historical data show that the daily demand for this product is 0 9% of the time, 1 28% of the time, 2 30% of the time, 3 20% of the time, 4 8% of time, and 5 5% of the time.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!