SlideShare a Scribd company logo
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Statistics for
Business and Economics
7th Edition
Chapter 13
Additional Topics in
Regression Analysis
Ch. 13-1
Chapter Goals
After completing this chapter, you should be
able to:
 Explain regression model-building methodology
 Apply dummy variables for categorical variables with
more than two categories
 Explain how dummy variables can be used in
experimental design models
 Incorporate lagged values of the dependent variable is
regressors
 Describe specification bias and multicollinearity
 Examine residuals for heteroscedasticity and
autocorrelation
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-2
The Stages of Model Building
 Understand the
problem to be studied
 Select dependent and
independent variables
 Identify model form
(linear, quadratic…)
 Determine required
data for the study
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Model Specification
Coefficient Estimation
Model Verification
Interpretation and Inference
*
Ch. 13-3
13.1
The Stages of Model Building
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Model Specification
Coefficient Estimation
Model Verification
Interpretation and Inference
 Estimate the
regression coefficients
using the available
data
 Form confidence
intervals for the
regression coefficients
 For prediction, goal is
the smallest se
 If estimating individual
slope coefficients,
examine model for
multicollinearity and
specification bias
*
(continued)
Ch. 13-4
The Stages of Model Building
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Model Specification
Coefficient Estimation
Model Verification
Interpretation and Inference
 Logically evaluate
regression results in
light of the model (i.e.,
are coefficient signs
correct?)
 Are any coefficients
biased or illogical?
 Evaluate regression
assumptions (i.e., are
residuals random and
independent?)
 If any problems are
suspected, return to
model specification
and adjust the model
*
(continued)
Ch. 13-5
The Stages of Model Building
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Model Specification
Coefficient Estimation
Model Verification
Interpretation and Inference
 Interpret the regression
results in the setting
and units of your study
 Form confidence
intervals or test
hypotheses about
regression coefficients
 Use the model for
forecasting or
prediction*
(continued)
Ch. 13-6
Dummy Variable Models
(More than 2 Levels)
 Dummy variables can be used in situations in which the
categorical variable of interest has more than two
categories
 Dummy variables can also be useful in experimental
design
 Experimental design is used to identify possible
causes of variation in the value of the dependent
variable
 Y outcomes are measured at specific combinations
of levels for treatment and blocking variables
 The goal is to determine how the different treatments
influence the Y outcome
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-7
13.2
Dummy Variable Models
(More than 2 Levels)
 Consider a categorical variable with K levels
 The number of dummy variables needed is one
less than the number of levels, K – 1
 Example:
y = house price ; x1 = square feet
 If style of the house is also thought to matter:
Style = ranch, split level, condo
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Three levels, so two dummy
variables are needed
Ch. 13-8
Dummy Variable Models
(More than 2 Levels)
 Example: Let “condo” be the default category, and let
x2 and x3 be used for the other two categories:
y = house price
x1 = square feet
x2 = 1 if ranch, 0 otherwise
x3 = 1 if split level, 0 otherwise
The multiple regression equation is:
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
3322110 xbxbxbby ˆ
(continued)
Ch. 13-9
Interpreting the Dummy Variable
Coefficients (with 3 Levels)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
18.840.045x20.43y 1 ˆ
23.530.045x20.43y 1 ˆ
With the same square feet, a
ranch will have an estimated
average price of 23.53
thousand dollars more than a
condo
With the same square feet, a
split-level will have an
estimated average price of
18.84 thousand dollars more
than a condo.
Consider the regression equation:
321 18.84x23.53x0.045x20.43y ˆ
10.045x20.43y ˆ
For a condo: x2 = x3 = 0
For a ranch: x2 = 1; x3 = 0
For a split level: x2 = 0; x3 = 1
Ch. 13-10
Experimental Design
 Consider an experiment in which
 four treatments will be used, and
 the outcome also depends on three environmental factors that
cannot be controlled by the experimenter
 Let variable z1 denote the treatment, where z1 = 1, 2, 3,
or 4. Let z2 denote the environment factor (the
“blocking variable”), where z2 = 1, 2, or 3
 To model the four treatments, three dummy variables
are needed
 To model the three environmental factors, two dummy
variables are needed
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-11
Experimental Design
 Define five dummy variables, x1, x2, x3, x4, and x5
 Let treatment level 1 be the default (z1 = 1)
 Define x1 = 1 if z1 = 2, x1 = 0 otherwise
 Define x2 = 1 if z1 = 3, x2 = 0 otherwise
 Define x3 = 1 if z1 = 4, x3 = 0 otherwise
 Let environment level 1 be the default (z2 = 1)
 Define x4 = 1 if z2 = 2, x4 = 0 otherwise
 Define x5 = 1 if z2 = 3, x5 = 0 otherwise
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
(continued)
Ch. 13-12
Experimental Design:
Dummy Variable Tables
 The dummy variable values can be
summarized in a table:
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Z1 X1 X2 X3
1 0 0 0
2 1 0 0
3 0 1 0
4 0 0 1
Z2 X4 X5
1 0 0
2 1 0
3 0 1
Ch. 13-13
Experimental Design Model
 The experimental design model can be
estimated using the equation
 The estimated value for β2 , for example,
shows the amount by which the y value for
treatment 3 exceeds the value for treatment 1
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
εxβxβxβxβxββy 5i54i43i32i21i10i ˆ
Ch. 13-14
Lagged Values of the
Dependent Variable
 In time series models, data is collected over time
