Business Statistics: A Decision-Making Approach, 6e © 2010 analyze and interpret the computer output for a multiple regression model test the significance of the independent variabl
Trang 1Business Statistics:
A Decision-Making Approach
6 th Edition
Chapter 14
Multiple Regression Analysis
and Model Building
Trang 2Business Statistics: A Decision-Making Approach, 6e © 2010
analyze and interpret the computer output for a
multiple regression model
test the significance of the independent variables
in a multiple regression model
Trang 3 recognize potential problems in multiple
regression analysis and take the steps to correct the problems.
incorporate qualitative variables into the
regression model by using dummy variables.
(continued)
Trang 4Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-The Multiple Regression
Model
Idea: Examine the linear relationship between
1 dependent (y) & 2 or more independent variables (x i )
ε x
β x
β x
β β
k k
2 2
1 1
Estimated multiple regression model:
Estimated intercept
Trang 5Multiple Regression Model
Two variable model
y
x
x 2
2 2 1
1
Slope fo r variab
le x2
Trang 6Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Multiple Regression Model
Two variable model
y
x 1
x 2
2 2 1
x 1i The best fit equation, y ,
is found by minimizing the sum of squared errors, e 2
Sample observation
Trang 7Multiple Regression
Assumptions
The errors are normally distributed
The mean of the errors is zero
Errors have a constant variance
The model errors are independent
e = (y – y)
Errors (residuals) from the regression model:
Trang 8Business Statistics: A Decision-Making Approach, 6e © 2010
Trang 9The Correlation Matrix
Correlation between the dependent variable and selected independent variables can be found
using Excel:
Tools / Data Analysis… / Correlation
Can check for statistical significance of
correlation with a t test
Trang 10Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Example
A distributor of frozen desert pies wants to
evaluate factors thought to influence demand
Dependent variable: Pie sales (units per week)
Independent variables: Price (in $)
Advertising ($100’s)
Data is collected for 15 weeks
Trang 11Pie Sales Model
Trang 12Business Statistics: A Decision-Making Approach, 6e © 2010
Example: if b 1 = -20, then sales (y) is expected to decrease by an estimated 20 pies per week for each $1 increase in selling price (x 1 ), net of the effects of
changes due to advertising (x 2 )
y-intercept (b 0 )
The estimated average value of y when all x i = 0 (assuming all x i = 0 is within the range of observed values)
Trang 13Pie Sales Correlation Matrix
Trang 14Business Statistics: A Decision-Making Approach, 6e © 2010
Trang 15Estimating a Multiple Linear
Regression Equation
Computer software is generally used to
generate the coefficients and measures of goodness of fit for multiple regression
Trang 16Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Multiple Regression Output
ce) 24.975(Pri -
306.526
Trang 17The Multiple Regression
Equation
ertising) 74.131(Adv
ce) 24.975(Pri
306.526
b 1 = -24.975: sales will decrease, on average, by 24.975 pies per week for each $1 increase in selling price, net of the effects of changes due to advertising
b 2 = 74.131: sales will increase, on average,
by 74.131 pies per week for each $100 increase in
advertising, net of the effects of changes due to price
where
Sales is in number of pies per week
Price is in $
Advertising is in $100’s.
Trang 18Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Using The Model to Make
Predictions
Predict sales for a week in which the selling
price is $5.50 and advertising is $350:
Predicted sales
is 428.62 pies
428.62
(3.5) 74.131
(5.50) 24.975
306.526
-ertising) 74.131(Adv
ce) 24.975(Pri
306.526 Sales
Trang 19Predictions in PHStat
PHStat | regression | multiple regression …
Check the
“confidence and prediction interval estimates” box
Trang 20Business Statistics: A Decision-Making Approach, 6e © 2010
Prediction interval for an individual y value, given these x’s
Trang 21Multiple Coefficient of
Determination
Reports the proportion of total variation in y
explained by all x variables taken together
squares of
sum Total
regression squares
of
Sum SST
SSR
Trang 22Business Statistics: A Decision-Making Approach, 6e © 2010
29460.0 SST
52.1% of the variation in pie sales
is explained by the variation in price and advertising
Multiple Coefficient of
Determination
(continued)
Trang 23Adjusted R 2
R 2 never decreases when a new x variable is
added to the model
This can be a disadvantage when comparing 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 explanatory power to offset the loss of one degree of freedom?
Trang 24Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice- Shows the proportion of variation in y explained by all
x variables adjusted for the number of x variables
used
(where n = sample size, k = number of independent variables)
n
1
n )
R 1
( 1
Trang 25Multiple Coefficient of
Determination
(continued)
Trang 26Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Is the Model Significant?
F-Test for Overall Significance of the Model
Shows if there is a linear relationship between all
of the x variables considered together and y
Use F test statistic
Hypotheses:
H 0 : β 1 = β 2 = … = β k = 0 (no linear relationship)
H A : at least one β i ≠ 0 (at least one independent
variable affects y)
Trang 27F-Test for Overall
Trang 28Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-6.5386 2252.8
14730.0 MSE
With 2 and 12 degrees
of freedom P-value for the F-Test
Trang 29The regression model does explain
a significant portion of the variation in pie sales
(There is evidence that at least one
MSR
F
Critical Value:
Trang 30Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Are Individual Variables
Significant?
Use t-tests of individual variable slopes
Shows if there is a linear relationship between the variable x i and y
Hypotheses:
H 0 : β i = 0 (no linear relationship)
H A : β i ≠ 0 (linear relationship does exist
between x i and y)
Trang 31Are Individual Variables
Significant?
H 0 : β i = 0 (no linear relationship)
H A : β i ≠ 0 (linear relationship does exist
between x i and y) Test Statistic:
Trang 32Business Statistics: A Decision-Making Approach, 6e © 2010
Trang 33The test statistic for each variable falls
in the rejection region (p-values < 05)
There is evidence that both Price and Advertising affect pie sales at = 05
From Excel output:
Reject H 0 for each variable
• •Coefficients •Standard Error •t Stat •P-value
Trang 34Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Confidence Interval Estimate
for the Slope
Confidence interval for the population slope β 1 (the effect of changes in price on pie sales):
between 1.37 to 48.58 pies for each increase of $1 in
the selling price
i
b 2
Trang 35Standard Deviation of the
Regression Model
The estimate of the standard deviation of the
regression model is:
MSE k
Trang 36Business Statistics: A Decision-Making Approach, 6e © 2010
Trang 37 The standard deviation of the regression model is 47.46
A rough prediction range for pie sales in a given
week is
Pie sales in the sample were in the 300 to 500
per week range, so this range is probably too large to be acceptable The analyst may want to look for additional variables that can explain more
of the variation in weekly sales
(continued)
Standard Deviation of the
Regression Model
94.2 2(47.46)
Trang 38Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Multicollinearity
Multicollinearity: High correlation exists
between two independent variables
This means the two variables contribute
redundant information to the multiple regression model
Trang 39 Including two highly correlated independent
variables can adversely affect the regression results
No new information provided
Can lead to unstable coefficients (large standard error and low t-values)
Coefficient signs may not match prior expectations
(continued)
Trang 40Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Some Indications of Severe
Multicollinearity
coefficient when a new variable is added to the model
insignificant when a new independent variable
is added
model increases when a variable is added to the model
Trang 41Detect Collinearity (Variance Inflationary Factor)
VIF j is used to measure collinearity:
If VIF j > 5, x j is highly correlated with
the other explanatory variables
R 2
j is the coefficient of determination when the j th
independent variable is regressed against the remaining k – 1 independent variables
Trang 42Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Detect Collinearity in PHStat
Output for the pie sales example:
Since there are only two explanatory variables, only one VIF
is reported
VIF is < 5
There is no evidence of collinearity between Price and Advertising
PHStat / regression / multiple regression …
Check the “variance inflationary factor (VIF)” box
Trang 43Qualitative (Dummy)
Variables
Categorical explanatory variable (dummy
variable) with two or more levels:
yes or no, on or off, male or female
coded as 0 or 1
Regression intercepts are different if the variable
is significant
Assumes equal slopes for other variables
The number of dummy variables needed is
(number of levels - 1)
Trang 44Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Dummy-Variable Model Example (with 2 Levels)
Let:
y = pie sales
x 1 = price
x 2 = holiday (X 2 = 1 if a holiday occurred during the week)
(X 2 = 0 if there was no holiday that week)
2 1
b
yˆ 1 2
Trang 45Same slope
Dummy-Variable Model
Example (with 2 Levels)
1 0
1 2
0 1
0
x b
b (0)
b x
b b
yˆ
x b )
b (b
(1) b
x b b
yˆ
1 2
1
1 2
Holiday
If H 0 : β 2 = 0 is rejected, then
“Holiday” has a significant effect
on pie sales
Trang 46Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Sales: number of pies sold per week
Price: pie price in $
b 2 = 15: on average, sales were 15 pies greater in
weeks with a holiday than in weeks without a
holiday, given the same price
) 15(Holiday 30(Price)
300
Trang 47Dummy-Variable Models
(more than 2 Levels)
The number of dummy variables is one less than the number of levels
Example:
y = house price ; x 1 = square feet
The style of the house is also thought to matter:
Style = ranch, split level, condo
Three levels, so two dummy
variables are needed
Trang 48Business Statistics: A Decision-Making Approach, 6e © 2010
0
level split
if
1 x
not
if 0
ranch if
1
3 2
1
b
yˆ 1 2 3
b 2 shows the impact on price if the house is a
ranch style, compared to a condo
b 3 shows the impact on price if the house is a
split level style, compared to a condo
(continued)
Let the default category be “condo”
Trang 49Interpreting the Dummy Variable Coefficients (with 3
With the same square feet, a ranch will have an estimated average price of 23.53
thousand dollars more than a
Suppose the estimated equation is
3 2
1 23.53x 18.84x 0.045x
20.43
18.84 0.045x
20.43
23.53 0.045x
20.43
1
0.045x 20.43
Trang 50Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice- The relationship between the dependent
variable and an independent variable may not
β x
β β
y 0 1 j 2 2 j
Trang 51Polynomial Regression Model
where:
β 0 = Population regression constant
β i = Population regression coefficient for variable x j : j = 1, 2, …k
p = Order of the polynomial
i = Model error
ε x
β x
β β
y 0 1 j 2 2 j
ε x
β x
β x
β β
y 0 1 j 2 2 j p p j
If p = 2 the model is a quadratic model:
General form:
Trang 52Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Linear fit does not give random residuals
Linear vs Nonlinear Fit
Nonlinear fit gives random residuals
Trang 53Quadratic Regression Model
Quadratic models may be considered when scatter
diagram takes on the following shapes:
y
β 1 < 0 β 1 > 0 β 1 < 0 β 1 > 0
β1 = the coefficient of the linear term
β = the coefficient of the squared term
x 1
ε x
β x
β β
y 0 1 j 2 2 j
β 2 > 0 β 2 > 0 β 2 < 0 β 2 < 0
Trang 54Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Testing for Significance:
Quadratic Model
F test statistic =
Compare quadratic model
with the linear model
Hypotheses
(No 2 nd order polynomial term)
(2 nd order polynomial term is needed)
ε x
β x
β β
j 2 j
1
ε x
β β
MSE MSR
Trang 55Higher Order Models
y
x
ε x
β x
β x
β β
y 0 1 j 2 2 j 3 3 j
If p = 3 the model is a cubic form:
Trang 56Business Statistics: A Decision-Making Approach, 6e © 2010
1 4 3
3
2 1 2 1
1
0 β x β x β x β x x β x x β
Trang 57x β x
β x
β β
Trang 58Business Statistics: A Decision-Making Approach, 6e © 2010
Trang 59Interaction Regression Model
Trang 60Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-ε x
x β x
β x
β β
Trang 61 Lower probability of collinearity
Stepwise regression procedure
Provide evaluation of alternative models as variables are added
Best-subset approach
Try all combinations and select the best using the highest adjusted R 2 and lowest s ε
Trang 62Business Statistics: A Decision-Making Approach, 6e © 2010
equation in steps, either through forward selection , backward elimination , or through
standard stepwise regression
The coefficient of partial determination is the
measure of the marginal contribution of each independent variable, given that other
independent variables are in the model
Stepwise Regression
Trang 63Best Subsets Regression
using all possible combinations of independent variables
Choose the best fit by looking for the highest
adjusted R 2 and lowest standard error s ε
Stepwise regression and best subsets regression can be performed using PHStat, Minitab, or other statistical software packages
Trang 64Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-Aptness of the Model
Diagnostic checks on the model include verifying the assumptions of multiple
regression:
Each x i is linearly related to y
Errors have constant variance
Errors are independent
Error are normally distributed
) yˆ y
(
Errors (or Residuals) are given by
Trang 66Business Statistics: A Decision-Making Approach, 6e © 2010
Prentice-The Normality Assumption
Errors are assumed to be normally distributed
Standardized residuals can be calculated by
computer
Examine a histogram or a normal probability plot
of the standardized residuals to check for normality
Trang 67Chapter Summary
Developed the multiple regression model
Tested the significance of the multiple
regression model
Developed adjusted R 2
Tested individual regression coefficients
Used dummy variables
Examined interaction in a multiple regression
model
Trang 68Business Statistics: A Decision-Making Approach, 6e © 2010
Best subsets regression
Examined residual plots to check model
assumptions
(continued)