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 qsec vs am gear carb 21 Dodge Challenger
Cars data frame (showing only the first five observations) Unnamed: 0 mpg cyl disp hp drat wt qsec vs am gear carb 21 Dodge Challenger 15.5 8 318.0 150 2.76 3.520 16.87 0 0 2 1 Mazda RX4 Wag 21.0 6 160.0 110 3.90 2.875 17.02 0 1 4 4 16 Chrysler Imperial 14.7 8 440.0 230 3.23 5.345 17.42 0 0 3 4 14 Cadillac Fleetwood 10.4 8 472.0 205 2.93 5.250 17.98 0 0 4 6 Duster 360 14.3 8 360.0 245 3.21 3.570 15.84 0 O 4MPG against Horsepower 35 30 25 MPG 20 15 10 50 100 150 200 250 300 Horsepowermpg wt hp mpg 1.000000 -0.874716 -0.778305 wt -0. 874716 1. 009000 0.692314 hp -0.778305 0. 692314 1.090000\fOLS Regression Results Dep. Variable: mpg R-squared : 0.822 Model : OLS Adj. R-squared: 0.809 Method: Least Squares F-statistic : 62.52 Date: Sun, 04 Dec 2022 Prob (F-statistic) : 7. 36e-11 Time : 16:07:40 Log-Likelihood: -70.560 No. Observations: 30 AIC : 147 .1 Of Residuals : 27 BIC : 151.3 Df Model : 2 Covariance Type: nonrobust coef std err t P> t [0. 025 0.975] Intercept 37.3057 1. 665 22 . 412 3.000 33 . 890 40 .721 -3.9631 0. 690 -5.740 0.060 -5.380 -2.546 hp -0. 0304 0. 010 -2.952 0.006 -0.052 -0.009 Omnibus : 4.700 Durbin-Watson: 2 . 212 Prob(Omnibus ) : 0. 095 Jarque -Bera (JB) : 3.580 Skew: 0. 841 Prob (JB) : 0.167 Kurtosis : 3. 180 Cond. No. 556. 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