(weekly, quarterly, etc…)
 The value of y in time period t is denoted yt
 The value of yt often depends on the value yt-1,
as well as other independent variables xj :
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
t1tKtK2t21t10t εyxβxβxββy  γ
A lagged value of the dependent
variable is included as an
explanatory variable
Ch. 13-15
13.3
Interpreting Results
in Lagged Models
 An increase of 1 unit in the independent variable xj in
time period t (all other variables held fixed), will lead
to an expected increase in the dependent variable of
 j in period t
 j  in period (t+1)
 j2 in period (t+2)
 j3 in period (t+3) and so on
 The total expected increase over all current and
future time periods is j/(1-)
 The coefficients 0, 1, . . . ,K,  are estimated by
least squares in the usual manner
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-16
 Confidence intervals and hypothesis
tests for the regression coefficients are
computed the same as in ordinary
multiple regression
 (When the regression equation contains
lagged variables, these procedures are only
approximately valid. The approximation
quality improves as the number of sample
observations increases.)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Interpreting Results
in Lagged Models
(continued)
Ch. 13-17
 Caution should be used when using
confidence intervals and hypothesis tests
with time series data
 There is a possibility that the equation errors
i are no longer independent from one
another.
 When errors are correlated the coefficient
estimates are unbiased, but not efficient.
Thus confidence intervals and hypothesis
tests are no longer valid.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Interpreting Results
in Lagged Models
(continued)
Ch. 13-18
Specification Bias
 Suppose an important independent variable
z is omitted from a regression model
 If z is uncorrelated with all other included
independent variables, the influence of z is
left unexplained and is absorbed by the error
term, ε
 But if there is any correlation between z and
any of the included independent variables,
some of the influence of z is captured in the
coefficients of the included variables
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-19
13.4
Specification Bias
 If some of the influence of omitted variable z
is captured in the coefficients of the included
independent variables, then those coefficients
are biased…
 …and the usual inferential statements from
hypothesis test or confidence intervals can be
seriously misleading
 In addition the estimated model error will
include the effect of the missing variable(s)
and will be larger
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
(continued)
Ch. 13-20
Multicollinearity
 Collinearity: High correlation exists among two
or more independent variables
 This means the correlated variables contribute
redundant information to the multiple regression
model
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-21
13.5
Multicollinearity
 Including two highly correlated explanatory
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
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
(continued)
Ch. 13-22
Some Indications of
Strong Multicollinearity
 Incorrect signs on the coefficients
 Large change in the value of a previous
coefficient when a new variable is added to the
model
 A previously significant variable becomes
insignificant when a new independent variable
is added
 The estimate of the standard deviation of the
model increases when a variable is added to
the model
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-23
Detecting Multicollinearity
 Examine the simple correlation matrix to
determine if strong correlation exists between
any of the model independent variables
 Multicollinearity may be present if the model
appears to explain the dependent variable well
(high F statistic and low se ) but the individual
coefficient t statistics are insignificant
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-24
Assumptions of Regression
 Normality of Error
 Error values (ε) are normally distributed for any given
value of X
 Homoscedasticity
 The probability distribution of the errors has constant
variance
 Independence of Errors
 Error values are statistically independent
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-25
Residual Analysis
 The residual for observation i, ei , is the difference
between its observed and predicted value
 Check the assumptions of regression by examining the
residuals
 Examine for linearity assumption
 Examine for constant variance for all levels of X
(homoscedasticity)
 Evaluate normal distribution assumption
 Evaluate independence assumption
 Graphical Analysis of Residuals
 Can plot residuals vs. X
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
iii yye ˆ
Ch. 13-26
Residual Analysis for Linearity
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Not Linear Linear

x
residuals
x
Y
x
Y
x
residuals
Ch. 13-27
Residual Analysis for
Homoscedasticity
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Non-constant variance  Constant variance
x x
Y
x x
Y
residuals
residuals
Ch. 13-28
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Residual Analysis for
Independence
Not Independent
Independent
X
X
residuals
residuals
X
residuals

Ch. 13-29
Excel Residual Output
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
House Price Model Residual Plot
-60
-40
-20
0
20
40
60
80
0 1000 2000 3000
Square Feet
Residuals
RESIDUAL OUTPUT
Predicted
House Price Residuals
1 251.92316 -6.923162
2 273.87671 38.12329
3 284.85348 -5.853484
4 304.06284 3.937162
5 218.99284 -19.99284
6 268.38832 -49.38832
7 356.20251 48.79749
8 367.17929 -43.17929
9 254.6674 64.33264
10 284.85348 -29.85348
Does not appear to violate
any regression assumptions
Ch. 13-30
Heteroscedasticity
 Homoscedasticity
 The probability distribution of the errors has constant
variance
 Heteroscedasticity
 The error terms do not all have the same variance
 The size of the error variances may depend on the
size of the dependent variable value, for example
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-31
13.6
Heteroscedasticity
 When heteroscedasticity is present:
 least squares is not the most efficient
procedure to estimate regression coefficients
 The usual procedures for deriving confidence
intervals and tests of hypotheses is not valid
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-32
(continued)
Tests for Heteroscedasticity
 To test the null hypothesis that the error terms, εi, all have
the same variance against the alternative that their
variances depend on the expected values
 Estimate the simple regression
 Let R2 be the coefficient of determination of this new
regression
The null hypothesis is rejected if nR2 is greater than 2
1,
 where 2
