# Question: Cars introduced in Chapter 19 The cases that make up

Cars (introduced in Chapter 19) The cases that make up this dataset are types of cars. For each of 318 types of cars sold in the United States during the 2011 model year, we have the combined mileage and the horsepower of the engine (HP). In previous exercises, we found that a model for the association of mileage and horsepower required taking logs of both variables. (We used base 10 logs.) The column Vehicle Type denotes whether the vehicle is a car, truck, or SUV. (This is a bit arbitrary; we classified station wagons and vans together with SUVs.)

(a) Plot the log10 of mileage on the log10 of horse- power for vehicles of all three types in one scatterplot. Use color-coding or distinct symbols to distinguish the groups. Does it appear that the relationship is different among the groups, or can you capture the association with a single simple regression?

(b) Add two dummy variables (one for trucks and one for SUVs) and their interactions with log10 of HP to the model. Does the fit of this model meet the conditions for the MRM? Comment on the consequences of any problem that you identify.

(c) Assume that the model meets the conditions for the MRM. Use the incremental F-test to assess the size of the change in R2 produced when the dummy variables and interactions are added to the model. (See the discussion of this test in Exercise 45.) Does the test agree with your visual impression? (The value of kfull for the model with dummy variables and interactions is 5, with 4 slopes added. You will need to fit the simple regression of log10 of mileage on log10 of horsepower to get its R2 statistic.)

(d) Compare the conclusion of the incremental F-test to those of the tests of the coefficients of the dummy variable and interaction separately. Do these agree? Explain the similarity or difference.

(e) What does the addition of dummy variables and interactions to the regression tell you about these vehicles? A plot might help of the several fits might help you.

(a) Plot the log10 of mileage on the log10 of horse- power for vehicles of all three types in one scatterplot. Use color-coding or distinct symbols to distinguish the groups. Does it appear that the relationship is different among the groups, or can you capture the association with a single simple regression?

(b) Add two dummy variables (one for trucks and one for SUVs) and their interactions with log10 of HP to the model. Does the fit of this model meet the conditions for the MRM? Comment on the consequences of any problem that you identify.

(c) Assume that the model meets the conditions for the MRM. Use the incremental F-test to assess the size of the change in R2 produced when the dummy variables and interactions are added to the model. (See the discussion of this test in Exercise 45.) Does the test agree with your visual impression? (The value of kfull for the model with dummy variables and interactions is 5, with 4 slopes added. You will need to fit the simple regression of log10 of mileage on log10 of horsepower to get its R2 statistic.)

(d) Compare the conclusion of the incremental F-test to those of the tests of the coefficients of the dummy variable and interaction separately. Do these agree? Explain the similarity or difference.

(e) What does the addition of dummy variables and interactions to the regression tell you about these vehicles? A plot might help of the several fits might help you.

## Answer to relevant Questions

Wine These data give ratings and prices of 257 red and white wines that appeared in Wine Spectator in 2009. For this analysis, we are interested in how the rating given to a wine is associated with its price, and if this ...A national real-estate developer builds luxury homes in three types of locations: urban cities (“city”), suburbs (“suburb”), and rural locations that were previously farmlands (“rural”). The response variable in ...Consider the data shown in the following plot. Each group has 12 cases. Do the means appear statistically significant? Estimate the p-value: Is it about 0.5, about 0.05, or less than 0.0001? A research chemist uses the following laboratory procedure. He considers the yield of 12 processes that produce synthetic yarn. He then conducts the two-sample t-test with a = 0.05 between the process with the lowest yield ...Rather than use a dummy variable (D, coded as 1 for men and 0 for women) as the explanatory variable in a regression of responses of men and women, a model included an explanatory variable X coded as +1 for men and -1 for ...Post your question