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

I only need part d. In this problem you are going to analyze the built-in R data

ID: 3389490 • Letter: I

Question

I only need part d.

In this problem you are going to analyze the built-in R data set iris. First, extract the sepal
width of the virginica species and save it to a vector x using this command:
x = iris$Sepal.Width[iris$Species == "virginica"]

Answer the following:
(a) R Code: Using a Gaussian approximation, what is the 95% confidence interval for the
mean of x?
(b) R Code: Using a Student t distribution, what is the 95% confidence interval for the
mean of x?
(c) R Code: Now assume that you only have the first 10 measurements. That is, create
the vector
y = x[1:10]. Repeat parts (a) and (b) for the vector y.
(d) How did the decrease in sample size affect the results? Were the two different confidence
intervals affected differently?

Explanation / Answer

I only need part d. In this problem you are going to analyze the built-in R data