Question

In: Statistics and Probability

A department of transportation's study on driving speeds and miles per gallon for midsize automobiles resulted...

A department of transportation's study on driving speeds and miles per gallon for midsize automobiles resulted in the following data:
Speed (MPH) Miles per Gallon
30 28
50 25
40 25
55 23
30 30
25 32
60 21
25 35
50 26
55 25
(a) Find the line of best fit
(b) Predict the mileage for a driving speed of 42 mph.
c) Compute and interprent the correlation coefficient.
(b) Is the relationship between speed and gas mileage statistically signficant? Provide support.

Solutions

Expert Solution

a)Codes:

Import the data set into R and store in a data frame dat

summary(lm(dat$`Miles per Gallon`~dat$`Speed (MPH)`))

Output:

Coefficients:

Estimate Std. Error t value Pr(>|t|)   

(Intercept) 39.01807 2.02017 19.314 5.36e-08 ***

dat$`Speed (MPH)` -0.28614 0.04598 -6.223 0.000253 ***

Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 1.874 on 8 degrees of freedom

Multiple R-squared: 0.8288, Adjusted R-squared: 0.8074

F-statistic: 38.72 on 1 and 8 DF, p-value: 0.0002531

Result-

The regression model is given by Miles per Gallon=39.01807-0.28614*Speed(MPH)

b)The predicted value of Mileage for 42 MPH is 27.00019 Miles per Gallon

c)Correlation coefficient:

Code-cor(dat$`Speed (MPH)`,dat$`Miles per Gallon`)

Output:-0.9103694

Interpretation:Highly negatively correlated .Therefore,if the speed of automobiles increases the mileage decreases.

d)Since here the p value <0.05,hence the relationship between speed and gas mileage is statistically significant.


Related Solutions

A random sample of Midsize Sedans’ Miles per Gallon (mpg) were recorded and the                   data is...
A random sample of Midsize Sedans’ Miles per Gallon (mpg) were recorded and the                   data is listed below. Assume the miles per gallon are normally distributed: 24.6      30.2      29.9      33.1      26.7 28.5      31.6      36.3      24.4      28.7 Calculate the mean (1 pt): Calculate the standard deviation (1 pt): Construct a 90% confidence interval for population mean (4 pts): Construct a 95% confidence interval for population standard deviation (4 pts):
A sample of 20 Automobiles was taken and the miles per gallon (MPG), horsepower (HP), and...
A sample of 20 Automobiles was taken and the miles per gallon (MPG), horsepower (HP), and total weight were recorded. Develop a linear regression model to predict MPG… MPG Horsepower Weight 44 67 1844 44 50 1998 40 62 1752 37 69 1980 37 66 1797 34 63 2199 35 90 2404 32 99 2611 30 63 3236 28 91 2606 26 94 2580 26 88 2507 25 124 2922 22 97 2434 20 114 3248 21 102 2812 18...
A car manufacturer claims that the miles per gallon (mpg) of all its midsize cars can...
A car manufacturer claims that the miles per gallon (mpg) of all its midsize cars can be modeled with a normal model with N(33, 1.70). What proportion of cars have miles per gallon less than 31.2 [P(x ≤31.2 mpg)]? What proportion of cars will have miles per gallon greater than 36 [P(x ≥36 mpg)]? What proportion of cars will have miles per gallon less than 30[P(x ≤30 mpg)]? What proportion of cars will have miles per gallon between 32 and...
According to Energy Information the average gas mileage of all automobiles is 21.4 miles per gallon....
According to Energy Information the average gas mileage of all automobiles is 21.4 miles per gallon. For a random sample of 40 sport utility vehicles, the mean gas mileage is 19.8 miles per gallon with a standard deviation of 3.5 miles per gallon. Test the claim that the mean mileage of all SUVs is different than the gas mileage of all automobiles. a) z = 2.89 and a p value of .9938 .9938 < 0.05 There is not sufficient evidence...
Under specified driving conditions, an automobile manufacturer is concerned about the miles per gallon (mpg) of...
Under specified driving conditions, an automobile manufacturer is concerned about the miles per gallon (mpg) of its new crossover. For automobiles of the same class, the average is 21 with a standard deviation of 3.1 mpg. To investigate, the manufacturer tested 18 of its new crossover in which the average was 20.3 mpg. What can be concluded with α = 0.10? a) What is the appropriate test statistic? ---Select---na, z-test, one-sample t-test, independent-samples t-test, related-samples t-test b) Population: ---Select---specified conditions,...
A Ministry of Transportation investigation on driving speed and gasoline consumption for midsize vehicles (in miles...
A Ministry of Transportation investigation on driving speed and gasoline consumption for midsize vehicles (in miles per gallon), resulted in the following data: Speed (Miles per Hour) 55       50      25      60      `25    30     55      40      50      30 Miles per Gallon             25      26      35      21       32    30     23      25      25      28 Compute the covariance. ________________ Compute the coefficient of correlation. __________________ Based on (a) and (b), what conclusion can you reach about the relationship between driving speed and fuel consumption?
Toyota has been manufacturing small automobiles that have averaged 50 miles per gallon of gasoline in...
Toyota has been manufacturing small automobiles that have averaged 50 miles per gallon of gasoline in highway driving. The company has developed a more efficient engine for its small cars and now advertises that its new small cars average more than 50 miles per gallon in highway driving. An independent testing service road-tested 36 of the automobiles. The sample showed an average of 51.5 miles per gallon. The population standard deviation is 6 miles per gallon. With a 0.025 level...
Miles per Gallon. The following stem-leaf plot is representing the number of miles per gallon achieved...
Miles per Gallon. The following stem-leaf plot is representing the number of miles per gallon achieved on the highway for 2013 small car models. Construct an Ogive of data by first construction a cumulative frequency table with class width of five. Include: Limits, frequency, and cumulative frequency. 2 2       means 22 miles per gallon 2 2 2 5 7 9 9 9 9 9 3 0 0 0 0 0 1 1 1 2 2 2 2 2 3 3...
Driving costs - functions Driving is expensive. Write a program with a car's miles/gallon and gas...
Driving costs - functions Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('{:.2f}'.format(your_value)) Ex: If the input is: 20.0 3.1599 the output is: 1.58 7.90 63.20 Your program must define and call the following driving_cost() function. Given input parameters driven_miles, miles_per_gallon,...
you currently drive 300 miles per week in a car that gets 20 miles per gallon...
you currently drive 300 miles per week in a car that gets 20 miles per gallon of gas. you are considering buying a new fuel-efficient car for $12,000 ( after trade-in on your current car) that gets 50 miles per gallon. Insurance premiums for the new and old car are $900 and $500 per year, respectively. you anticipate spending $1300 per year on repairs for the old car and having no repairs on the new car. assume gas costs $3.50...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT