Question

In: Statistics and Probability

1. Car Weight and Fuel Consumption data follow. Weight (lb) 3465 2895 3225 4095 5210 4180...

1. Car Weight and Fuel Consumption data follow.

Weight (lb) 3465 2895 3225 4095 5210 4180 2730 3270

Highway (mpg) 30 34 32 25 29 23 36 30

a. Make a scatter plot from the above data with axis labels and chart title.

b. Add a linear trendline, and determine the formula of the line and the R-squared value (you may

format the trend line to show the equation and R-squared).

c. Provide an interpretation of the chart. Which points are likely outliers, if any?

d. Plot a second chart with a trend line without the outlier(s). Does this improve the R-squared

and your interpretation?

Solutions

Expert Solution

#a)
x=c(3465,2895,3225,4095,5210,4180,2730,3270)
y=c(30,34,32,25,29,23,36,30)
model=lm(y~x);model
summary(model)
#b)
plot(x,y,ylab="mgp",xlab="weight")
abline(42.980,-0.003607)
#c)
xnew=x[-5]
ynew=y[-5]
model1=lm(ynew~xnew);model1
summary(model1)
#d)
plot(xnew,ynew,ylab="mgp",xlab="weight")
abline(58.288,-0.008299)

Above is the complete R code for all the subquestions and below is the output

a)

b)

> summary(model)

Call:
lm(formula = y ~ x)

Residuals:
Min 1Q Median 3Q Max
-4.9048 -1.6931 0.0836 1.8118 4.8100

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 42.980798 5.855886 7.340 0.000327 ***
x -0.003607 0.001577 -2.287 0.062186 .
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 3.414 on 6 degrees of freedom
Multiple R-squared: 0.4658, Adjusted R-squared: 0.3767
F-statistic: 5.231 on 1 and 6 DF, p-value: 0.06219

c)

One point is outlier specifically the car having weight 5210 is an outlier as it pushes the regression line towards itself and hence most points deviate from the line.

d)

> summary(model1)

Call:
lm(formula = ynew ~ xnew)

Residuals:
1 2 3 4 5 6 7
0.4683 -0.2622 0.4765 0.6967 -0.5978 0.3685 -1.1500

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 58.2880761 1.9037787 30.62 6.97e-07 ***
xnew -0.0082991 0.0005523 -15.03 2.36e-05 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 0.7505 on 5 degrees of freedom
Multiple R-squared: 0.9783, Adjusted R-squared: 0.974
F-statistic: 225.8 on 1 and 5 DF, p-value: 2.364e-05

It can be observed that the R^2 value changes a lot and the regression lines also gives a good fit.

Thank you !!


Related Solutions

An engineer wanted to determine how the weight of a car (kilograms), ?, affects fuel consumption...
An engineer wanted to determine how the weight of a car (kilograms), ?, affects fuel consumption (kilometers per litre), ?. The weights and fuel consumption for a random sample of 10 cars were recorded. Refer to the regression results from Excel. Regression Statistics Multiple R 0.84157604 R Square 0.708250231 Adjusted R Square 0.671781509 Standard Error 0.712010044 Observations 10       Coefficients Standard Error t-Stat P-Value Lower 95% Upper 95% Intercept 15.883033 1.680071 9.453785 0.000013 12.008782 19.757285 X-Variable 1 -0.004384 0.000995...
3. An engineer wanted to determine how the weight of a car (kilograms), ?, affects fuel...
3. An engineer wanted to determine how the weight of a car (kilograms), ?, affects fuel consumption (kilometers per litre), ?. The weights and fuel consumption for a random sample of 10 cars were recorded. Refer to the regression results from Excel. Regression Statistics Multiple R 0.84157604 R Square 0.708250231 Adjusted R Square 0.671781509 Standard Error 0.712010044 Observations 10    Coefficients Standard Error t-Stat P-Value Lower 95% Upper 95% Intercept 15.883033 1.680071 9.453785 0.000013 12.008782 19.757285 X-Variable 1 -0.004384 0.000995...
A sample of 20 cars, including measurements of fuel consumption (city mi/gal and highway mi/gal), weight...
A sample of 20 cars, including measurements of fuel consumption (city mi/gal and highway mi/gal), weight (pounds), number of cylinders, engine displacement (in liters), amount of greenhouse gases emitted (in tons/year), and amount of tailpipe emissions of NOx (in lb/yr). CAR CITY HWY WEIGHT CYLINDERS DISPLACEMENT MAN/AUTO GHG NOX Chev. Camaro 19 30 3545 6 3.8 M 12 34.4 Chev. Cavalier 23 31 2795 4 2.2 A 10 25.1 Dodge Neon 23 32 2600 4 2 A 10 25.1 Ford...
A sample of 20 cars, including measurements of fuel consumption (city mi/gal and highway mi/gal), weight...
A sample of 20 cars, including measurements of fuel consumption (city mi/gal and highway mi/gal), weight (pounds), number of cylinders, engine displacement (in liters), amount of greenhouse gases emitted (in tons/year), and amount of tailpipe emissions of NOx (in lb/yr). CAR CITY HWY WEIGHT CYLINDERS DISPLACEMENT MAN/AUTO GHG NOX Chev. Camaro 19 30 3545 6 3.8 M 12 34.4 Chev. Cavalier 23 31 2795 4 2.2 A 10 25.1 Dodge Neon 23 32 2600 4 2 A 10 25.1 Ford...
discuss the need for monitoring fuel consumption?
discuss the need for monitoring fuel consumption?
Fuel consumption is commonly measured in miles per gallon​ (mi/gal). An agency designed new fuel consumption...
Fuel consumption is commonly measured in miles per gallon​ (mi/gal). An agency designed new fuel consumption tests to be used starting with 2008 car models. Listed below are randomly selected amounts by which the measured MPG ratings decreased because of the new 2008 standards. Find the​ range, variance, and standard deviation for the sample data. Is the decrease of 4​ mi/gal unusual? Why or why​ not? 22     11     33     22     44     11     33     22     22     22     22     22     11     22    ...
A study is conducted concerning automobile speeds and fuel consumption rates. The following data is collected:                        &
A study is conducted concerning automobile speeds and fuel consumption rates. The following data is collected:                                                  X Speed   45        52         49         60         67         61           Y MPG    22         26         21         28         33         32                                                                                                                                              Draw Scatter plot Compute the coefficient of correlation, and make a comment about that. Compute the coefficient of determination, and make a comment about that. Compute the coefficient of Non- determination, and make a comment about that. Find Regression Line and make a comment about that. Also, at what location the line crosses    the y-axis. What is the “Residual’ at...
A study is conducted concerning automobile speeds and fuel consumption rates. The following data is collected:                        &
A study is conducted concerning automobile speeds and fuel consumption rates. The following data is collected:                                                   X Speed   45        52        49         60         67         61          Y MPG    22         26        21        28        33         32                                                                                                                                             Draw Scatter plot Compute the coefficient of correlation and make a comment about that. Compute the coefficient of determination and make a comment about that. Compute the coefficient of Non- determination and make a comment about that. Find Regression Line and make a comment about that. Also, at what location the line crosses               the y-axis. What is the “Residual’ at...
A 128-lb weight is attached to a spring having a spring constant of 64 lb/ft. The...
A 128-lb weight is attached to a spring having a spring constant of 64 lb/ft. The weight is started in motion with no initial velocity by displacing it 6 in below the equilibrium position and by simultaneously applying an external force F(t) = 8sin(4t). a. Assuming no air resistance, find the equation of motion. b. What is the long term behavior of the motion? Please use differential equations to solve this
A 12-lb weight is placed upon the lower end of a suspended spring. The weight comes...
A 12-lb weight is placed upon the lower end of a suspended spring. The weight comes to rest in its equilibrium position, stretching the spring by 1.5 inches. The weight is then pushed upward 2 inches above the equilibrium and released at t=0 with an initial velocity downward of 2ft/sec. Assume there is no damping caused by an external force a) Find the displacement of the weight function x(t) as a function of time, b) Determine the amplitude, period, and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT