Reference no: EM133775284
Assignment: Creating a Multiple Regression Model
The company expected fuel efficiency (miles per gallon) and weight of the car (often measured in thousands of pounds) to be correlated. The company also expects cars with higher horsepower to be less fuel efficient than cars with lower horsepower. They would like you to consider this new variable in your analysis.
In this assignment, you will work with a cars data set that includes the three variables used in this discussion:
1) Miles per gallon (coded as mpg in the data set)
2) Weight of the car (coded as wt in the data set)
3) Horsepower (coded as hp in the data set)
The random sample will be drawn from a CSV file. This data will be unique to you, and therefore your answers will be unique as well. Run Step 1 in the Python script to generate your unique sample data.
In your initial post, address the following items:
1) Check to be sure your scatterplots of miles per gallon against horsepower and weight of the car were included in your attachment. Do the plots show any trend? If yes, is the trend what you expected? Why or why not?
2) What are the coefficients of correlation between miles per gallon and horsepower? Between miles per gallon and the weight of the car? What are the directions and strengths of these coefficients? Do the coefficients of correlation indicate a strong correlation, weak correlation, or no correlation between these variables?
3) Write the multiple regression equation for miles per gallon as the response variable. Use weight and horsepower as predictor variables. How might the car rental company use this model?