Purchase Solution

using MATLAB to generate random numbers

Not what you're looking for?

Ask Custom Question

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?

Purchase this Solution

Solution Summary

The solution is comprised of the codes in MATLAB to generate random numbers. In turn, the mean, standard deviation, and correlation are calculated.

Purchase this Solution


Free BrainMass Quizzes
Graphs and Functions

This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.

Geometry - Real Life Application Problems

Understanding of how geometry applies to in real-world contexts

Multiplying Complex Numbers

This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.

Solving quadratic inequalities

This quiz test you on how well you are familiar with solving quadratic inequalities.

Know Your Linear Equations

Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.