6
Text Exercise 4.43 (a) 1 for level A X = 0 otherwise Y = 0 + 1 X + or E(Y) = 0 + 1 X 0 = 1 = the mean of Y for level B the amount that the mean of Y for level A exceeds the mean of Y for level B Do this by first defining the appropriate dummy variable(s), then writing a regression model, and finally writing a statement interpreting each parameter in the model. Homework #16 Score____________ / 10 Name ______________

Text Exercise 4.43 (a) 1 for level A X = 0 otherwise Y = 0 + 1 X + or E(Y) = 0 + 1 X 0 = 1 = the mean of Y for level B the amount that the

Embed Size (px)

Citation preview

Page 1: Text Exercise 4.43 (a) 1 for level A X = 0 otherwise Y =  0 +  1 X +  or E(Y) =  0 +  1 X  0 =  1 = the mean of Y for level B the amount that the

Text Exercise 4.43 (a)

1 for level AX =

0 otherwise

Y = 0 + 1X + or E(Y) = 0 + 1X

0 =

1 =

the mean of Y for level B

the amount that the mean of Y for level A exceeds the mean of Y for level B

Do this by first defining the appropriate dummy variable(s), then writing a regression model, and finally writing a statement interpreting each parameter in the model.

Homework #16 Score____________/ 10 Name ______________

Page 2: Text Exercise 4.43 (a) 1 for level A X = 0 otherwise Y =  0 +  1 X +  or E(Y) =  0 +  1 X  0 =  1 = the mean of Y for level B the amount that the

(b)

1 for level AX1 =

0 otherwise

Y = 0 + 1X1 + 2X2 + 3X3 + or E(Y) = 0 + 1X1 + 2X2 + 3X3

0 =

1 =

2 =

3 =

the mean of Y for level D

the amount that the mean of Y for level A exceeds the mean of Y for level D

Do this by first defining the appropriate dummy variable(s), then writing a regression model, and finally writing a statement interpreting each parameter in the model.

1 for level BX2 =

0 otherwise

1 for level CX3 =

0 otherwise

the amount that the mean of Y for level B exceeds the mean of Y for level D

the amount that the mean of Y for level C exceeds the mean of Y for level D

Page 3: Text Exercise 4.43 (a) 1 for level A X = 0 otherwise Y =  0 +  1 X +  or E(Y) =  0 +  1 X  0 =  1 = the mean of Y for level B the amount that the

Additional HW Exercise 5.1

(a)

(b)

A study is being conducted to see if corn yield in bushels per acre can be predicted from monthly rainfall in inches and average daily temperature in OF. Data observed on several randomly selected farms has been stored in the SPSS data file corn.

yld = 0 + 1(rain) + 2(temp) +

Write a first-order model for the prediction of corn yield from monthly rainfall and average daily temperature.

Use the Analyze > Regression > Linear options in SPSS to obtain SPSS output displaying the ANOVA table and coefficients in the least squares prediction equation for the first-order model in part (a). To have the mean and standard deviation displayed for the dependent and independent variables, click on the Statistics button, and select the Descriptives option.

Title the output to identify the homework exercise (Additional HW Exercise 5.1 - part (b)), your name, today’s date, and the course number (Math 214).

Use the File > Print Preview options to see if any editing is needed before printing the output. Attach the output to this assignment before submission.

Page 4: Text Exercise 4.43 (a) 1 for level A X = 0 otherwise Y =  0 +  1 X +  or E(Y) =  0 +  1 X  0 =  1 = the mean of Y for level B the amount that the

(c) Summarize the results (Step 4) of the f test to see if there is sufficient evidence that the prediction of corn yield from monthly rainfall and average daily temperature is significant at the 0.05 level.

Since f2,21 = 3566.914 and f2,21;0.05 = 3.47, we have sufficient evidence to reject H0 . We conclude that the prediction of corn yield from monthly rainfall and average daily temperature is significant (P < 0.01).

OR (P < 0.001)

Page 5: Text Exercise 4.43 (a) 1 for level A X = 0 otherwise Y =  0 +  1 X +  or E(Y) =  0 +  1 X  0 =  1 = the mean of Y for level B the amount that the

Additional HW Exercise 5.1 - continued (d)

(e)

In order to see if we can improve prediction, the complete second order model is now considered. Write a complete second-order model for the prediction of corn yield using the complete second order model with independent variables rainfall and temperature.

yld = 0 + 1(rain) + 2(temp) + 12(rain)(temp) + 11(rain)2 + 22(temp)2 +

Use SPSS to create three new variables, one named raintemp equal to the product of the variables rainfall and temperature, one named rain2 equal to the square of rainfall, and one named temp2 equal to the square of temperature.

Use the Analyze > Regression > Linear options in SPSS to obtain SPSS output displaying the ANOVA table and coefficients in the least squares prediction equation for the complete second-order model in part (d). Since you only need the ANOVA table and the coefficients in the least squares prediction equation, you may choose to delete all other sections of the SPSS output.

Title the output to identify the homework exercise (Additional HW Exercise 5.1- part (e)), your name, today’s date, and the course number (Math 214).

Use the File > Print Preview options to see if any editing is needed before printing the output. Attach the output to this assignment before submission.

Page 6: Text Exercise 4.43 (a) 1 for level A X = 0 otherwise Y =  0 +  1 X +  or E(Y) =  0 +  1 X  0 =  1 = the mean of Y for level B the amount that the

(f) Summarize the results (Step 4) of the f test to see if there is sufficient evidence that the prediction of corn yield using the complete second order model with independent variables rainfall and temperature is significant at the 0.05 level.

Since f5,18 = 15482.454 and f5,18;0.05 = 2.77, we have sufficient evidence to reject H0 . We conclude that the prediction of corn yield using the complete second order model with independent variables rainfall and temperature is significant (P < 0.01).

OR (P < 0.001)