Question: Generate N standard uniform random numbers using rand. Apply the command rand('state',56424177) so that each student will work on a distinct number sequence (a) Set

Generate N standard uniform random numbers using rand. Apply the command rand('state',56424177) so that each student will work on a distinct number sequence (a) Set N = 100. Use these 100 standard uniform random numbers to produce 100 Bernoulli random variables with p=0.3. Plot the probability mass function (PMF) of the produced Bernoulli random variables using the 100 samples, and include it in the report. (b) Repeat (a) by using a larger value of N, namely, N = 100000. Compare with the results obtained in (a). What are your findings? (c) Extend the Bernoulli random variable generation to binomial random variables with n= 4 and p = 0.3. Write down the steps of binomial random variable generation using uniform random numbers clearly. Implement your steps using MATLAB and show the corresponding PMF plot in the report. What are your findings? n Generate N standard uniform random numbers using rand. Apply the command rand('state',56424177) so that each student will work on a distinct number sequence (a) Set N = 100. Use these 100 standard uniform random numbers to produce 100 Bernoulli random variables with p=0.3. Plot the probability mass function (PMF) of the produced Bernoulli random variables using the 100 samples, and include it in the report. (b) Repeat (a) by using a larger value of N, namely, N = 100000. Compare with the results obtained in (a). What are your findings? (c) Extend the Bernoulli random variable generation to binomial random variables with n= 4 and p = 0.3. Write down the steps of binomial random variable generation using uniform random numbers clearly. Implement your steps using MATLAB and show the corresponding PMF plot in the report. What are your findings? n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
