Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5. (a) (2 marks) Write a Matlab script that computes a vector of 10000 normal ra

ID: 3147326 • Letter: 5

Question

5. (a) (2 marks) Write a Matlab script that computes a vector of 10000 normal random vari- ables, each with mean 5 and standard deviation 2. (b) (4 marks) Write a Matlab script for estimating the probability that a normally dis- tributed random variables with mean 5 and standard deviation 2 is positive. (C) (4 marks) Write a Matlab script for estimating the expected value of g(X) = Xcos(X), where X is a uniform random variable on (1,3). Use vector operations and do not use for loops. (d) (2 marks) Write out the analytical formula for Eg(X)] in part (C). Do not carry out the integration,

Explanation / Answer

a) The vector of 1000 random values drawn from a normal distribution with a mean of 5 and a standard deviation of 2 is given as

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote