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 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
Get step-by-step solutions from verified subject matter experts
