The built-in data set \"mtcars\" compares 11 aspects of automobile design for 32
ID: 3323721 • Letter: T
Question
The built-in data set "mtcars" compares 11 aspects of automobile design for 32 different 1974 model automobiles. We will be looking at the wt column of mtcars. Assume that the 32 cars are a random sample of all 1974 automobiles. We would like to estimate the true mean value, , of the wt (weight in 1000's of pounds) of cars in 1974. The unknown variance of wt is 2. Using R define the vector x by x<-mtcars$wt. A screen print of the data follows.
[1] 2.620 2.875 2.320 3.215 3.440 3.460 3.570 3.190 3.150 3.440 3.440 4.070 3.730
[14] 3.780 5.250 5.424 5.345 2.200 1.615 1.835 2.465 3.520 3.435 3.840 3.845 1.935
[27] 2.140 1.513 3.170 2.770 3.570 2.780
g) Calculate a 10% trimmed mean for x using R.
h) Since the sample size is >30 we can create a confidence interval for using a normal critical value. If we want the confidence interval to be at the 96% level and we use a normal critical value, then what critical value should we use?
i) Calculate a 96% confidence interval(using a normal critical value) for .
j) How long is the 96% confidence interval just created in part i?
Explanation / Answer
Result:
The built-in data set "mtcars" compares 11 aspects of automobile design for 32 different 1974 model automobiles. We will be looking at the wt column of mtcars. Assume that the 32 cars are a random sample of all 1974 automobiles. We would like to estimate the true mean value, , of the wt (weight in 1000's of pounds) of cars in 1974. The unknown variance of wt is 2. Using R define the vector x by x<-mtcars$wt. A screen print of the data follows.
[1] 2.620 2.875 2.320 3.215 3.440 3.460 3.570 3.190 3.150 3.440 3.440 4.070 3.730
[14] 3.780 5.250 5.424 5.345 2.200 1.615 1.835 2.465 3.520 3.435 3.840 3.845 1.935
[27] 2.140 1.513 3.170 2.770 3.570 2.780
g) Calculate a 10% trimmed mean for x using R.
3.152692
h) Since the sample size is >30 we can create a confidence interval for using a normal critical value. If we want the confidence interval to be at the 96% level and we use a normal critical value, then what critical value should we use?
2.053749
i) Calculate a 96% confidence interval(using a normal critical value) for .
(2.797458, 3.507926)
j) How long is the 96% confidence interval just created in part i?
0.3552338
R code:
x<-c( 2.620, 2.875, 2.320, 3.215, 3.440, 3.460, 3.570, 3.190, 3.150, 3.440, 3.440, 4.070, 3.730,
3.780, 5.250, 5.424, 5.345, 2.200, 1.615, 1.835, 2.465, 3.520, 3.435, 3.840, 3.845, 1.935,
2.140, 1.513 ,3.170, 2.770, 3.570, 2.780)
mean <- mean(x, trim=0.10); mean
se<-sd(x)/sqrt(32)
zc=qnorm(0.98);zc
error = zc*se; error
l<-mean-error;l
u<-mean+error;u
R output:
x<-c( 2.620, 2.875, 2.320, 3.215, 3.440, 3.460, 3.570, 3.190, 3.150, 3.440, 3.440, 4.070, 3.730,
+ 3.780, 5.250, 5.424, 5.345, 2.200, 1.615, 1.835, 2.465, 3.520, 3.435, 3.840, 3.845, 1.935,
+ 2.140, 1.513 ,3.170, 2.770, 3.570, 2.780)
>
> mean <- mean(x, trim=0.10); mean
[1] 3.152692
> se<-sd(x)/sqrt(32)
> zc=qnorm(0.98);zc
[1] 2.053749
> error = zc*se; error
[1] 0.3552338
l<-mean-error;l
[1] 2.797458
> u<-mean+error;u
[1] 3.507926
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.