1, is the critical value of the chi-square random variable
with 1 degree of freedom and probability of error 
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
iyˆ
i10
2
i yaae ˆ
Ch. 13-33
Autocorrelated Errors
 Independence of Errors
 Error values are statistically independent
 Autocorrelated Errors
 Residuals in one time period are related to
residuals in another period
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-34
13.7
Autocorrelated Errors
 Autocorrelation violates a least squares
regression assumption
 Leads to sb estimates that are too small (i.e., biased)
 Thus t-values are too large and some variables may
appear significant when they are not
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-35
(continued)
Autocorrelation
 Autocorrelation is correlation of the errors
(residuals) over time
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
 Violates the regression assumption that
residuals are random and independent
Time (t) Residual Plot
-15
-10
-5
0
5
10
15
0 2 4 6 8
Time (t)
Residuals Here, residuals show
a cyclic pattern, not
random
Ch. 13-36
The Durbin-Watson Statistic
 The Durbin-Watson statistic is used to test for
autocorrelation
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
H0: successive residuals are not correlated
(i.e., Corr(εt,εt-1) = 0)
H1: autocorrelation is present
Ch. 13-37
The Durbin-Watson Statistic
 The Durbin-Watson test statistic (d):
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall





 n
1t
2
t
n
2t
2
1tt
e
)e(e
d
 The possible range is 0 ≤ d ≤ 4
 d should be close to 2 if H0 is true
 d less than 2 may signal positive
autocorrelation,
 d greater than 2 may signal
negative autocorrelation
H0: ρ = 0 (no autocorrelation)
H1: autocorrelation is present
Ch. 13-38
Testing for Positive
Autocorrelation
 Calculate the Durbin-Watson test statistic = d
 d can be approximated by d = 2(1 – r) , where r is the sample
correlation of successive errors
 Find the values dL and dU from the Durbin-Watson table
 (for sample size n and number of independent variables K)
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Decision rule: reject H0 if d < dL
H0: positive autocorrelation does not exist
H1: positive autocorrelation is present
0 dU 2dL
Reject H0 Do not reject H0Inconclusive
Ch. 13-39
Negative Autocorrelation
 Negative autocorrelation exists if successive
errors are negatively correlated
 This can occur if successive errors alternate in sign
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Decision rule for negative autocorrelation:
reject H0 if d > 4 – dL
0 dU 2dL
Reject H0
Do not reject H0
Inconclusive Reject H0Inconclusive
4 – dU 4 – dL 4
0ρ  0ρ 
Ch. 13-40
Testing for Positive
Autocorrelation
 Example with n = 25:
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
Durbin-Watson Calculations
Sum of Squared Difference
of Residuals 3296.18
Sum of Squared Residuals 3279.98
Durbin-Watson Statistic 1.00494
y = 30.65 + 4.7038x
R
2
= 0.8976
0
20
40
60
80
100
120
140
160
0 5 10 15 20 25 30
Time
Sales
(continued)
1.00494
3279.98
3296.18
e
)e(e
d n
1t
2
t
n
2t
2
1tt








Ch. 13-41
Testing for Positive
Autocorrelation
 Here, n = 25 and there is k = 1 independent variable
 Using the Durbin-Watson table, dL = 1.29 and dU = 1.45
 D = 1.00494 < dL = 1.29, so reject H0 and conclude that
significant positive autocorrelation exists
 Therefore the linear model is not the appropriate model
to forecast sales
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
(continued)
Decision: reject H0 since
D = 1.00494 < dL
0 dU=1.45 2dL=1.29
Reject H0 Do not reject H0Inconclusive
Ch. 13-42
Dealing with Autocorrelation
 Suppose that we want to estimate the coefficients of the
regression model
where the error term εt is autocorrelated
 Two steps:
(i) Estimate the model by least squares, obtaining the
Durbin-Watson statistic, d, and then estimate the
autocorrelation parameter using
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall
tktk2t21t10t εxβxβxββy  
2
d
1r 
Ch. 13-43
Dealing with Autocorrelation
(ii) Estimate by least squares a second regression with
 dependent variable (yt – ryt-1)
 independent variables (x1t – rx1,t-1) , (x2t – rx2,t-1) , . . ., (xk1t – rxk,t-1)
 The parameters 1, 2, . . ., k are estimated regression
coefficients from the second model
 An estimate of 0 is obtained by dividing the estimated
intercept for the second model by (1-r)
 Hypothesis tests and confidence intervals for the
regression coefficients can be carried out using the
output from the second model
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-44
Chapter Summary
 Discussed regression model building
 Introduced dummy variables for more than two
categories and for experimental design
 Used lagged values of the dependent variable as
regressors
 Discussed specification bias and multicollinearity
 Described heteroscedasticity
 Defined autocorrelation and used the Durbin-
Watson test to detect positive and negative
autocorrelation
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-45

More Related Content

What's hot

Malhotra17
Malhotra17Malhotra17
APPLICATION OF CORRELATION AND CASE STUDY
APPLICATION OF CORRELATION AND CASE STUDYAPPLICATION OF CORRELATION AND CASE STUDY
APPLICATION OF CORRELATION AND CASE STUDY
ANKUSH
 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
Farzad Javidanrad
 
Econometrics theory and_applications_with_eviews
Econometrics theory and_applications_with_eviewsEconometrics theory and_applications_with_eviews
Econometrics theory and_applications_with_eviews
Deiven Jesus Palpa
 
Time series analysis
Time series analysis Time series analysis
Time series analysis
Shivam Dhawan
 
Anova and T-Test
Anova and T-TestAnova and T-Test
Anova and T-Test
AD Sarwar
 
Analysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to knowAnalysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to know
Stat Analytica
 
Factor Analysis (Marketing Research)
Factor Analysis (Marketing Research)Factor Analysis (Marketing Research)
Factor Analysis (Marketing Research)
Mohammad Saif Alam
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U Test
John Barlow
 
Correlation analysis notes
Correlation analysis notesCorrelation analysis notes
Correlation analysis notes
Japheth Muthama
 
Discriminant Analysis in Sports
Discriminant Analysis in SportsDiscriminant Analysis in Sports
Discriminant Analysis in Sports
J P Verma
 
Univariate analysis:Medical statistics Part IV
Univariate analysis:Medical statistics Part IVUnivariate analysis:Medical statistics Part IV
Univariate analysis:Medical statistics Part IV
Ramachandra Barik
 
Malhotra12
Malhotra12Malhotra12
Nonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec domsNonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec doms
Babasab Patil
 
Hypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit testHypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit test
Nadeem Uddin
 
Drug design intro
Drug design introDrug design intro
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentationcae_021
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
Professional Training Academy
 

What's hot (20)

Malhotra17
Malhotra17Malhotra17
Malhotra17
 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
 
APPLICATION OF CORRELATION AND CASE STUDY
APPLICATION OF CORRELATION AND CASE STUDYAPPLICATION OF CORRELATION AND CASE STUDY
APPLICATION OF CORRELATION AND CASE STUDY
 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
 
Econometrics theory and_applications_with_eviews
Econometrics theory and_applications_with_eviewsEconometrics theory and_applications_with_eviews
Econometrics theory and_applications_with_eviews
 
Time series analysis
Time series analysis Time series analysis
Time series analysis
 
Anova and T-Test
Anova and T-TestAnova and T-Test
Anova and T-Test
 
Analysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to knowAnalysis of variance (ANOVA) everything you need to know
Analysis of variance (ANOVA) everything you need to know
 
Factor Analysis (Marketing Research)
Factor Analysis (Marketing Research)Factor Analysis (Marketing Research)
Factor Analysis (Marketing Research)
 
Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U Test
 
Correlation analysis notes
Correlation analysis notesCorrelation analysis notes
Correlation analysis notes
 
Discriminant Analysis in Sports
Discriminant Analysis in SportsDiscriminant Analysis in Sports
Discriminant Analysis in Sports
 
Univariate analysis:Medical statistics Part IV
Univariate analysis:Medical statistics Part IVUnivariate analysis:Medical statistics Part IV
Univariate analysis:Medical statistics Part IV
 
Multiple regression
Multiple regressionMultiple regression
Multiple regression
 
Malhotra12
Malhotra12Malhotra12
Malhotra12
 
Nonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec domsNonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec doms
 
Hypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit testHypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit test
 
Drug design intro
Drug design introDrug design intro
Drug design intro
 
Spearman Rank Correlation Presentation
Spearman Rank Correlation PresentationSpearman Rank Correlation Presentation
Spearman Rank Correlation Presentation
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 

Similar to Chap13 additional topics in regression analysis

Newbold_chap14.ppt
Newbold_chap14.pptNewbold_chap14.ppt
Newbold_chap14.ppt
cfisicaster
 
Chapter 10 Section 3.ppt
Chapter 10 Section 3.pptChapter 10 Section 3.ppt
Chapter 10 Section 3.ppt
ManoloTaquire
 
14 ch ken black solution
14 ch ken black solution14 ch ken black solution
14 ch ken black solutionKrunal Shah
 
Diagnostic methods for Building the regression model
Diagnostic methods for Building the regression modelDiagnostic methods for Building the regression model
Diagnostic methods for Building the regression model
Mehdi Shayegani
 
Chap02 describing data; numerical
Chap02 describing data; numericalChap02 describing data; numerical
Chap02 describing data; numerical
Judianto Nugroho
 
Chapter 7 Section 3.ppt
Chapter 7 Section 3.pptChapter 7 Section 3.ppt
Chapter 7 Section 3.ppt
ManoloTaquire
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learning
Sadia Zafar
 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression Analysis
HARISH Kumar H R
 
2 UNIT-DSP.pptx
2 UNIT-DSP.pptx2 UNIT-DSP.pptx
2 UNIT-DSP.pptx
PothyeswariPothyes
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
TanyaWadhwani4
 
Moderation and Meditation conducting in SPSS
Moderation and Meditation conducting in SPSSModeration and Meditation conducting in SPSS
Moderation and Meditation conducting in SPSS
Osama Yousaf
 
Optimization
OptimizationOptimization
Optimization
kamlesh wadher
 
Chap14 analysis of categorical data
Chap14 analysis of categorical dataChap14 analysis of categorical data
Chap14 analysis of categorical data
Judianto Nugroho
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Denni Domingo
 
Lecture6 xing
Lecture6 xingLecture6 xing
Lecture6 xing
Tianlu Wang
 
Experimental design
Experimental designExperimental design
Experimental designSandip Patel
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSS
csula its training
 
Chap05 continuous random variables and probability distributions
Chap05 continuous random variables and probability distributionsChap05 continuous random variables and probability distributions
Chap05 continuous random variables and probability distributions
Judianto Nugroho
 
chap4_Parametric_Methods.ppt
chap4_Parametric_Methods.pptchap4_Parametric_Methods.ppt
chap4_Parametric_Methods.ppt
ShayanChowdary
 
Tree net and_randomforests_2009
Tree net and_randomforests_2009Tree net and_randomforests_2009
Tree net and_randomforests_2009Matthew Magistrado
 

Similar to Chap13 additional topics in regression analysis (20)

Newbold_chap14.ppt
Newbold_chap14.pptNewbold_chap14.ppt
Newbold_chap14.ppt
 
Chapter 10 Section 3.ppt
Chapter 10 Section 3.pptChapter 10 Section 3.ppt
Chapter 10 Section 3.ppt
 
14 ch ken black solution
14 ch ken black solution14 ch ken black solution
14 ch ken black solution
 
Diagnostic methods for Building the regression model
Diagnostic methods for Building the regression modelDiagnostic methods for Building the regression model
Diagnostic methods for Building the regression model
 
Chap02 describing data; numerical
Chap02 describing data; numericalChap02 describing data; numerical
Chap02 describing data; numerical
 
Chapter 7 Section 3.ppt
Chapter 7 Section 3.pptChapter 7 Section 3.ppt
Chapter 7 Section 3.ppt
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learning
 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression Analysis
 
2 UNIT-DSP.pptx
2 UNIT-DSP.pptx2 UNIT-DSP.pptx
2 UNIT-DSP.pptx
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Moderation and Meditation conducting in SPSS
Moderation and Meditation conducting in SPSSModeration and Meditation conducting in SPSS
Moderation and Meditation conducting in SPSS
 
Optimization
OptimizationOptimization
Optimization
 
Chap14 analysis of categorical data
Chap14 analysis of categorical dataChap14 analysis of categorical data
Chap14 analysis of categorical data
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Lecture6 xing
Lecture6 xingLecture6 xing
Lecture6 xing
 
Experimental design
Experimental designExperimental design
Experimental design
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSS
 
Chap05 continuous random variables and probability distributions
Chap05 continuous random variables and probability distributionsChap05 continuous random variables and probability distributions
Chap05 continuous random variables and probability distributions
 
chap4_Parametric_Methods.ppt
chap4_Parametric_Methods.pptchap4_Parametric_Methods.ppt
chap4_Parametric_Methods.ppt
 
Tree net and_randomforests_2009
Tree net and_randomforests_2009Tree net and_randomforests_2009
Tree net and_randomforests_2009
 

More from Judianto Nugroho

Chap14 en-id
Chap14 en-idChap14 en-id
Chap14 en-id
Judianto Nugroho
 
Chap19 en-id
Chap19 en-idChap19 en-id
Chap19 en-id
Judianto Nugroho
 
Chap18 en-id
Chap18 en-idChap18 en-id
Chap18 en-id
Judianto Nugroho
 
Chap16 en-id
Chap16 en-idChap16 en-id
Chap16 en-id
Judianto Nugroho
 
Chap15 en-id
Chap15 en-idChap15 en-id
Chap15 en-id
Judianto Nugroho
 
Chap17 en-id
Chap17 en-idChap17 en-id
Chap17 en-id
Judianto Nugroho
 
Chap13 en-id
Chap13 en-idChap13 en-id
Chap13 en-id
Judianto Nugroho
 
Chap12 en-id
Chap12 en-idChap12 en-id
Chap12 en-id
Judianto Nugroho
 
Chap11 en-id
Chap11 en-idChap11 en-id
Chap11 en-id
Judianto Nugroho
 
Chap10 en-id
Chap10 en-idChap10 en-id
Chap10 en-id
Judianto Nugroho
 
Chap09 en-id
Chap09 en-idChap09 en-id
Chap09 en-id
Judianto Nugroho
 
Chap08 en-id
Chap08 en-idChap08 en-id
Chap08 en-id
Judianto Nugroho
 
Chap05 en-id
Chap05 en-idChap05 en-id
Chap05 en-id
Judianto Nugroho
 
Chap07 en-id
Chap07 en-idChap07 en-id
Chap07 en-id
Judianto Nugroho
 
Chap06 en-id
Chap06 en-idChap06 en-id
Chap06 en-id
Judianto Nugroho
 
Chap04 en-id
Chap04 en-idChap04 en-id
Chap04 en-id
Judianto Nugroho
 
Chap03 en-id
Chap03 en-idChap03 en-id
Chap03 en-id
Judianto Nugroho
 
Chap02 en-id
Chap02 en-idChap02 en-id
Chap02 en-id
Judianto Nugroho
 
Chap01 en-id
Chap01 en-idChap01 en-id
Chap01 en-id
Judianto Nugroho
 
Spss session 1 and 2
Spss session 1 and 2Spss session 1 and 2
Spss session 1 and 2
Judianto Nugroho
 

More from Judianto Nugroho (20)

Chap14 en-id
Chap14 en-idChap14 en-id
Chap14 en-id
 
Chap19 en-id
Chap19 en-idChap19 en-id
Chap19 en-id
 
Chap18 en-id
Chap18 en-idChap18 en-id
Chap18 en-id
 
Chap16 en-id
Chap16 en-idChap16 en-id
Chap16 en-id
 
Chap15 en-id
Chap15 en-idChap15 en-id
Chap15 en-id
 
Chap17 en-id
Chap17 en-idChap17 en-id
Chap17 en-id
 
Chap13 en-id
Chap13 en-idChap13 en-id
Chap13 en-id
 
Chap12 en-id
Chap12 en-idChap12 en-id
Chap12 en-id
 
Chap11 en-id
Chap11 en-idChap11 en-id
Chap11 en-id
 
Chap10 en-id
Chap10 en-idChap10 en-id
Chap10 en-id
 
Chap09 en-id
Chap09 en-idChap09 en-id
Chap09 en-id
 
Chap08 en-id
Chap08 en-idChap08 en-id
Chap08 en-id
 
Chap05 en-id
Chap05 en-idChap05 en-id
Chap05 en-id
 
Chap07 en-id
Chap07 en-idChap07 en-id
Chap07 en-id
 
Chap06 en-id
Chap06 en-idChap06 en-id
Chap06 en-id
 
Chap04 en-id
Chap04 en-idChap04 en-id
Chap04 en-id
 
Chap03 en-id
Chap03 en-idChap03 en-id
Chap03 en-id
 
Chap02 en-id
Chap02 en-idChap02 en-id
Chap02 en-id
 
Chap01 en-id
Chap01 en-idChap01 en-id
Chap01 en-id
 
Spss session 1 and 2
Spss session 1 and 2Spss session 1 and 2
Spss session 1 and 2
 

Recently uploaded

678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 

Chap13 additional topics in regression analysis

  • 1. Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7th Edition Chapter 13 Additional Topics in Regression Analysis Ch. 13-1
  • 2. Chapter Goals After completing this chapter, you should be able to:  Explain regression model-building methodology  Apply dummy variables for categorical variables with more than two categories  Explain how dummy variables can be used in experimental design models  Incorporate lagged values of the dependent variable is regressors  Describe specification bias and multicollinearity  Examine residuals for heteroscedasticity and autocorrelation Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-2
  • 3. The Stages of Model Building  Understand the problem to be studied  Select dependent and independent variables  Identify model form (linear, quadratic…)  Determine required data for the study Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Model Specification Coefficient Estimation Model Verification Interpretation and Inference * Ch. 13-3 13.1
  • 4. The Stages of Model Building Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Model Specification Coefficient Estimation Model Verification Interpretation and Inference  Estimate the regression coefficients using the available data  Form confidence intervals for the regression coefficients  For prediction, goal is the smallest se  If estimating individual slope coefficients, examine model for multicollinearity and specification bias * (continued) Ch. 13-4
  • 5. The Stages of Model Building Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Model Specification Coefficient Estimation Model Verification Interpretation and Inference  Logically evaluate regression results in light of the model (i.e., are coefficient signs correct?)  Are any coefficients biased or illogical?  Evaluate regression assumptions (i.e., are residuals random and independent?)  If any problems are suspected, return to model specification and adjust the model * (continued) Ch. 13-5
  • 6. The Stages of Model Building Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Model Specification Coefficient Estimation Model Verification Interpretation and Inference  Interpret the regression results in the setting and units of your study  Form confidence intervals or test hypotheses about regression coefficients  Use the model for forecasting or prediction* (continued) Ch. 13-6
  • 7. Dummy Variable Models (More than 2 Levels)  Dummy variables can be used in situations in which the categorical variable of interest has more than two categories  Dummy variables can also be useful in experimental design  Experimental design is used to identify possible causes of variation in the value of the dependent variable  Y outcomes are measured at specific combinations of levels for treatment and blocking variables  The goal is to determine how the different treatments influence the Y outcome Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-7 13.2
  • 8. Dummy Variable Models (More than 2 Levels)  Consider a categorical variable with K levels  The number of dummy variables needed is one less than the number of levels, K – 1  Example: y = house price ; x1 = square feet  If style of the house is also thought to matter: Style = ranch, split level, condo Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Three levels, so two dummy variables are needed Ch. 13-8
  • 9. Dummy Variable Models (More than 2 Levels)  Example: Let “condo” be the default category, and let x2 and x3 be used for the other two categories: y = house price x1 = square feet x2 = 1 if ranch, 0 otherwise x3 = 1 if split level, 0 otherwise The multiple regression equation is: Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 3322110 xbxbxbby ˆ (continued) Ch. 13-9
  • 10. Interpreting the Dummy Variable Coefficients (with 3 Levels) Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 18.840.045x20.43y 1 ˆ 23.530.045x20.43y 1 ˆ With the same square feet, a ranch will have an estimated average price of 23.53 thousand dollars more than a condo With the same square feet, a split-level will have an estimated average price of 18.84 thousand dollars more than a condo. Consider the regression equation: 321 18.84x23.53x0.045x20.43y ˆ 10.045x20.43y ˆ For a condo: x2 = x3 = 0 For a ranch: x2 = 1; x3 = 0 For a split level: x2 = 0; x3 = 1 Ch. 13-10
  • 11. Experimental Design  Consider an experiment in which  four treatments will be used, and  the outcome also depends on three environmental factors that cannot be controlled by the experimenter  Let variable z1 denote the treatment, where z1 = 1, 2, 3, or 4. Let z2 denote the environment factor (the “blocking variable”), where z2 = 1, 2, or 3  To model the four treatments, three dummy variables are needed  To model the three environmental factors, two dummy variables are needed Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-11
  • 12. Experimental Design  Define five dummy variables, x1, x2, x3, x4, and x5  Let treatment level 1 be the default (z1 = 1)  Define x1 = 1 if z1 = 2, x1 = 0 otherwise  Define x2 = 1 if z1 = 3, x2 = 0 otherwise  Define x3 = 1 if z1 = 4, x3 = 0 otherwise  Let environment level 1 be the default (z2 = 1)  Define x4 = 1 if z2 = 2, x4 = 0 otherwise  Define x5 = 1 if z2 = 3, x5 = 0 otherwise Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall (continued) Ch. 13-12
  • 13. Experimental Design: Dummy Variable Tables  The dummy variable values can be summarized in a table: Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Z1 X1 X2 X3 1 0 0 0 2 1 0 0 3 0 1 0 4 0 0 1 Z2 X4 X5 1 0 0 2 1 0 3 0 1 Ch. 13-13
  • 14. Experimental Design Model  The experimental design model can be estimated using the equation  The estimated value for β2 , for example, shows the amount by which the y value for treatment 3 exceeds the value for treatment 1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall εxβxβxβxβxββy 5i54i43i32i21i10i ˆ Ch. 13-14
  • 15. Lagged Values of the Dependent Variable  In time series models, data is collected over time (weekly, quarterly, etc…)  The value of y in time period t is denoted yt  The value of yt often depends on the value yt-1, as well as other independent variables xj : Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall t1tKtK2t21t10t εyxβxβxββy  γ A lagged value of the dependent variable is included as an explanatory variable Ch. 13-15 13.3
  • 16. Interpreting Results in Lagged Models  An increase of 1 unit in the independent variable xj in time period t (all other variables held fixed), will lead to an expected increase in the dependent variable of  j in period t  j  in period (t+1)  j2 in period (t+2)  j3 in period (t+3) and so on  The total expected increase over all current and future time periods is j/(1-)  The coefficients 0, 1, . . . ,K,  are estimated by least squares in the usual manner Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-16
  • 17.  Confidence intervals and hypothesis tests for the regression coefficients are computed the same as in ordinary multiple regression  (When the regression equation contains lagged variables, these procedures are only approximately valid. The approximation quality improves as the number of sample observations increases.) Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Interpreting Results in Lagged Models (continued) Ch. 13-17
  • 18.  Caution should be used when using confidence intervals and hypothesis tests with time series data  There is a possibility that the equation errors i are no longer independent from one another.  When errors are correlated the coefficient estimates are unbiased, but not efficient. Thus confidence intervals and hypothesis tests are no longer valid. Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Interpreting Results in Lagged Models (continued) Ch. 13-18
  • 19. Specification Bias  Suppose an important independent variable z is omitted from a regression model  If z is uncorrelated with all other included independent variables, the influence of z is left unexplained and is absorbed by the error term, ε  But if there is any correlation between z and any of the included independent variables, some of the influence of z is captured in the coefficients of the included variables Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-19 13.4
  • 20. Specification Bias  If some of the influence of omitted variable z is captured in the coefficients of the included independent variables, then those coefficients are biased…  …and the usual inferential statements from hypothesis test or confidence intervals can be seriously misleading  In addition the estimated model error will include the effect of the missing variable(s) and will be larger Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall (continued) Ch. 13-20
  • 21. Multicollinearity  Collinearity: High correlation exists among two or more independent variables  This means the correlated variables contribute redundant information to the multiple regression model Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-21 13.5
  • 22. Multicollinearity  Including two highly correlated explanatory 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 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall (continued) Ch. 13-22
  • 23. Some Indications of Strong Multicollinearity  Incorrect signs on the coefficients  Large change in the value of a previous coefficient when a new variable is added to the model  A previously significant variable becomes insignificant when a new independent variable is added  The estimate of the standard deviation of the model increases when a variable is added to the model Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-23
  • 24. Detecting Multicollinearity  Examine the simple correlation matrix to determine if strong correlation exists between any of the model independent variables  Multicollinearity may be present if the model appears to explain the dependent variable well (high F statistic and low se ) but the individual coefficient t statistics are insignificant Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-24
  • 25. Assumptions of Regression  Normality of Error  Error values (ε) are normally distributed for any given value of X  Homoscedasticity  The probability distribution of the errors has constant variance  Independence of Errors  Error values are statistically independent Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-25
  • 26. Residual Analysis  The residual for observation i, ei , is the difference between its observed and predicted value  Check the assumptions of regression by examining the residuals  Examine for linearity assumption  Examine for constant variance for all levels of X (homoscedasticity)  Evaluate normal distribution assumption  Evaluate independence assumption  Graphical Analysis of Residuals  Can plot residuals vs. X Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall iii yye ˆ Ch. 13-26
  • 27. Residual Analysis for Linearity Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Not Linear Linear  x residuals x Y x Y x residuals Ch. 13-27
  • 28. Residual Analysis for Homoscedasticity Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Non-constant variance  Constant variance x x Y x x Y residuals residuals Ch. 13-28
  • 29. Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Residual Analysis for Independence Not Independent Independent X X residuals residuals X residuals  Ch. 13-29
  • 30. Excel Residual Output Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall House Price Model Residual Plot -60 -40 -20 0 20 40 60 80 0 1000 2000 3000 Square Feet Residuals RESIDUAL OUTPUT Predicted House Price Residuals 1 251.92316 -6.923162 2 273.87671 38.12329 3 284.85348 -5.853484 4 304.06284 3.937162 5 218.99284 -19.99284 6 268.38832 -49.38832 7 356.20251 48.79749 8 367.17929 -43.17929 9 254.6674 64.33264 10 284.85348 -29.85348 Does not appear to violate any regression assumptions Ch. 13-30
  • 31. Heteroscedasticity  Homoscedasticity  The probability distribution of the errors has constant variance  Heteroscedasticity  The error terms do not all have the same variance  The size of the error variances may depend on the size of the dependent variable value, for example Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-31 13.6
  • 32. Heteroscedasticity  When heteroscedasticity is present:  least squares is not the most efficient procedure to estimate regression coefficients  The usual procedures for deriving confidence intervals and tests of hypotheses is not valid Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-32 (continued)
  • 33. Tests for Heteroscedasticity  To test the null hypothesis that the error terms, εi, all have the same variance against the alternative that their variances depend on the expected values  Estimate the simple regression  Let R2 be the coefficient of determination of this new regression The null hypothesis is rejected if nR2 is greater than 2 1,  where 2 1, is the critical value of the chi-square random variable with 1 degree of freedom and probability of error  Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall iyˆ i10 2 i yaae ˆ Ch. 13-33
  • 34. Autocorrelated Errors  Independence of Errors  Error values are statistically independent  Autocorrelated Errors  Residuals in one time period are related to residuals in another period Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-34 13.7
  • 35. Autocorrelated Errors  Autocorrelation violates a least squares regression assumption  Leads to sb estimates that are too small (i.e., biased)  Thus t-values are too large and some variables may appear significant when they are not Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-35 (continued)
  • 36. Autocorrelation  Autocorrelation is correlation of the errors (residuals) over time Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall  Violates the regression assumption that residuals are random and independent Time (t) Residual Plot -15 -10 -5 0 5 10 15 0 2 4 6 8 Time (t) Residuals Here, residuals show a cyclic pattern, not random Ch. 13-36
  • 37. The Durbin-Watson Statistic  The Durbin-Watson statistic is used to test for autocorrelation Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall H0: successive residuals are not correlated (i.e., Corr(εt,εt-1) = 0) H1: autocorrelation is present Ch. 13-37
  • 38. The Durbin-Watson Statistic  The Durbin-Watson test statistic (d): Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall       n 1t 2 t n 2t 2 1tt e )e(e d  The possible range is 0 ≤ d ≤ 4  d should be close to 2 if H0 is true  d less than 2 may signal positive autocorrelation,  d greater than 2 may signal negative autocorrelation H0: ρ = 0 (no autocorrelation) H1: autocorrelation is present Ch. 13-38
  • 39. Testing for Positive Autocorrelation  Calculate the Durbin-Watson test statistic = d  d can be approximated by d = 2(1 – r) , where r is the sample correlation of successive errors  Find the values dL and dU from the Durbin-Watson table  (for sample size n and number of independent variables K) Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Decision rule: reject H0 if d < dL H0: positive autocorrelation does not exist H1: positive autocorrelation is present 0 dU 2dL Reject H0 Do not reject H0Inconclusive Ch. 13-39
  • 40. Negative Autocorrelation  Negative autocorrelation exists if successive errors are negatively correlated  This can occur if successive errors alternate in sign Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Decision rule for negative autocorrelation: reject H0 if d > 4 – dL 0 dU 2dL Reject H0 Do not reject H0 Inconclusive Reject H0Inconclusive 4 – dU 4 – dL 4 0ρ  0ρ  Ch. 13-40
  • 41. Testing for Positive Autocorrelation  Example with n = 25: Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Durbin-Watson Calculations Sum of Squared Difference of Residuals 3296.18 Sum of Squared Residuals 3279.98 Durbin-Watson Statistic 1.00494 y = 30.65 + 4.7038x R 2 = 0.8976 0 20 40 60 80 100 120 140 160 0 5 10 15 20 25 30 Time Sales (continued) 1.00494 3279.98 3296.18 e )e(e d n 1t 2 t n 2t 2 1tt         Ch. 13-41
  • 42. Testing for Positive Autocorrelation  Here, n = 25 and there is k = 1 independent variable  Using the Durbin-Watson table, dL = 1.29 and dU = 1.45  D = 1.00494 < dL = 1.29, so reject H0 and conclude that significant positive autocorrelation exists  Therefore the linear model is not the appropriate model to forecast sales Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall (continued) Decision: reject H0 since D = 1.00494 < dL 0 dU=1.45 2dL=1.29 Reject H0 Do not reject H0Inconclusive Ch. 13-42
  • 43. Dealing with Autocorrelation  Suppose that we want to estimate the coefficients of the regression model where the error term εt is autocorrelated  Two steps: (i) Estimate the model by least squares, obtaining the Durbin-Watson statistic, d, and then estimate the autocorrelation parameter using Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall tktk2t21t10t εxβxβxββy   2 d 1r  Ch. 13-43
  • 44. Dealing with Autocorrelation (ii) Estimate by least squares a second regression with  dependent variable (yt – ryt-1)  independent variables (x1t – rx1,t-1) , (x2t – rx2,t-1) , . . ., (xk1t – rxk,t-1)  The parameters 1, 2, . . ., k are estimated regression coefficients from the second model  An estimate of 0 is obtained by dividing the estimated intercept for the second model by (1-r)  Hypothesis tests and confidence intervals for the regression coefficients can be carried out using the output from the second model Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-44
  • 45. Chapter Summary  Discussed regression model building  Introduced dummy variables for more than two categories and for experimental design  Used lagged values of the dependent variable as regressors  Discussed specification bias and multicollinearity  Described heteroscedasticity  Defined autocorrelation and used the Durbin- Watson test to detect positive and negative autocorrelation Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 13-45