Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 (12 marks) In R, load a data set called iris using the following code: data(iris). The data set includes measurement for 150 iris
Question 2 (12 marks) In R, load a data set called iris using the following code: data(iris). The data set includes measurement for 150 iris flowers. a) Using the iris data set, find the following confidence intervals (6 marks): i. 90% confidence interval for the true mean of Sepal.Length (using the complete dataset) b) c) d) 90% confidence interval for the true mean of Sepal.Length for observations that come from species setosa. Note that to choose the relevant observations, you need to add code Species=="setosa\" when you use the subset() function. 90% confidence interval for the true mean of Sepal.Length for observations that come from the versicolor species. Indicate what method of calculation you chose for each interval and why (e.g., did you use the z or t distribution). (2 marks) Discuss the findings. Explain what your results show you. (2 marks) Provide the R code that you used to get your results (starting from the line to load the data). (2 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started