Question: 1. Linear regression model with one dependent variable mpg (miles per gallon). This variable describes how many miles a car runs on one gallon of
1. Linear regression model with one dependent variable mpg (miles per gallon). This variable describes how many miles a car runs on one gallon of gas. Higher mpg means the car consumes less gas.
The independent variable is "cyl" (number of cylinders in the car's engine). More cylinders mean that the car has a more powerful engine.
2. In the second model I add one more independent variable "hp" (horsepower).
Questions:
1. Write the estimated equations for both models (the equation of the line for model1 and model2.
2. Does the variable "cyl" explain well the variability in "mpg"? explain why.
3. Does the variable "hp" explain well the variability in "mpg"? explain why.


Call : Im(formula = mpg ~ cyl, data = mtcars) Residuals : Min 1Q Median 3Q Max -4.9814 -2. 1185 5 0.2217 1.0717 7. 5186 Coefficients : Estimate Std. Error t value Pr(>Itl) (Intercept) 37.8846 2. 0738 18.27 Itl) (Intercept) 36.90833 2. 19080 16.847
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
