Question: 1.Using a computer program, a data set with 20 observations on and was generated ( GENERATEDATA.csv ). Again, use the same instructions as above (in
1.Using a computer program, a data set with 20 observations on and was generated (GENERATEDATA.csv). Again, use the same instructions as above (in #1) to upload and import this dataset into an RStudio Cloud work session.(1 point)
(1)(3 points)Make a scatter plot and describe the relationship between Y and X.
(2)(4 points)Using R commands we've used before, calculate the means and standard deviations for both Y and X.
(3)(2 points)Using R, calculate the correlation coefficient value between Y and X.
(4)(5 points)Using the values found above, use the formulas given in the Lecture to manually calculate (show your work) the slope and Y-intercept for the least squares regression line. Write out the equation for the least squares regression line.
(5)(3 points)Refer to the OpenIntro.org Lab (Linear Regression) to perform the lm() command in R, computing the linear regression line with R. Write out the regression line equation from the Output from R.
(6)(2 points)As shown in the Lab, add the regression line to your scatter plot using the abline() command.
(7)(1 point)What percent of the variability in Y is explained by X? Give the appropriate statistic.
(8)(4 points)As shown in the Lab, plot the residuals versus the x values;use the abline() command to draw the dashed line at y=0.Give a short paragraph commenting on this residual plot graph.
(9)(3 points)Make a histogram of the residuals and comment on what this shows you.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
