The following table gives the city and highway mileages (miles per gallon) for 22 two-seaters listed for the 2002 model year. City Model Obs. ID City Highway Obs. ID 12 17 Honda Insight 57 1 56 2 3 4 Model Acura NSX Audi TT Quattro Audi TT Roadster BMW M Coupe 20 22 17 Highway 24 28 31 25 13 14 15 Honda S2000 20 Lamborghini |Murcielago Mazda Miata 9 22 26 13 28

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

[STATISTICS] How do you solve this?

The following table gives the city and highway mileages (miles per gallon) for 22 two-seaters listed for the 2002 model year.
City
Model
City
Highway
Obs. ID
12
17
Honda Insight 57
Obs. ID
1
3
4
5
6
7
8
9
10
11
Model
Acura NSX
Audi TT
Quattro
Audi TT
Roadster
BMW M
Coupe
BMW Z3
Coupe
BMW Z3
Roadster
BMW Z8
Chevrolet
Corvette
Chrysler
Prowler
Ferrari 360
Modena
Ford
Thurderbird
20
22
17
19
20
13
18
18
11
17
Highway
24
28
31
25
27
27
21
25
23
16
23
13
14
15
16
17
18
19
20
21
22
Honda S2000 20
Lamborghini
|Murcielago
Mazda Miata
Mercedes-Benz
SL500
Mercedes-Benz
SL600
Mercedes-Benz
SLK230
Mercedes-Benz
SLK320
Porsche 911
GT2
Porsche
Boxster
Toyota MR2
9
22
16
13
23
20
15
19
25
56
26
13
28
23
19
30
26
22
27
30
We expect a positive association between the city and highway mileages of a group of vehicles. Using R, make a scatterplot that shows
the relationship between city and highway mileage, using city mileage as the explanatory variable. Then, estimate the slope of the
corresponding simple linear regression model and provide its numerical value. Please round your final answer to 4 decimal places.
Transcribed Image Text:The following table gives the city and highway mileages (miles per gallon) for 22 two-seaters listed for the 2002 model year. City Model City Highway Obs. ID 12 17 Honda Insight 57 Obs. ID 1 3 4 5 6 7 8 9 10 11 Model Acura NSX Audi TT Quattro Audi TT Roadster BMW M Coupe BMW Z3 Coupe BMW Z3 Roadster BMW Z8 Chevrolet Corvette Chrysler Prowler Ferrari 360 Modena Ford Thurderbird 20 22 17 19 20 13 18 18 11 17 Highway 24 28 31 25 27 27 21 25 23 16 23 13 14 15 16 17 18 19 20 21 22 Honda S2000 20 Lamborghini |Murcielago Mazda Miata Mercedes-Benz SL500 Mercedes-Benz SL600 Mercedes-Benz SLK230 Mercedes-Benz SLK320 Porsche 911 GT2 Porsche Boxster Toyota MR2 9 22 16 13 23 20 15 19 25 56 26 13 28 23 19 30 26 22 27 30 We expect a positive association between the city and highway mileages of a group of vehicles. Using R, make a scatterplot that shows the relationship between city and highway mileage, using city mileage as the explanatory variable. Then, estimate the slope of the corresponding simple linear regression model and provide its numerical value. Please round your final answer to 4 decimal places.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman