You are on page 1of 1

STAT 3110 Applied Regression Shaoyu Li, September 24, 2018

1 Homework 4, due on Tuesday, October 2nd


1. Thirty samples of cheddar cheese were analyzed for their content of acetic acid, hydro-
gen sulfide and lactic acid. Each sample was tasted and scored by a panel of judges
and the average tast score produced. Use the cheddar data in package faraway to fit
a regression model with taste as the response (y) and the three chemical contents as
predictor and answer the following:

• (a) Construct the analysis-of-variance table and test for significance of regression.
• (b) Calculate t statistics for testing the hypotheses H0 : β1 = 0 and H0 : β2 = 0,
respectively. What conclusions can you draw about the role the variables Acetic,
H2S play in the model?
• (c) Using the partial F test, determine the contribution of H2S to the model.
How is this partial F statistic related to the t-test for β2 calculated in part (e)?

2. Using the teengamb data, fit a model with gamble as the response and the other
variable as predictors.

• (a) Which variables are statistically significant at 5% level?


• (b) What interpretation should be given to the coefficient for sex?
• (c) Fit a model with just income as a predictor and use an F-test to compare
this model to the full model.

3. Using the sat data:

• (a) Fit a model with total sat score as the response and expend, ratio and
salary as predictors.
• (b) Test the hypothesis that H0 : βsalary = 0.
• (c) Test the hypothesis that H0 : βsalary = βratio = βexpend = 0. Do any of these
predictors have an effect on the response?
• (d) Now add takers to the model. Test the hypothesis that H0 : βtakers = 0.
Compare this model with the previous one using an F-test. Demonstrate that the
F-test and t-test here are equivalent.

You might also like