SLIDE 1
Sta 101 Nicole Dalzell
Application exercise: MLR - Interpreting models and checking diagnostics
Name: Predicting car price:
Predicting the price of cars in 1993 based on features of the vehicle. Data are from a built-in R data set called Cars1993 in the MASS package. There are 93 individual data points, and for each car we have information on the (1) price, (2) type of car (compact, large, midsize, small,sporty, van), (3) the miles per gallon in the city, (4) what type of drive train (4WD, front, rear), (5) the number of passengers held by the car and (6) the weight of the car in pounds.
- 1. Write out a linear model to predict price using all other variables present in the data set. Write the
model first using the notation Price = β0 + β1X, etc, and then write the model for Price using the point estimates from the R output below. Estimate
- Std. Error
t value Pr(>|t|) (Intercept)
- 21.5451
19.2561
- 1.12
0.2694 TypeLarge
- 0.6341
3.7115
- 0.17
0.8651 TypeMidsize 4.3192 2.7612 1.56 0.1251 TypeSmall 2.0496 3.0299 0.68 0.5024 TypeSporty
- 1.6953
3.4601
- 0.49
0.6266 TypeVan
- 1.2969
5.4551
- 0.24
0.8132 MPG.city 0.1087 0.2513 0.43 0.6676 DriveTrainFront 3.9859 4.5874 0.87 0.3897 DriveTrainRear 1.0336 4.6281 0.22 0.8243 Passengers
- 4.0929
1.4811
- 2.76