Question: 6. A student would like to study the relationship between the mileage per gallon (MPG) and horsepower of some fuel efficient automobiles in a certain


6. A student would like to study the relationship between the mileage per gallon (MPG) and horsepower of some fuel efficient automobiles in a certain year. Below are the information this student collected. Answer the following questions. You can use R to answer all of these questions, no need to do by hand. Car MPG (y) Horsepower (x, in hp) Toyota Prius 53 121 Hyundai Kona 32 170 Kia Niro 45 140 Honda accord 32 210 Volkswagen Jetta 33 158 Subaru Impreza 35 198 Hyundai Elantra 36 134 Honda Civic 40 170 Toyota Camry 35 215 Toyota Corolla 38 152 a. Draw a scatterplot of the data. Describe the relationship between MPG and Horsepower. b. Determine the covariance and correlation coefficient (r) between MPG and Horsepower. c. Suppose we would like to predict MPG based on a car's horsepower. Find the least-squares equation for the prediction. d. If a car's horsepower is 180 hp, what is the predicted MPG? e. Determine the coefficient of determination (R2). Give the interpretation of this value. f. If a car's horsepower is 170 hp with MPG 39, what is the residual
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
