Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How to do this question in RStudio with explanation. Using the sampling distribu

ID: 3177371 • Letter: H

Question

How to do this question in RStudio with explanation.

Using the sampling distribution of sample mean to estimate the mean of the variables "xv" and "ys" in the data "scatter1.txt" from the R book.

(a) For the simulation do the sampling 2000 times with sample size n=20 and n=50.

(b) Use the sampling distribution(with n=20) that you constructed in (a) to compute an approximation of the probability of the sample mean falling within .5 of the mean of each variable "xv" and "ys".

(c) Do the same question for (b) with n=50.

Explanation / Answer

For the simulation do the sampling 2000 times with sample size n=20 and n=50. #xv setwd("C:/Users/amorales/Documents/R") scatter1
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote