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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started