In: Statistics and Probability
Sepal.Length based on Petal.Length.
Answers should be in the form of R code on how to accomplish each part and include the correct statistical explanation for those that require it in the question. Please be as thorough as possible. Thank you so much!!!
a)
The linear regression equation is
Y=4.3066+0.40892X where Y= Sapel length and X= Petal length
Slope of the line is 0.40892
i.e for every 1 cm increase in petal length there is 0.40892cm lenth in Sapel length.
b)
c) H0:
H1:
t -value = 21.65 (refer R code)
Since p-value<0.05 we reject H0 and conclude that there is significant releation between Petal length anf Sapel length
F-value=468.6
p-value <0.05 hence reject Ho that there is no relationship between petal length and Sapel length.
g) the Sapel length when the petal length is 3.4 cm is
d and e)
In Q-Q plot we have diogonal line, hence the data is normally distributed.
In the scale location graph the points are equally spread below and above the red line. Hence we can assume constant variance.
f) the adjusted R-square is 0.758 . That means 75.8% of changes in sapel length is dependend on petal length.
h)