

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to practice problems related to creating scatter plots, performing simple and second degree linear regression analysis, and evaluating the adequacy of the fits for the given data. The data consists of hypothetical variables x and y with their corresponding values.
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Practice Problems # 12 - Solutions
1. The following table gives values for hypothetical variables x and y.
x y x y 1.0 2.2 11.0 31. 2.0 9.0 12.0 32. 3.0 13.5 13.0 34. 4.0 17.0 14.0 36. 5.0 20.5 15.0 37. 6.0 23.3 16.0 38. 7.0 25.2 17.0 40. 8.0 26.4 18.0 41. 9.0 27.6 19.0 42. 10.0 30.2 20.0 43.
a. Create a scatter plot of y versus x.
0.00 5.00 10.00 15.00 20.00 25.
Scatter Plot of x vs. y
x
y
b. Fit a simple linear regression model to this data.
Estimated Model 8.65263157894737+ 1.91022556390977x*
c. Using the model in part b, create a residual plot of the residuals vs. x.
-20.
-15.
-10.
-5.
0.00 5.00 10.00 15.00 20.00 25.
x
Residuals of y
d. Create a residual plot of the residuals vs. fitted values.
-20.
-15.
-10.
-5.
0.00 5.00 10.00 15.00 20.00 25.00 30.00 35.00 40.00 45.
Residuals of y vs Predicted
Predicted y
Residuals of y
d. Do these plots indicate an adequate fit? Explain. No, they do not indicate an adequate fit to the data. There is a definite pattern in the residual plots; hence we should use a polynomial regression model in the variable x (i.e. at the very least, one should include x^2 and well as x in the regression model; maybe even cubic).