Docsity

Understanding Adjusted R-squared for Model Comparison and Interaction Effects - Prof. Bret, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
2 December
Adjusted R2
Can help us choose the ā€˜best’ model
As we add predictors to a model, the R2 for the model will increase regardless of whether the
added predictor is useful.
Cannot compare useful R2’s if # of predictors is different
R2
adj was developed to allow such a comparison. It adds a penalty term for each additional
predictor used.
R2adj = 1 – [
nāˆ’1
nāˆ’(k+1)
] [
SSE
TSS
]
n = sample size
k is number of predictors
In theory, we choose the model with the highest R2
adj
In practice, we find a group of models with similar R2adj and choose the simplest (the one with
the fewest predictors)
Interaction
Sometimes the change in Y associated with a 1-unit increase in one explanatory variable
depends on the value of a second explanatory variable
Change in Y associated with X1X2, an interaction
If X1 and X2 interact, our model is
Y = β0+ β1x1 + β2x2 + β3x1x2 + ε
If you have an interaction between X1 and X2, you should include X1 and X2 terms by
themselves as well.
Sometimes we want to include higher order terms as well.
The ā€œcomplete second order modelā€ is
Y = β0 + β1x1 + β2x2 + β3x1x2 + β4x1
2 + β5x2
2 + ε
pf2

Partial preview of the text

Download Understanding Adjusted R-squared for Model Comparison and Interaction Effects - Prof. Bret and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

2 December Adjusted R^2 Can help us choose the ā€˜best’ model As we add predictors to a model, the R^2 for the model will increase regardless of whether the added predictor is useful. Cannot compare useful R^2 ’s if # of predictors is different R^2 adj was developed to allow such a comparison. It adds a penalty term for each additional predictor used. R^2 adj = 1 – [

n āˆ’ 1

n āˆ’( k + 1 )

] [

SSE

TSS

]

n = sample size k is number of predictors In theory, we choose the model with the highest R^2 adj In practice, we find a group of models with similar R^2 adj and choose the simplest (the one with the fewest predictors) Interaction Sometimes the change in Y associated with a 1-unit increase in one explanatory variable depends on the value of a second explanatory variable Change in Y associated with X 1 X 2 , an interaction If X 1 and X 2 interact, our model is Y = β 0 + β 1 x 1 + β 2 x 2 + β 3 x 1 x 2 + ε If you have an interaction between X 1 and X 2 , you should include X 1 and X 2 terms by themselves as well. Sometimes we want to include higher order terms as well. The ā€œcomplete second order modelā€ is Y = β 0 + β 1 x 1 + β 2 x 2 + β 3 x 1 x 2 + β 4 x 12 + β 5 x 22 + ε

Can have interactions between more than 2 terms Would have to include all ā€œlower orderā€ interactions in the model as well e.g. Y = β 0 + β 1 x 1 + β 2 x 2 + β 3 x 3 + β 4 x 1 x 2 + β 5 x 1 x 3 + β 6 x 2 x 3 + β 7 x 1 x 2 x 3 + ε Generally, 2 term interactions are commonly used, while higher order interactions are uncommon.