Question: 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

  1. 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.
  2. 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.
  3. 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.
  4. 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 
mpg wt mpg 1.000000 -0.866366 wt -0.866366 1.000000 OLS Regression Results ============================================================================== Dep. Variable: mpg R-squared: 0.751 Model: OLS Adj. R-squared: 0.742 Method: Least Squares F-statistic: 84.27 Date: Wed, 29 Sep 2021 Prob (F-statistic): 6.15e-10 Time: 18:07:25 Log-Likelihood: -75.979 No. Observations: 30 AIC: 156.0 Df Residuals: 28 BIC: 158.8 Df Model: 1 Covariance Type: nonrobust ============================================================================== coef std err t P>|t| [0.025 0.975] ------------------------------------------------------------------------------ Intercept 37.2852 1.945 19.169 0.000 33.301 41.269 wt -5.3419 0.582 -9.180 0.000 -6.534 -4.150 ============================================================================== Omnibus: 2.539 Durbin-Watson: 2.225 Prob(Omnibus): 0.281 Jarque-Bera (JB): 2.158 Skew: 0.639 Prob(JB): 0.340 Kurtosis: 2.692 Cond. No. 12.2 ============================================================================== Warnings: [1] Standard Errors assume that the covariance matrix of the errors is correctly specified.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!