Question: 5. (Stochastic) (4 marks) (a) Write matlab code which generates a uniform random variable on [2,3]. Generate 100 samples and compute a histogram of those

 5. (Stochastic) (4 marks) (a) Write matlab code which generates a

5. (Stochastic) (4 marks) (a) Write matlab code which generates a uniform random variable on [2,3]. Generate 100 samples and compute a histogram of those samples. (b) Write matlab code which generates a normal random variable with =3 and 2=6. Generate 100 samples and compute a histogram of those samples. (c) Write matlab code which generates an exponential random variable with =3. (See coursebook p95). Generate 100 samples and compute a histogram of those samples. (d) Write a matlab function which simulates rolling a 4-sided dice. Generate 100 samples and compute a histogram of those samples. 5. (Stochastic) (4 marks) (a) Write matlab code which generates a uniform random variable on [2,3]. Generate 100 samples and compute a histogram of those samples. (b) Write matlab code which generates a normal random variable with =3 and 2=6. Generate 100 samples and compute a histogram of those samples. (c) Write matlab code which generates an exponential random variable with =3. (See coursebook p95). Generate 100 samples and compute a histogram of those samples. (d) Write a matlab function which simulates rolling a 4-sided dice. Generate 100 samples and compute a histogram of those samples

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 Accounting Questions!