Question

Car Mazda3 Buick Encore Toyota Corolla Chrevolet Tahoe Chrevolet Equinox Ford Fiesta BMW 528i Mitsubishi Mirage GMC Yukon Dod

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Maam 23 55. 85 Standard error=g 132.134 2397.975 ),96 x17 2 ,134 233. 3333 2 드 2000,5922675-358 ) 27.358

# 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

Add a comment
Know the answer?
Add Answer to:
Car Mazda3 Buick Encore Toyota Corolla Chrevolet Tahoe Chrevolet Equinox Ford Fiesta BMW 528i Mitsubishi Mirage...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT