Use the r command setseed111 histrexp10000 breaks35 freqf


Question: Use the R command set.seed(111); hist(rexp(10000), breaks=35, freq=F) to generate a sample of size 10,000 from the exponential(1) distribution and to plot its histogram, and the additional R command curve(dexp, 0, 8, add=T) to superimpose the exponential(1) PDF on the graph. Does the histogram provide a reasonable approximation to the PDF? Repeat the above set of commands with a sample size of 1000, using breaks=27. Comment on how well this histogram approximates the PDF.

Request for Solution File

Ask an Expert for Answer!!
Basic Statistics: Use the r command setseed111 histrexp10000 breaks35 freqf
Reference No:- TGS02564754

Expected delivery within 24 Hours