Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this part of the lab you will be using the iris dataset already built into R. Your goal is to look for correlation among
For this part of the lab you will be using the iris dataset already built into R. Your goal is to look for correlation among the different variables (sepal length, petal length, and petal width) and test for significant relationships. To load the iris data into RStudio, use the command data (iris) . You can view the column headers using the command head (iris) . 1) Start by plotting all three combinations of sepal length, petal length, and petal width (sepal length & petal length, sepal length & petal width, petal length & petal width) as scatterplots. a) Paste your R code and the three plots here (6 points): 2) Just by visually inspecting the scatter plots, do any of the data look like they might be correlated? Why? (2 points) 3) Next we are going to find the correlation coefficient, r, for all three combinations. n Eixeyi - (Lixi)(Ziyi) r= In Ex? - (Ex.)2 In Liy) -(Livi)2
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