ch13 Multiple Regression
ch13 Multiple Regression
Introduction to Multiple
Regression
Yi β 0 β1X1i β 2 X 2i β k X ki ε i
ˆ b b X b X b X
Yi 0 1 1i 2 2i k ki
In this chapter we will use Excel to obtain the regression
slope coefficients and other regression summary measures.
X1
e
abl
i
var
r
fo
ope X2
Sl
varia ble X 2
pe fo r
Slo
X1
Copyright © 2016 Pearson Education, Ltd. Chapter 13, Slide 5
Example: 2 Independent Variables
R Square 0.52148
Adjusted R Square 0.44172
Standard Error 47.46341 Sales 306.526 - 24.975(Price) 74.131(Advertising)
Observations 15
ANOVA df SS MS F Significance F
Regression 2 29460.027 14730.013 6.53861 0.01201
Residual 12 27033.306 2252.776
Total 14 56493.333
Check the
“confidence and
prediction interval
estimates” box
Input values
<
Predicted Y value
Regression Statistics
2 SSR 29460.0
Multiple R 0.72213
r .52148
R Square 0.52148 SST 56493.3
Adjusted R Square 0.44172
52.1% of the variation in pie sales
Standard Error 47.46341
is explained by the variation in
Observations 15
price and advertising
ANOVA df SS MS F Significance F
Regression 2 29460.027 14730.013 6.53861 0.01201
Residual 12 27033.306 2252.776
Total 14 56493.333
models
What is the net effect of adding a new variable?
We lose a degree of freedom when a new X
variable is added
Did the new X variable add enough
2 2 n 1
radj 1 (1 r )
n k 1
(where n = sample size, k = number of independent variables)
Regression Statistics
Multiple R 0.72213
MSR 14730.0
R Square 0.52148
FSTAT 6.5386
Adjusted R Square 0.44172 MSE 2252.8
Standard Error 47.46341
With 2 and 12 degrees P-value for
Observations 15 of freedom the F Test
ANOVA df SS MS F Significance F
Regression 2 29460.027 14730.013 6.53861 0.01201
Residual 12 27033.306 2252.776
Total 14 56493.333
<
ei = (Yi – Yi)
Assumptions:
The errors are normally distributed
Test Statistic:
bj 0
t STAT (df = n – k – 1)
Sb
j
Regression Statistics
Multiple R 0.72213
t Stat for Price is tSTAT = -2.306, with
R Square 0.52148 p-value .0398
Adjusted R Square 0.44172
Standard Error 47.46341 t Stat for Advertising is tSTAT = 2.855,
Observations 15 with p-value .0145
ANOVA df SS MS F Significance F
Regression 2 29460.027 14730.013 6.53861 0.01201
Residual 12 27033.306 2252.776
Total 14 56493.333
b j tα / 2 Sb where t has
(n – k – 1) d.f.
j
Ŷ b0 b1 X1 b 2 X 2
Let:
Y = pie sales
X1 = price
X2 = holiday (X2 = 1 if a holiday occurred during the week)
(X2 = 0 if there was no holiday that week)
Ŷ b0 b1 X1 b 2 (0) b0 b1 X1 No Holiday
Different Same
intercept slope
Y (sales)
If H0: β2 = 0 is
b0 + b 2
Holi rejected, then
day
b0 (X = “Holiday” has a
No H 2 1)
olida significant effect
y (X
2 = 0 on pie sales
)
X1 (Price)
Copyright © 2016 Pearson Education, Ltd. Chapter 13, Slide 32
Interpreting the Dummy Variable
Coefficient (with 2 Levels)
Example: Sales 300 - 30(Price) 15(Holiday)
Sales: number of pies sold per week
Price: pie price in $
1 If a holiday occurred during the week
Holiday:
0 If no holiday occurred
Ŷ b0 b1X1 b 2 X 2 b3 X3
b0 b1X1 b 2 X 2 b3 (X1X 2 )
Copyright © 2016 Pearson Education, Ltd. Chapter 13, Slide 34
Effect of Interaction
4 X2 = 0:
Y = 1 + 2X1 + 3(0) + 4X1(0) = 1 + 2X1
0
X1
0 0.5 1 1.5
Slopes are different if the effect of X1 on Y depends on X2 value
Copyright © 2016 Pearson Education, Ltd. Chapter 13, Slide 36
Chapter Summary