R语言代写

 

Part 1:

Each of the distributions below could be used to model the time spent studying for an exam. Take 1,000 random samples of size 25 from each of the distributions below. In each case (a,b,c), plot the empirical distribution of the sample mean, estimate the mean of the sample mean, and estimate the standard deviation of the sample mean. Compare the results to the theoretical results.

 

 

 

Part 2:

Each of the distributions below could be used to model the time spent studying for an exam. Take one random sample of size 25 from each of the distributions below. Then, take 1,000 resamples (i.e., sample with replacement) of size 25 from your sample. In each case (a,b,c), plot the empirical distribution of the sample mean, estimate the mean of the sample mean, and estimate the standard deviation of the sample mean. Compare the results to the theoretical results. In addition, compare your results from part 2 to the corresponding results from part 1.

 

 

 

Part 3:

The Project Data 1 and Project Data 2 files on Carmen contain a data set of 25 and 250, respectively, randomly chosen study times. For each data set, use the resampling technique from part two to obtain the empirical distribution of the sample mean. Plot the empirical distribution of the sample mean, estimate the mean of the sample mean, and estimate the standard deviation of the sample mean. In addition, find the estimated 5 number summary and the estimated 2.5th and 97.5th percentiles. Compare and contrast your results for the two sample sizes.

The written report should be roughly 1 to 2 pages (excluding figures/plots) and should clearly explain your results. It should be well organized and grammatically correct. Please use a readable 11 or 12 point font. If need be, include a works cited or reference page. In addition, include your R code as an appendix (use either Courier New or Consolas font for the R code). Print your report double sided and staple it together.