Docsity

Regression Analysis: Predicting Standby Hours with VIF Values, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
MATH 202 Multiple Regression - Choosing Best Model- John Climent Page 1
Steps Involved in Model Building:
1. Choose a set of independent variables.
2. Fit regression model with VIF values.
3. If any VIF > 5, then eliminate variable with highest VIF, if all VIF ≤ 5, then proceed to step 5.
4. Fit regression model with VIF values for the new model – with the variable deleted.
5. Perform best-subsets regression with remaining explanatory variables.
6. List all models that have Cp ≤ (p + 1), where p is the number of variables in the model.
7. Among models listed in step 6, choose the best model using the best-subset criteria listed below.
8. Perform complete analysis of model chosen including residual analysis and influence analysis.
9. Revise your model if the complete analysis indicates a revision. Possible revisions include: adding
curvilinear terms, transforming variables, deleting individual observations. Reanalyze data.
10. Use the selected model for prediction and confidence intervals.
Best-Subset Regression:
In best subset regression we look at the following three statistics and the parsimony principle.as follows:
1. CP - We want the value of CP to be less than or equal to p + 1. (Note: CP is a measure of the fit of the
model.)
2. S - We want our estimate for the standard deviation to be as small as possible. Note: SMSE=, so
when S is large, the denominator of our F-ratio, FMSR
MSE
=
, is also large, which makes the F-ratio smaller
and possibly statistically insignificant.
3. Radj
2- We want the value of Radj
2to be as close to 1 (100%) as possible without creating other problems
such as multicollinearity.
4. Parsimony Principle - We balance the above three statistics with the parsimony principle that states a
model with fewer variables is preferred to one with many variables. In essence, a slightly lower value
of S or a slightly higher vale of R2adj does not justify a model with additional variables. Once we have
picked our model we must check for departure from model assumptions. Interpretability is another
criteria in choosing a model. If transformations are used, then they may be hard to interpret.
Data set: Standby. The Director of Broadcasting Operations for a television station wants to study the issue of “standby hours,”
which are hours where unionized graphic artists at the station are paid but are not actually involved in any activity. We are trying to
predict the total number of Standby Hours per Week (Y). Possible explanatory variables are: Total Staff Present (X1), Remote Hours
(X2), Dubner Hours (X3) and Total Labor Hours (X4). The results for 26 weeks are given below.
Standby
Hours
Y
Staff
Present
X1
Remote
Hours
X2
Dubner
Hours
X3
Labor
Hours
X4
Standby
Hours
Y
Staff
Present
X1
Remote
Hours
X2
Dubner
Hours
X3
Labor
Hours
X4
245 338 414 323 2001 161 307 402 207 1720
177 333 598 340 2030 274 322 151 287 2056
271 358 656 340 2226 245 335 228 290 1890
211 372 631 352 2154 201 350 271 355 2187
196 339 528 380 2078 183 339 440 300 2032
135 289 409 339 2080 237 327 475 284 1856
195 334 382 331 2073 175 328 347 337 2068
118 293 399 311 1758 152 319 449 279 1813
116 325 343 328 1624 188 325 336 244 1808
147 311 338 353 1889 188 322 267 253 1834
154 304 353 518 1988 197 317 235 272 1973
146 312 289 440 2049 261 315 164 223 1839
115 283 388 276 1796 232 331 270 272 1935
Regression Analysis: Standby versus Staff, Remote, Dubner, Labor
pf3
pf4
pf5
pf8

Partial preview of the text

Download Regression Analysis: Predicting Standby Hours with VIF Values and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

Steps Involved in Model Building:

1. Choose a set of independent variables.

2. Fit regression model with VIF values.

3. If any VIF > 5, then eliminate variable with highest VIF, if all VIF ≤ 5, then proceed to step 5.

4. Fit regression model with VIF values for the new model – with the variable deleted.

5. Perform best-subsets regression with remaining explanatory variables.

6. List all models that have Cp ≤ (p + 1), where p is the number of variables in the model.

7. Among models listed in step 6, choose the best model using the best-subset criteria listed below.

8. Perform complete analysis of model chosen including residual analysis and influence analysis.

9. Revise your model if the complete analysis indicates a revision. Possible revisions include: adding

curvilinear terms, transforming variables, deleting individual observations. Reanalyze data.

10. Use the selected model for prediction and confidence intervals.

Best-Subset Regression:

In best subset regression we look at the following three statistics and the parsimony principle.as follows:

1. CP - We want the value of CP to be less than or equal to p + 1. (Note: C P is a measure of the fit of the

model.)

2. S - We want our estimate for the standard deviation to be as small as possible. Note: S = MSE , so

when S is large, the denominator of our F-ratio, F = MSRMSE , is also large, which makes the F-ratio smaller

and possibly statistically insignificant.

3. R adj

2

- We want the value of Radj

2

to be as close to 1 (100%) as possible without creating other problems

such as multicollinearity.

4. Parsimony Principle - We balance the above three statistics with the parsimony principle that states a

model with fewer variables is preferred to one with many variables. In essence, a slightly lower value

of S or a slightly higher vale of R

2

adj does not justify a model with additional variables. Once we have

picked our model we must check for departure from model assumptions. Interpretability is another

criteria in choosing a model. If transformations are used, then they may be hard to interpret.

Data set: Standby. The Director of Broadcasting Operations for a television station wants to study the issue of “standby hours,”

which are hours where unionized graphic artists at the station are paid but are not actually involved in any activity. We are trying to

predict the total number of Standby Hours per Week (Y). Possible explanatory variables are: Total Staff Present (X 1 ), Remote Hours

(X 2), Dubner Hours (X 3) and Total Labor Hours (X 4). The results for 26 weeks are given below.

Standby

Hours

Y

Staff

Present

X 1

Remote

Hours

X 2

Dubner

Hours

X 3

Labor

Hours

X 4

Standby

Hours

Y

Staff

Present

X 1

Remote

Hours

X 2

Dubner

Hours

X 3

Labor

Hours

X 4

Regression Analysis: Standby versus Staff, Remote, Dubner, Labor

The regression equation is Standby = - 331 + 1.25 Staff - 0.118 Remote - 0.297 Dubner + 0.131 Labor

Predictor Coef SE Coef T P VIF Constant -330.8 110.9 -2.98 0. Staff 1.2456 0.4121 3.02 0.006 1. Remote -0.11842 0.05432 -2.18 0.041 1. Dubner -0.2971 0.1179 -2.52 0.020 1.

Labor 0.13053 0.05932 2.20 0.039 2.0 Note: all VIF < 5, proceed with best-subset regression.

S = 31.8350 R-Sq = 62.3% R-Sq(adj) = 55.1%

Analysis of Variance Source DF SS MS F P Regression 4 35182 8795 8.68 0. Residual Error 21 21283 1013 Total 25 56465

Durbin-Watson statistic = 2.

Minitab Printout of Best Subset Regression.

Best Subsets Regression: Standby versus Staff, Remote, Dubner, Labor

Response is Standby R D S e u L t m b a a o n b Mallows f t e o Vars R-Sq R-Sq(adj) C-p S f e r r 1 36.6 34.0 13.3 38.621 X 1 17.1 13.7 24.2 44.162 X 2 49.0 44.6 8.4 35.387 X X 2 45.0 40.2 10.6 36.749 X X 3 53.8 47.5 7.8 34.443 X X X 3 53.6 47.3 7.8 34.503 X X X

4 62.3 55.1 5.0 31.835 X X X X C P = p+1 = 5, S is lowest, R 2 adj is highest.

The last model with all for variables is the most appropriate one. It is the only one with a CP value within the limits, its value of S is

considerable smaller than that of the other models, and it has the highest value of R^2 adj. Note: R^2 adj is fairly low (55.1%), so one might

want look for additional variables to explain standby hours.

Regression Analysis: Standby versus Staff, Remote, Dubner, Labor

The regression equation is Standby = - 331 + 1.25 Staff - 0.118 Remote - 0.297 Dubner + 0.131 Labor

Predictor Coef SE Coef T P VIF Constant -330.8 110.9 -2.98 0.

Staff 1.2456 0.4121 3.02 0.006 1.7 Reject H 0 : β 1 = 0 at α=0 05.

Remote -0.11842 0.05432 -2.18 0.041 1.2 Reject H 0 : β 2 = 0 at α=0 05.

Dubner -0.2971 0.1179 -2.52 0.020 1.5 Reject H 0 : β 3 = 0 at α=0 05.

Labor 0.13053 0.05932 2.20 0.039 2.0 Reject H 0 : β 4 = 0 at α=0 05.

S = 31.8350 R-Sq = 62.3% R-Sq(adj) = 55.1%

Analysis of Variance Source DF SS MS F P

Regression 4 35182 8795 8.68 0.000 Reject H 0 : β 1 = β 2 = β 3 = β 4 = 0 at α=0 05.

Residual Error 21 21283 1013 Total 25 56465

Residual Analysis:

Observation Order

Residual

2 4 6 8 10 12 14 16 18 20 22 24 26

75

50

25

0

Residuals Versus the Order of the Data (response is Standby)

RESI

75

50

25

0

Boxplot of RESI

Note: in the plots above, the only assumption that appears to be violated is the normality assumption. Let’s look for outliers

before we make a decision about what to do about the lack of normality.

Outliers: The estimated standard deviation is s = 31.84, and 3s = 95.52. An examination of the residuals, which are be

calculated in Minitab, shows that observation 11 has the residual with the greatest magnitude (58.8515). Since this value does

not exceed 3s = 95.52, we conclude that there are no outliers. In addition, the box plot of residuals also shows that there are

no outliers.

Hospital Data Set:

Let’s look at a different data set called Hospital as shown in the following table. Here the response variable is Monthly Man Hours

(ManHrs) and the possible explanatory variables are: Average Daily Patient Load (Daily), Monthly X-Ray Exposures (X-Ray),

Monthly Occupied Bed Days (Beds), Eligible Population in the Area (Pop) and Average Length of Patient’s Stay in Days (Stay).

Y

ManHrs

X 1

Daily

X 2

X-Ray

X 3

Beds

X 4

Pop

X 5

Stay

Y

ManHrs

X 1

Daily

X 2

X-Ray

X 3

Beds

X 4

Pop

X 5

Stay

2 696.8^ 44.020^2048 1339.8^ 9.500^ 6.9200^ 11 3571.9^ 96.000^13313 2912.0^ 60.900^ 5.

7 1854.2^ 55.480^5779 1687.0^ 43.300^ 5.6200^ 16 15414.9^ 463.700^39204 14098.4^ 331.400^ 7.

Regression Analysis: Man-Hrs versus Daily, X-Ray, Beds, Pop, Stay

Full 5-Variable Model Yi = β 0 + β 1 X 1 i + β 2 X 2 i + β 3 X 3 i + β 4 X 4 i + β 5 X 5 i +ε i :

The regression equation is Man-Hrs = 2114 + 26.4 Daily + 0.0560 X-Ray + 0.242 Beds - 5.73 Pop - 428 Stay

Predictor Coef SE Coef T P VIF Constant 2114 1016 2.08 0.

Daily 26.36 24.58 1.07 0.307 599.8 Highest VIF > 5: eliminate this variable, X 1 , from the model.

X-Ray 0.05603 0.02145 2.61 0.024 8. Beds 0.2416 0.7333 0.33 0.748 498. Pop -5.727 6.123 -0.94 0.370 16. Stay -427.8 194.7 -2.20 0.050 3.

S = 646.574 R-Sq = 99.1% R-Sq(adj) = 98.6%

Regression Analysis: Man-Hrs versus X-Ray, Beds, Pop, Stay

Second 4-Variable Model Yi = β 0 + β 2 X (^) 2 i + β 3 X (^) 3 i + β 4 X (^) 4 i + β 5 X 5 i +ε i

The regression equation is Man-Hrs = 1788 + 0.0563 X-Ray + 1.01 Beds - 2.03 Pop - 354 Stay

Predictor Coef SE Coef T P VIF Constant 1788.5 976.1 1.83 0. X-Ray 0.05635 0.02158 2.61 0.023 8.

