# Using R
>
x=c(2630,2135,1330,2026,2447,2026,1645,2410,1660,2259,2116,1942,1931,3532,
+ 3947,3561,2630,4222,1051,1617)
>
> ### Part a)
> mean(x)
[1] 2355.85
> sd(x)
[1] 857.9969
>
>
> #### Part b)
>
> boot.mean=function(data, nsim)
+ {
+ n=length(data)
+ BOOT=list()
+ x.mean=list()
+
+ for(i in 1:nsim)
+ {
+ BOOT[[i]]=sample(data, size=n, replace = TRUE)
+ x.mean[[i]]=mean(BOOT[[i]])
+ }
+ return(x.mean)
+ }
>
>
> ## Run
>
> Boot.mean=boot.mean(data=x, nsim=200)
>
> Boot.mean=unlist(Boot.mean)
>
>
> Center=quantile(Boot.mean, c(0.50))
> Center
50%
2337.975
>
> sd(Boot.mean)
[1] 172.134
Car Mazda3 Buick Encore Toyota Corolla Chrevolet Tahoe Chrevolet Equinox Ford Fiesta BMW 528i Mitsubishi Mirage...