Professional Documents
Culture Documents
Regression Models: Eaching Uggestions
Regression Models: Eaching Uggestions
4
C H A P T E R
Regression Models
Teaching Suggestion 4.3: Give students a set of data and have \Y = 80 \X = 184 \(X — X¯¯ )2 = 774 \(X — X¯¯ )(Y — Y¯¯ ) = 306
them plot the data and manually draw a line through the data. A 80 184
Y 10; X 23
discussion of which line is “best” can help them appreciate the 8 8
least squares criterion.
Teaching Suggestion 4.4: Select some randomly generated values b1 = 306/774 = 0.395
for X and Y (you can use random numbers from the random b0 = 10 — 0.395(23) = 0.915
number table in Chapter 15 or use the RAND function in Excel). The estimated regression equation is
Develop a regression line using Excel and discuss the coefficient
of determination and the F-test. Students will see that a regression Yˆ = 0.915 + 0.395X
line can always be developed, but it may not necessarily be useful. or
Teaching Suggestion 4.5: A discussion of the long formulas and Apartments leased = 0.915 + 0.395 ads placed
short-cut formulas that are provided in the appendix is helpful. If the number of ads is 30, we can estimate the number of apart-
The long formulas provide students with a better understanding ments leased with the regression equation
of the meaning of the SSE and SST. Since many people use
0.915 + 0.395(30) = 12.76 or 13 apartments
computers for regression problems, it helps to see the original
formulas. The short-cut formulas are helpful if students are Alternative Example 4.2: Given the data on ads and apartment
performing the computations on a calculator. rentals in Alternative Example 4.1, find the coefficient of determi-
nation. The following have been computed in the table that
follows:
ALTERNATIVE EXAMPLES
SST = 150; SSE = 29.02; SSR = 120.76
Alternative Example 4.1: The sales manager of a large apart-
ment rental complex feels the demand for apartments may be (Note: Round-off error may cause this to be slightly different than
related to the number of newspaper ads placed during the previous a computer solution.)
month. She has collected the data shown in the accompanying
table.
46
€
CHAPTER 4 R E G R E S S I O N M O D E LS 47
4-10. b.
Demand TV
Appearances (X — X¯¯ (Y — Y¯¯ (X — X¯¯ )(Y — Yˆ (Y — (Yˆ —
Y X )2 )2 Y¯¯ ) Yˆ ) 2 Y¯¯ )2
3 3 6.25 12.25 8.75 4 1 6.25
6 4 2.25 0.25 0.75 5 1 2.25
7 7 2.25 0.25 0.75 8 1 2.25
5 6 0.25 2.25 —0.75 7 4 0.25
10 8 6.25 12.25 8.75 9 1 6.25
8 5 0.25 2.25 —0.75 6 4 0.25
\Y = 39.0 \XX¯¯
== 33
5.5 17.5 29.5 17.5 12 17.5
Y¯¯ = 6.5
SS SSE SSR
SST = 29.5; SSE = 12; SSR = 17.5
b1 = 17.5/17.5 = 1
b0 = 6.5 — 1(5.5) = 1
The regression equation is Yˆ = 1 + 1X.
c. Yˆ = 1 + 1X = 1 + 1(6) = 7.
4-11. See the table for the solution to problem 4-10 to obtain
some of these numbers.
MSE = SSE/(n — k — 1) = 12/(6 — 1 — 1) = 3
MSR = SSR/k = 17.7/1 = 17.5
F = MSR/MSE = 17.5/3 = 5.83
df1 = k = 1
df2 = n — k — 1 = 6 — 1 — 1 = 4
F0.05, 1, 4 = 7.71
Do not reject H0 since 5.83 < 7.71. Therefore, we cannot conclude
there is a statistically significant relationship at the 0.05 level.
4-13.
Fin. Test
1
Ave,(Y) (X) (X — (Y — Y¯¯ (X — X¯¯ )(Y — Y¯¯ Y (Y — (Yˆ — Y¯¯
X¯¯ )2 )2 ) Yˆ ) 2 )2
93 98 285.2 196 236.444 91.5 2.264 156.135
35
78 77 16.90 1 4.11 76 4.168 9.252
1 1
84 88 47.45 25 34.444 84.1 0.009 25.977
7
73 80 1.235 36 6.66 78.2 26.811 0.676
7
84 96 221.6 25 74.444 90 36.188 121.345
79
64 61 404.4 225 301.667 64.1 0.015 221.396
57
64 66 228.3 225 226.667 67.8 14.592 124.994
46
95 95 192.9 256 222.222 89.3 32.766 105.592
01
76 69 146.6 9 36.333 70 35.528 80.291
79
711 730 1544. 998 1143 152.34 845.659
9 1
b1 = 1143/1544.9 = 0.740
b0 = (711/9) — 0.740 (730/9) = 18.99
CHAPTER 4 R E G R E S S I O N M O D E LS 49
Ridership (100,000s)
35
MSR = SSR/k = 845.659/1 = 845.659
F = MSR/MSE = 845.659/21.76 = 38.9 30
df1 = k = 1 25
df2 = n — k — 1 = 9 — 1 — 1 = 7 20
F0.05, 1, 7 = 5.59 15
Because 38.9 > 5.59, we can conclude (at the 0.05 level) that 10
there is a statistically significant relationship between the first test
grade and the final average. 5
All of these models are significant at the 0.01 level or less. The If both SAT and a dummy variable (X2 = 1 for private, 0
best model uses age as the independent variable. The coefficient otherwise) are used to predict the cost, we get r2 = 0.79. The
of determination is highest for this, and it is significant. model is
4-23. Yˆ = 5701.45 + 48.51X1 — 2540.39X2 and r2 = 0.65. Yˆ = 7121.8 + 5.16X1 + 9354.99X2.
This says that a private school tends to be about $9,355 more ex-
Yˆ = 5701.45 + 48.51(2000) — 2540.39(3) =
pensive than a public school when the median SAT score is used
95,100.28. to adjust for the quality of the school. The coefficient of
Notice the r2 value is the same as it was in the previous problem determination indicates that about 79% of the variability in cost
with just square footage as the independent variable. Adding the can be explained by these factors. The model is significant at the
number of bedrooms did not add any significant information that 0.001 level.
was not already captured by the square footage. It should not be
included in the model. The r 2 for this is lower than for age alone in 4-31. Yˆ 67.8 0.0145X
the previous problem. There is a significant relationship between the number of victories
4-24. Yˆ = 82185.5 + 25.94X1 — 2151.7X2 — 1711.5X3 and (Y) and the payroll (X) at the 0.054 level, which is marginally sig-
r = 0.89.
2 nificant. However, r2 = 0.24, so the relationship is not very strong.
Only about 24% of the variability in victories is explained by this
Yˆ = 82185.5 + 25.94(2000) — 2151.7(3) — 1711.5(10)
model.
= $110,495.4.
4-32. a. Yˆ 42.43 0.0004X
4-25. Yˆ = 3071.885 + 6.5326X
where
b. Yˆ 31.54 0.0058X
Y = DJIA and X = S&P.
r = 0.84 and r2 = 0.70.
c. The correlation coefficient for the first stock is only
Yˆ = 3071.885 + 6.5326(1100) = 10257.8 (rounded) 0.19 while the correlation coefficient for the second is
4-26. With one independent variable, beds, in the model, r2 = 0.96. Thus, there is a much stronger correlation between
0.88. With just admissions in the model, r2 = 0.974. When both stock 2 and the DJI than there is for stock 1 and the DJI.
variables are in the model, r2 = 0.975. Thus, the model with only
admissions as the independent variable is the best. Adding the CASE STUDIES
number of beds had virtually no impact on r2, and the adjusted r2
decreased slightly. Thus, the best model is Yˆ = 1.518 + SOLUTION TO NORTH–SOUTH AIRLINE CASE
0.6686X Northern Airline Data
where Y = expense and X = admissions.
Airframe Engine Cost Average Age
4-27. Using Excel with Y = MPG; X1 = horsepower; X2 = Year Cost per per Aircraft (Hours)
weight the models are: Aircraft
Yˆ = 53.87 — 0.269X1; r2 = 0.77 2001 51.8 43.49 6,512
0
Yˆ = 57.53 — 0.01X2; r2 = 0.73.
2002 54.9 38.58 8,404
Thus, the model with horsepower as the independent variable is 2
better since r2 is higher. 2003 69.7 51.48 11,077
0
4-28.
Yˆ = 57,69 — 0.17X1 — 0.005X2 2004 68.9 58.72 11,717
0
where
Y = MPG
X1 = horsepower Southeast Airline Data
X2 = weight
r2 = 0.82. Airframe Engine Cost Average Age
Year Cost per per Aircraft (Hours)
This model is better because the coefficient of determination is much higher
Aircraft
with both variables than it is with either one individually.
2001 13.29 18.86 5,107
4-29. Let Y = MPG; X1 = horsepower; X2 = weight 2002 25.15 31.55 8,145
The model Yˆ = b + b X + b X 2 is Yˆ = 69.93 —0.620X + 2003 32.18 40.43 7,360
0.001747X 2 2004 31.78 22.10 5,773
0 1 1 2 1 1
r2 2005 25.34 19.69 7,150
1 and has = 0.798. 2006 32.78 32.58 9,364
The model Yˆ = b0 + b3X2 + b X 2 is Yˆ = 89.09 — 0.0337X2 + 2007 35.56 38.07 8,259
4 2
0.0000039X22 and has r2 = 0.800. Utilizing QM for Windows, we can develop the following regres-
The model Yˆ = b0 + b1X1 + b2 X1 2 + b3X2 + b 4X 22 is Yˆ = 89.2 sion equations for the variables of interest.
—
0.51X1 + 0.001889X 2 — 0.01615X + 0.00000162X 2 and has r2 =
1 2 2
0.883. This model has a higher r2 value than the model in 4-28. A Yˆ = —7793.1 + 21.8X1 with r2 = 0.22.
graph of the data would show a nonlinear relationship.
4-30. If SAT median score alone is used to predict the cost,
we get
Northern Airline—airframe maintenance cost:
Cost = 36.10 +
0.0025 (airframe age)
Coefficient of
determination =
0.7694 Coefficient of
correlation = 0.8771
CHAPTER 4 R E G R E S S I O N M O D E LS 51
Northern Airline
Southeast Airline
90
90
80
80
70
70
60
60
Cost ($)
Cost ($)
50
50
40
40
30 Airframe Engine
30 Airframe Engine
20
20
10
5 7 9 11 13 15 17 19 10
5 7 9 11 13 15 17 19
Average Airframe Age (Thousands)
Average Airframe Age (Thousands)