Write the multiple regression equation for miles per gallon as the response variable. Use weight and horsepower as predictor variables. See Step 5 in the Python script. How might the car rental company use this model?
OLS Regression Results ============================================================================== Dep. Variable: mpg R-squared: 0.822 Model: OLS Adj. R-squared: 0.808 Method: Least Squares F-statistic: 62.13 Date: Fri, 14 Feb 2020 Prob (F-statistic): 7.88e-11 Time: 05:00:39 Log-Likelihood: -69.730 No. Observations: 30 AIC: 145.5 Df Residuals: 27 BIC: 149.7 Df Model: 2 Covariance Type: nonrobust ============================================================================== coef std err t P>|t| [0.025 0.975] ------------------------------------------------------------------------------ Intercept 37.8867 1.748 21.674 0.000 34.300 41.473 wt -4.0629 0.694 -5.855 0.000 -5.487 -2.639 hp -0.0318 0.009 -3.470 0.002 -0.051 -0.013 ============================================================================== Omnibus: 5.277 Durbin-Watson: 1.919 Prob(Omnibus): 0.071 Jarque-Bera (JB): 3.980 Skew: 0.878 Prob(JB): 0.137 Kurtosis: 3.314 Cond. No. 620. ============================================================================== Warnings: [1] Standard Errors assume that the covariance matrix of the errors is correctly specified
is multiple regression equation with Mpg as outcome and weight, horsepower is input.
We will use ordinary least square method to estimate slope a and intercept b,c.
Now the car rental company has to enter weight and horsepower to predict mpg for that car.
Write the multiple regression equation for miles per gallon as the response variable. Use weight and...
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?...
Question 4 (3 points) The statsmodels ols() method is used on a cars dataset to fit a multiple regression model using Quality as the response variable. Speed and Angle are used as predictor variables. The general form of this model is: Y = Bo + B. Speed+B Angle If the level of significance, alpha, is 0.10, based on the output shown, is Angle statistically significant in the multiple regression model shown above? Select one. OLS Regression Results ==================================== ========== 0.978...