Using the mtcars dataset, answer the following questions: Fill in the following table: Variable Correlation with mpg cyl -0.85216 disp -0.84755 hp -0.77617 drat 0.681172 wt -0.86766 qsec 0.418684 vs 0.664039 am 0.599832 gear 0.480285 carb -0.55093 mpg cyl disp hp drat wt qsec vs am gear carb Mazda RX4 21 6 160 110 3.9 2.62 16.46 0 1 4 4 Mazda...

80.2K

Verified Solution

Question

Basic Math

Using the mtcars dataset, answer the following questions:

Fill in the following table:

Variable

Correlation with mpg

cyl

-0.85216

disp

-0.84755

hp

-0.77617

drat

0.681172

wt

-0.86766

qsec

0.418684

vs

0.664039

am

0.599832

gear

0.480285

carb

-0.55093

mpgcyldisphpdratwtqsecvsamgearcarb
Mazda RX42161601103.92.6216.460144
Mazda RX4 Wag2161601103.92.87517.020144
Datsun 71022.84108933.852.3218.611141
Hornet 4 Drive21.462581103.083.21519.441031
Hornet Sportabout18.783601753.153.4417.020032
Valiant18.162251052.763.4620.221031
Duster 36014.383602453.213.5715.840034
Merc 240D24.44146.7623.693.19201042
Merc 23022.84140.8953.923.1522.91042
Merc 28019.26167.61233.923.4418.31044
Merc 280C17.86167.61233.923.4418.91044
Merc 450SE16.48275.81803.074.0717.40033
Merc 450SL17.38275.81803.073.7317.60033
Merc 450SLC15.28275.81803.073.78180033
Cadillac Fleetwood10.484722052.935.2517.980034
Lincoln Continental10.4846021535.42417.820034
Chrysler Imperial14.784402303.235.34517.420034
Fiat 12832.4478.7664.082.219.471141
Honda Civic30.4475.7524.931.61518.521142
Toyota Corolla33.9471.1654.221.83519.91141
Toyota Corona21.54120.1973.72.46520.011031
Dodge Challenger15.583181502.763.5216.870032
AMC Javelin15.283041503.153.43517.30032
Camaro Z2813.383502453.733.8415.410034
Pontiac Firebird19.284001753.083.84517.050032
Fiat X1-927.3479664.081.93518.91141
Porsche 914-2264120.3914.432.1416.70152
Lotus Europa30.4495.11133.771.51316.91152
Ford Pantera L15.883512644.223.1714.50154
Ferrari Dino19.761451753.622.7715.50156
Maserati Bora1583013353.543.5714.60158
Volvo 142E21.441211094.112.7818.61142
correlation-0.85216-0.84755-0.776170.681172-0.867660.4186840.6640390.5998320.480285-0.55093

Which of the variables is the best predictor of mpg? Justifyyour answer using the correlation coefficient and ascatterplot.

Fit a regression model based on your answer to question 2. Writeyour model below.

Is the slope significant? Justify your answer.

Interpret the slope of your regression model.

Interpret the r2 value.

Do you believe your model is a good model for predicting mpg?Justify your answer.

Answer & Explanation Solved by verified expert
4.4 Ratings (588 Votes)
Best PredictorSince mpg has highest correlation with Weight The correlationis neagative which indiacates that as weight increases Mileage ofvehicle decreases which is obvious alsoSo weightwt can be considered as bestpredictiorScatter plotFrom above plot it is clear that mpg and weight are highlyneagtively correlatd and we can fit linear regression model toitModel    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students