Question: R language Exercise 1.2: Creating a histogram of values drawn from a Normal distribution (a) Use the following commands to generate 25 z-values and

R language Exercise 1.2: Creating a histogram of values drawn from a

R language Exercise 1.2: Creating a histogram of values drawn from a Normal distribution (a) Use the following commands to generate 25 z-values and form a histogram. Does the result look surprising? Why? > Z=rnorm (25) > hist (2) (b) Try using 200 or more points. Is that better? Explain. (c) By default, R uses too few bins for large sample sizes. Add the argument breaks-seq(-4,4,0.1) and see what happens. Try ?hist if you get lost.

Step by Step Solution

3.41 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The result of the command histZ will create a histogram of the 25 zvalues generated from a Norma... View full answer

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