Data
HOME_SALES.csv
Exercise 1
We are using the same data as last week’s lab. Start by reading in the HOME_SALES
data with read.csv()
or readr::read_csv()
.
- Create a scatter plot between the finished area and the sale price.
- Fit a linear regression model with sale price as the response and finished area as the predictor.
- Plot the estimated regression function on top of the scatter plot. Does it appear to fit the data?
- Predict the price for three houses that have the finished area of 2500, 4000, and 6000 square feet.
- Use the
summary()
function to see the results of the regression analysis. What do you see?
- Perform an Analysis of Variance (ANOVA) of the linear regression fit.