Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

Do you favor a civil service system? Why or why not?

Answered: 1 week ago

Question

1. Identify what positions are included in the plan.

Answered: 1 week ago

Question

2. Identify the employees who are included in the plan.

Answered: 1 week ago