Docsity

Final Exam on Statistical Methods II | STAT 516, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Statistics 516 - Spring 2003 - Final Exam
Part I: Answer the two following questions. Five points each.
1) In performing a regression, ANOVA, or ANCOVA, what four assumptions must be satisfied?
2) Define what is meant by the p-value (or empirical significance level) of a test.
Part II: Answer fifteen of the following sixteen questions. Six points each.
Questions 1-4 refer to the attached results for performing a multiple regression using the data set trees. Note
that some parts of the output have been whited out.
1) Complete the model equation for this regression, identifying the parameters used. [NOT the estimated model
equation!]
yi=
yi = weight of the ith tree
2) Which of the trees had the most extreme set of x-values? What statistic did you use to tell this?
3) What set of these variables forms the best regression model for predicting the weight of trees? What did you
use to tell this?
4) What problems with the assumptions are apparent from the residual vs. predicted plot? Suggest a
transformation that might fix this problem.
Questions 5-8 refer to the attached results for performing an ANOVA on the data set roast.
5) Briefly explain why this model is balanced, factorial, with replications, and fixed effects.
6) The DF, SS, MS, and F for oven have been deleted. What should they be?
7) What hypothesis is being tested by the contrast c1? (Define the needed model parameters and identify it in
terms of those.)
8) Is the assumption of equal variances met? How can you tell?
Questions 9-12 refer to the attached results for performing an ANCOVA on the data set pigs. Use α=0.05 if
needed.
9) Assume the assumption of equal slopes is met. Is there a significant difference in the 9 week weight in pigs
for the different weaning stages?
10) Assume the assumption of equal slopes is met. What is the estimated standard deviation of the errors in this
model for predicting the 9 week weight of pigs?
11) Assume the assumption of equal slopes is met. What percent of the variation in 9 week weight in pigs that
is explained by this model using wwt and stage?
12) Is the assumption of equal slopes met for this model? (How could you tell?)
Questions 13-16 refer to the attached results for performing a logistic regression on the data set donner.
13) Does a logistic regression seem to fit this data at α=0.05? (What test did you use to tell this?)
14) Assuming that the logistic regression does fit this data, is the age of the party member related to their
chance of survival at an α=0.05 level? (What test did you use to tell this?)
15) What is the predicted chance of a 15 year old surviving the journey?
16) Why can’t you trust the answer you gave in 15?
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Final Exam on Statistical Methods II | STAT 516 and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

Statistics 516 - Spring 2003 - Final Exam

Part I: Answer the two following questions. Five points each.

1) In performing a regression, ANOVA, or ANCOVA, what four assumptions must be satisfied?

2) Define what is meant by the p-value (or empirical significance level) of a test.

Part II: Answer fifteen of the following sixteen questions. Six points each.

Questions 1-4 refer to the attached results for performing a multiple regression using the data set trees. Note

that some parts of the output have been whited out.

1) Complete the model equation for this regression, identifying the parameters used. [NOT the estimated model

equation!]

y i =

y i = weight of the i

th

tree

2) Which of the trees had the most extreme set of x-values? What statistic did you use to tell this?

3) What set of these variables forms the best regression model for predicting the weight of trees? What did you

use to tell this?

4) What problems with the assumptions are apparent from the residual vs. predicted plot? Suggest a

transformation that might fix this problem.

Questions 5-8 refer to the attached results for performing an ANOVA on the data set roast.

5) Briefly explain why this model is balanced, factorial, with replications, and fixed effects.

6) The DF, SS, MS, and F for oven have been deleted. What should they be?

7) What hypothesis is being tested by the contrast c1? (Define the needed model parameters and identify it in

terms of those.)

8) Is the assumption of equal variances met? How can you tell?

Questions 9-12 refer to the attached results for performing an ANCOVA on the data set pigs. Use α=0.05 if

needed.

9) Assume the assumption of equal slopes is met. Is there a significant difference in the 9 week weight in pigs

for the different weaning stages?

10) Assume the assumption of equal slopes is met. What is the estimated standard deviation of the errors in this

model for predicting the 9 week weight of pigs?

11) Assume the assumption of equal slopes is met. What percent of the variation in 9 week weight in pigs that

is explained by this model using wwt and stage?

12) Is the assumption of equal slopes met for this model? (How could you tell?)

Questions 13-16 refer to the attached results for performing a logistic regression on the data set donner.

13) Does a logistic regression seem to fit this data at α=0.05? (What test did you use to tell this?)

14) Assuming that the logistic regression does fit this data, is the age of the party member related to their

