Homework 2
Due: October 24 at noon turn in the .html file on Sakai
Create a project called Homework 2
on Rstudio.cloud
The Diamonds
data set can be used to examine the relationship between a diamond’s characteristics and it’s price. Using the Diamonds
data set in the Stat2Data
package, we want to assess following models:
(#1) TotalPrice
= β0+β1Depth
+ β2Depth
2+ϵ
(#2) TotalPrice
= β0+β1Carat
+ β2Depth
+ϵ
(#3) TotalPrice
= β0+β1Carat
+ β2Depth
+ β3Depth
×Carat
+ϵ
Inference
- Fit the three models. For each model (1, 2, and 3), report the ˆβ values and confidence intervals. Interpret all ˆβ coefficients in the context of the model fit.
Prediction
- Following the steps outlined when we discussed how to conduct a data analysis, create a report discussing the three models above. Use R2 and adjusted R2 to select your final prediction model. Be sure to follow all of the steps outlined, including testing the assumptions of each model and including the proper plots to demonstrate that the assumptions have been met.
- For the analysis in Exercise 2, rank each of the following principles from the Elements and Principles of Data Analysis article for this data analysis from 1 to 10 along with a one sentence summary:
- data matching:
- exhaustive:
- skeptical:
- second order:
- transparency:
- reproducible: