This question has 3 parts:
a) Write a computer program using MATLAB to generate random numbers. Use your program to generate, say, 100,000 random numbers. How long did the computer take to generate the random numbers? Roughly how long does it take for the computer to generate a single random number?
b) Using a sample of the random numbers generated in part a, construct a plot of the correlation between successive random numbers (X_i on the x-axis and X_i+1 on the y-axis). Does your random number generator appear to produce random numbers?
c) Compute the mean and standard deviation of the random numbers generated in part a. How do they compare with the mean and standard deviation of a uniformly distributed variable on the range zero to one?© BrainMass Inc. brainmass.com March 4, 2021, 7:31 pm ad1c9bdddf
The solution is comprised of the codes in MATLAB to generate random numbers. In turn, the mean, standard deviation, and correlation are calculated.