chance of survival at an α=0.05 level? (What test did you use to tell this?)

15) What is the predicted chance of a 15 year old surviving the journey?

16) Why can’t you trust the answer you gave in 15?

Lumber companies find it beneficial to get estimates of the weight of a tree before it is harvested. Several

things that could be used in constructing this estimate are:

dbh = diameter at breast height (about 4’ from the ground) in inches

height = height of the tree in feet

age = age of the tree, in years (can be gotten from a drilling

grav = specific gravity of the wood (can be gotten from a small sample)

A sample of 47 trees from one are is given in the data set trees below.

DATA trees; INPUT dbh height age grav weight; CARDS; 5.7 34 10 0.409 174 8.1 68 17 0.501 745 8.3 70 17 0.445 814 7 54 17 0.442 408 6.2 37 12 0.353 226 11.4 79 27 0.429 1675 11.6 70 26 0.497 1491 4.5 37 12 0.38 121 3.5 32 15 0.42 58 6.2 45 15 0.449 278 5.7 48 20 0.471 220 6 57 20 0.447 342 5.6 40 20 0.439 209 4 44 27 0.394 84 6.7 52 21 0.422 313 4 38 27 0.496 60 12.1 74 27 0.476 1692 4.5 37 12 0.382 74 8.6 60 23 0.502 515 9.3 63 18 0.458 766 6.5 57 18 0.474 345 5.6 46 12 0.413 210 4.3 41 12 0.382 100 4.5 42 12 0.457 122 7.7 64 19 0.478 539 8.8 70 22 0.496 815 5 53 23 0.485 194 5.4 61 23 0.488 280 6 56 23 0.435 296

PROC INSIGHT;

OPEN trees;

FIT weight = dbh height age grav;

RUN;

PROC REG DATA=trees;

MODEL weight = dbh height age grav /

SELECTION = RSQUARE ADJRSQ CP;

RUN;

The REG Procedure

R-Square Selection Method

Number in Adjusted Model R-Square R-Square C(p) Variables in Model 1 0.9060 0.9039 7.6190 dbh 1 0.7050 0.6984 115.7834 height 1 0.2517 0.2351 359.7342 age 1 0.1690 0.1505 404.2852 grav


2 0.9132 0.9092 5.7264 dbh age 2 0.9105 0.9064 7.1779 dbh grav 2 0.9070 0.9028 9.0654 dbh height 2 0.7162 0.7033 111.7335 height grav 2 0.7058 0.6925 117.3348 height age 2 0.3040 0.2723 333.6343 age grav


3 0.9212 0.9157 3.3967 dbh age grav 3 0.9143 0.9084 7.1053 dbh height grav 3 0.9132 0.9071 7.7223 dbh height age 3 0.7178 0.6981 112.8908 height age grav


4 0.9220 0.9145 5.0000 dbh height age grav

47

10

31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47

Int dbh

Int height 48 50 50 31 27 39 35 48 47 69 49 44 34 38 61 47 33

Int age 19 19 19 10 10 10 19 13 13 13 13 13 13 13 13 13 13

Int grav

Int weight 200 229 125 84 70 224 99 200 214 712 297 238 89 76 614 194 66

Int R_weight -93.

-30.

-7. -73.

Int P_weight

-15. -115.

-2.

-33. -5.

-44.

Int H_weight

Int RT_weight -0.

-0.

-0. -0.

Int F_weight -0.

-0.

-0. -0.

47

10

1 2 3 4 5 6 7 8 9

Int dbh

5 5

Int height 34 68 70 54 37 79 70 37 32 45 48 57 40 44 52 38 74 37 60 63 57 46 41 42 64 70 53 61 56 52 48 50

Int age 10 17 17 17 12 27 26 12 15 15 20 20 20 27 21 27 27 12 23 18 18 12 12 12 19 22 23 23 23 14 19 19

Int grav

0 506

Int weight 174 745 814 408 226 1675 1491 121 58 278 220 342 209 84 313 60 1692 74 515 766 345 210 100 122 539 815 194 280 296 462 200 229

Int R_weight -75.

-118. -197.

-70. -63. -38. -80. -51. -214.

-25. -272. -157. -71. -56.

-98. -24.

-120. -65. -93. 25 8492

Int P_weight

-101.

203 1508

Int H_weight

0 1107

Int RT_weight -0.

-1. -1.

-0. -0. -0. -0. -0. -1.

-0. -2. -1. -0. -0.

-0. -0.

-1. -0. -0. 0 2355

Int F_weight -0.

-0. -1.

-0. -0. -0. -0. -0. -0.

-0. -0. -0. -0. -0.

-0. -0.

-0. -0. -0. 0 0831

The following data set roast concerns one of the most pressing needs of our era, how what is the most fuel

efficient way to cook a roast! Two factors were of particular interest: oven - was it pre-heated or not, and

roast - was it fresh, frozen, thawed for 12-hours or thawed for 24 hours. The response variable is the total

amount of gas required by the oven.

DATA roast;

INPUT oven $ roast $ gas ;

CARDS;

NOTPRE FRESH 21.
NOTPRE FRESH 17.
NOTPRE FRESH 23.
NOTPRE FRESH 18.
NOTPRE FRESH 26.
PRE FRESH 19.
PRE FRESH 8.
PRE FRESH 17.
PRE FRESH 9.
PRE FRESH 18.
NOTPRE 24-THAW 24.
NOTPRE 24-THAW 24.
NOTPRE 24-THAW 23.
NOTPRE 24-THAW 21.
NOTPRE 24-THAW 22.
PRE 24-THAW 22.
PRE 24-THAW 22.
PRE 24-THAW 21.
PRE 24-THAW 26.
PRE 24-THAW 26.
PRE 12-THAW 26.
PRE 12-THAW 24.
PRE 12-THAW 23.
PRE 12-THAW 19.
PRE 12-THAW 29.
NOTPRE 12-THAW 22.
NOTPRE 12-THAW 21.
NOTPRE 12-THAW 29.
NOTPRE 12-THAW 21.
NOTPRE 12-THAW 26.
PRE FROZEN 25.
PRE FROZEN 28.
PRE FROZEN 25.
PRE FROZEN 26.
PRE FROZEN 26.
NOTPRE FROZEN 31.
NOTPRE FROZEN 19.
NOTPRE FROZEN 22.
NOTPRE FROZEN 28.
NOTPRE FROZEN 24.

PROC GLM DATA=roast ORDER=data;

CLASS oven roast;

MODEL gas = oven roast oven*roast;

CONTRAST ‘c1’ roast 3 -1 -1 -1 / divisor=3;

RUN;

DATA roast2;

SET roast;

KEEP block gas;

block = trim(oven)||trim(roast);

RUN;

The following data set concerns the effect of weaning conditions on the weights of pigs. Weights were

recorded for three litters. One was weaned early (21 days), another was weaned 28 days (medium), and the last

was weaned late (35 days). The weight at weaning (wwt) and weight at 9 weeks (fwt) are shown. The goal is to

predict the fwt.

DATA pigs;

INPUT stage $ wwt fwt;

CARDS;

EARLY 9 37

EARLY 9 28

EARLY 12 40

EARLY 11 45

EARLY 15 44

EARLY 15 50

EARLY 14 45

MEDIUM 16 48

MEDIUM 16 45

MEDIUM 15 47

MEDIUM 14 46

MEDIUM 14 40

MEDIUM 12 36

MEDIUM 10 33

LATE 18 45

LATE 17 38

LATE 16 35

LATE 15 38

LATE 14 34

LATE 14 37

LATE 13 37

PROC GLM DATA=pigs;

CLASS stage;

MODEL fwt = wwt stage;

RUN;

PROC GLM DATA=pigs;

CLASS stage;

MODEL fwt = wwt stage wwt*stage;

RUN;

The GLM Procedure

Sum of Source DF Squares Mean Square F Value Pr > F Model 3 471.3186813 157.1062271 13.65 <. Error 17 195.6336996 11. Corrected Total 20 666.

R-Square Coeff Var Root MSE fwt Mean 0.706675 8.400803 3.392324 40.

Source DF Type I SS Mean Square F Value Pr > F wwt 1 181.5000733 181.5000733 15.77 0. stage 2 289.8186081 144.9093040 12.59 0.

Source DF Type III SS Mean Square F Value Pr > F wwt 1 394.0805861 394.0805861 34.24 <. stage 2 289.8186081 144.9093040 12.59 0.

Parameter Estimates Variable

Intercept stage

wwt

stage

EARLY
LATE
MEDIUM
DF

Estimate

-7. 0

Std Error

.

t Stat

-3. .

Pr >|t|

. <.

Tolerance .

.

Var Inflation 0

.

35 40 45 P_fwt

0

5 R _ f w t

-1 0 1 RN_fwt

0

5 R _ f w t

Source DF Type III SS Mean Square F Value Pr > F wwt 1 325.6941535 325.6941535 27.25 0. stage 2 5.9107156 2.9553578 0.25 0. wwt*stage 2 16.3788118 8.1894059 0.69 0.