Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You created a scatterplot of miles per gallon against weight; check to make sure it was included in your attachment. Does the graph show any
- You created a scatterplot of miles per gallon against weight; check to make sure it was included in your attachment. Does the graph show any trend? If yes, is the trend what you expected? Why or why not? See Step 2 in the Python script.
- What is the coefficient of correlation between miles per gallon and weight? What is the sign of the correlation coefficient? Does the coefficient of correlation indicate a strong correlation, weak correlation, or no correlation between the two variables? How do you know? See Step 3 in the Python script.
- Write the simple linear regression equation for miles per gallon as the response variable and weight as the predictor variable. How might the car rental company use this model? See Step 4 in the Python script.
- What is the slope coefficient? Is this coefficient significant at a 5% level of significance (alpha=0.05)? (Hint: Check the P-value,, for weight in the Python output.) See Step 4 in the Python script.
The results are below: Mazda RX4 21.0 6 160.0 110 3.90 2.620 16.46 0 1 4 4 16 Chrysler Imperial 14.7 8 440.0 230 3.23 5.345 17.42 0 0 3 4 13 Merc 450SLC 15.2 8 275.8 180 3.07 3.780 18.00 0 0 3 3 28 Ford Pantera L 15.8 8 351.0 264 4.22 3.170 14.50 0 1 5 4 25 Fiat X1-9 27.3 4 79.0 66 4.08 1.935 18.90 1 1 4 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started