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 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
a The result of the command histZ will create a histogram of the 25 zvalues generated from a Norma... View full answer
Get step-by-step solutions from verified subject matter experts
