Use the r commands setseed111 histrunif100 freqf to


Question: Use the R commands set.seed(111); hist(runif(100), freq=F) to generate a sample of size 100 from the uniform(0, 1) distribution and to plot its histogram, and the additional R command curve(dunif, 0, 1, add=T) to superimpose the uniform(0, 1) PDF on the graph. Does the histogram provide a reasonable approximation to the uniform(0, 1) PDF? Repeat the set of commands using samples of size 1000, 10,000 and 100,000. For what sample size(s) would you say the histogram provides a reasonable approximation to the PDF?

Solution Preview :

Prepared by a verified Expert
Basic Statistics: Use the r commands setseed111 histrunif100 freqf to
Reference No:- TGS02564602

Now Priced at $15 (50% Discount)

Recommended (90%)

Rated (4.3/5)