Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Cars data frame (showing only the first five observations) Unnamed: 0 mpg cyl disp hp drat wt gsec vs am gear carb 19 Toyota Corolla
Cars data frame (showing only the first five observations) Unnamed: 0 mpg cyl disp hp drat wt gsec vs am gear carb 19 Toyota Corolla 33.9 4 71.1 65 4.22 1.835 19.90 4 10 Merc 280C 17.8 6 167.6 123 3.92 3.440 18.90 1 0 4 4 16 Chrysler Imperial 14.7 8 440.0 230 3.23 5.345 17.42 0 0 3 4 18 Honda Civic 30.4 4 75.7 52 4.93 1.615 18.52 1 4 2 17 Fiat 128 32.4 4 78.7 66 4.08 2.200 19.47 4MPG against Weight 35 30 25 MPG 20 15 10 15 20 2.5 3.0 3.5 4.0 4.5 5.0 5.5 Weight (1000s lbs)mpg wt mpg 1.000000 -0.867335 wt -0.867335 1.600000OLS Regression Results Dep. Variable: mpg R-squared : 0.752 Model : OLS Adj. R-squared: 0.743 Method : Least Squares F-statistic: 85.03 Date : Wed, 23 Nov 2022 Prob (F-statistic) : 5. 59e-10 Time : 15:31:33 Log- Likelihood: -75 . 888 No. Observations: 30 AIC : 155.8 Of Residuals: 28 BIC : 158.6 Df Model : 1 Covariance Type: nonrobust coef std err t P> t [0. 025 0.975] Intercept 37.2427 1.942 19.182 0.060 33.266 41.220 wt -5. 3442 0. 580 -9. 221 0.060 -6.531 -4.157 Omnibus : 2.956 Durbin-Watson: 1.948 Prob (Omnibus ) : 0. 228 Jarque-Bera (JB) : 2.457 Skew: 0. 691 Prob (JB) : 0.293 Kurtosis: 2.766 Cond. No. 12.3 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
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