Beds 1.0108 0.1527 6.62 0.000 21.4 Highest VIF > 5: eliminate this variable, X 3 , from the model.

Pop -2.031 5.091 -0.40 0.697 11. Stay -354.1 183.3 -1.93 0.077 3.

S = 650.597 R-Sq = 99.0% R-Sq(adj) = 98.6%

Regression Analysis: Man-Hrs versus X-Ray, Pop, Stay

Third 3-Variable Model Yi = β 0 + β 2 X (^) 2 i + β 4 X (^) 4 i + β 5 X 5 i +ε i

The regression equation is Man-Hrs = - 3075 + 0.130 X-Ray + 21.2 Pop + 584 Stay

Predictor Coef SE Coef T P VIF Constant -3075 1331 -2.31 0. X-Ray 0.12957 0.03838 3.38 0.005 5.

Pop 21.215 7.636 2.78 0.016 6.0 Highest VIF> 5: eliminate this variable, X 4 , from the model.

Stay 584.4 240.5 2.43 0.030 1.

S = 1347.82 R-Sq = 95.2% R-Sq(adj) = 94.1%

Regression Analysis: Man-Hrs versus X-Ray, Stay

Fourth 2-Variable Model Yi = β 0 + β 2 X (^) 2 i + β 5 X 5 i +ε i

The regression equation is Man-Hrs = - 3136 + 0.224 X-Ray + 686 Stay

Predictor Coef SE Coef T P VIF Constant -3136 1619 -1.94 0.

X-Ray 0.22419 0.02153 10.41 0.000 1.2 Finally all VIF < 5.

Stay 685.9 289.2 2.37 0.033 1.

S = 1639.68 R-Sq = 92.4% R-Sq(adj) = 91.3%

Analysis of Variance

Source DF SS MS F P Regression 2 457072923 228536462 85.00 0. Residual Error 14 37639598 2688543 Total 16 494712521

Source DF Seq SS X-Ray 1 441952456 Stay 1 15120467

Unusual Observations

Obs X-Ray Man-Hrs Fit SE Fit Residual St Resid 15 34703 11732 12038 1354 -306 -0.33 X 16 39204 15415 10489 583 4926 3.21R 17 86533 18854 20619 1473 -1765 -2.45RX

R denotes an observation with a large standardized residual. X denotes an observation whose X value gives it large influence.

The regression equation is Man-Hrs = - 2746 + 0.210 X-Ray + 606 Stay

Predictor Coef SE Coef T P VIF Constant -2746.2 862.4 -3.18 0. X-Ray 0.21048 0.01166 18.05 0.000 1. Stay 605.8 154.2 3.93 0.002 1.

S = 870.960 R-Sq = 97.4% R-Sq(adj) = 97.0%

Analysis of Variance Source DF SS MS F P Regression 2 369123913 184561957 243.30 0. Residual Error 13 9861419 758571 Total 15 378985332

Let’s check this reduced data set model for outliers. Our

estimate for the standard deviation is s = 871 and 3s = 2613.

None of the observations has a residual with a magnitude that

exceeds 3s = 2613. This is also confirmed by the box plot of the

residuals shown on the right.

RESI

1000

500

0

Boxplot of RESI

Residual Analysis:

RESI

Percent

-3000 -2000 -1000 0 1000 2000 3000

99

95 90 80 70 60 50 40 30 20 10 5

1

Mean

-2.55795E- StDev 810. N 16 AD 0. P-Value

Probability Plot of RESI Normal - 95% CI

Fitted Value

Residual

0 5000 10000 15000 20000

1000

500

0

Residuals Versus the Fitted Values (response is Man-Hrs)

X-Ray

Residual

0 10000 20000 30000 40000 50000 60000 70000 80000 90000

1000

500

0

Residuals Versus X-Ray (response is Man-Hrs)

Stay

Residual

3 4 5 6 7 8 9 10 11

1000

500

0

Residuals Versus Stay (response is Man-Hrs)

The above graphs indicate that normality is met and that the other assumptions (equal variances & independence of errors)

are also met, so this last model is our final model.