Question: MATLAB Programming Help. I can't figure out how to do exercise 9. EXERCISE 9: Compare the histograms of two normal distributions. Display the histograms of

MATLAB Programming Help. I can't figure out how to do exercise 9.

EXERCISE 9: Compare the histograms of two normal distributions. Display the histograms of the normal distribution of EXAMPLE 8 and the normal distribution of Exercise 8 on the same graph (using line plots). Use the square root rule to choose the number of bins.

-----------------

EXAMPLE 8: Generate "random" numbers from three common probability distributions

Create a new cell in which you type and execute:

 yNormal = random('norm', 0, 1, [1000, 1]); % Normal with zero mean and unit sd yUniform = random('unif', -1, 1, [1000,1]); % Uniform in the interval [-1, 1] yExp = random('exp', 1, [1000, 1]); % Exponential with mean 1

---------------

EXERCISE 8: Create a sample of 1000 values from a normal distribution. Create a variable yNormal1 that holds a vector of 1000 values drawn from the normal distribution with mean 1 and standard deviation 1.

(MY CODE: yNormal1 = random('norm', 1, 1, [1000, 1]); )

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