Docsity

Multiple Regression: Checking Assumptions and Diagnostics, Study notes of Statistics

Toggle sidebar
bg1
1
22S:152
Multiple Regression: Checking
Assumptions and Diagnostics
Lecture 9
Oct. 2, 200 2
Kate Cowles
374 SH
2
Assumptions
1. Existence
2. The relationship between the response vari-
able and each of the predictor variables is
linear, after controlling for the effects of
the other predictor variables:
E(Y|X1, . . . , XK) = β0+β1X1+. . .+βKXK
3. The variance σ2
Y|X1,... XKis constant for
any set of values of X1, . . . XK
(homoscedasticity)
4. The values of Yare independent of
each other
5. The errors are distributed normally.
3
Scatterplot Matrix
preliminary screen for
•collinearity
•outliers
•not very informative about nonlinearity
in multiple regression setting
4
data crime ;
infile ’/group/ftp/pub/kcowles/datasets/crime.dat’ ;
input rate age14 south educ polex60 polex59 labor males pop nw unemp1
unemp2 wlth pov ;
swlth = south * wlth ;
run ;
Can obtain scatterplot matrix in SAS In-
sight using Analyze −>Multivariate −>
Output.
pf3
pf4
pf5

Partial preview of the text

Download Multiple Regression: Checking Assumptions and Diagnostics and more Study notes Statistics in PDF only on Docsity!

22S:

Multiple Regression: Checking Assumptions and Diagnostics Lecture 9 Oct. 2, 200 2

Kate Cowles 374 SH [email protected]

Assumptions

  1. Existence
  2. The relationship between the response vari- able and each of the predictor variables is linear, after controlling for the effects of the other predictor variables: E(Y | X 1 ,... , XK) = β 0 +β 1 X 1 +.. .+βKXK
  3. The variance σ^2 Y |X 1 ,... XK is constant for any set of values of X 1 ,... XK (homoscedasticity)
  4. The values of Y are independent of each other
  5. The errors are distributed normally.

3 Scatterplot Matrix

preliminary screen for

  • collinearity
  • outliers
  • not very informative about nonlinearity in multiple regression setting

4 data crime ;infile ’/group/ftp/pub/kcowles/datasets/crime.dat’ ; input rate age14 south educ polex60 polex59 labor males pop nw unemp1unemp2 wlth pov ; swlth = south * wlth ;run ;

Can obtain scatterplot matrix in SAS In- sight using Analyze − > Multivariate − > Output.

Correlation Matrix

  • preliminary screen for collinearity
    • but cannot diagnose multicollinear re- lationships involving more than two vari- ables
  • large correlations between two predictor variables indicate collinearity
  • large correlations between response vari- able and any predictors are good news
  • only continuous variables should be in- cluded

7 proc corr ;var rate age14 educ wlth pov ; run ;

Correlation Analysis Pearson Correlation Coefficients / Prob > |R| under Ho: Rho=0 / N = 47 RATE AGE14 EDUC WLTH POV RATE 1.000000.0 -0.089470.5498 0.322830.0269 0.441320.0019 -0.179020.

AGE14 -0.089470.5498 1.000000.0 -0.530240.0001 -0.670060.0001 0.639210.

EDUC 0.322830.0269 -0.530240.0001 1.000000.0 0.736000.0001 -0.768660.

WLTH 0.441320.0019 -0.670060.0001 0.736000.0001 1.000000.0 -0.884000.

POV -0.17902 0.63921 -0.76866 -0.88400 1. 0.2286 0.0001 0.0001 0.0001 0.

8 After fitting model:

Check for nonlinearity and heteroscedas- ticity using

  • added variable plots
  • plots of residuals vs. predicted values

Check for non-normality using

  • plots or summary statistics of residuals or studentized residuals

Checking for non-normality Normal QQ plot of residuals

Detection of Multicollinearity after Fitting Model

  1. Is R^2 a high with low t-scores?
  2. Are simple correlation coefficients high?
  3. “tolerance” and “variance inflation factor” The SAS System (^) 16:11 Tuesday, October 19, 1999 3

Variable DF Parameter EstimatesEstimate Std Error T Stat Prob >|T| INTERCEPTAGE14 11 -625.96780.8889 142.32330.4855 -4.39821.8310 0.00010. EDUCWLTH 11 1.09750.5400 0.65630.1040 1.67225.1896 0.10210. POVSOUTH 11 0.98845.6653 (^) 14.69910.2716 3.63830.3854 (^) 0.70190.

ToleranceParameter Estimates Var Inflation 0.5074.^ 0.00001. 0.35030.1874 2.85435. 0.16080.3811 6.21852.

  1. Regress the suspected culprit predictor

15

variable on the other predictors

16 Multiple correlation coefficient

  • The multiple correlation coefficient is a measure of the overall linear association of one dependent variable Y with several other independent variables X 1 , X 2 ,... , Xk.
  • It is the simple correlation coefficient be- tween the observed values Yi and the pre- dicted values Yˆi from a multiple regres- sion model.
  • coefficient of determination R^2 in multi- ple regression is the square of the multiple correlation coefficient.

Tolerance and the variance inflation factor

  • tolerance of predictor Xk is the propor- tion of Xk’s variance that is not shared with the other X variables tolerance = 1 − R^2 k where R^2 k is the coefficient of determina- tion for a model in which Xk is regressed on all the other predictor variables
  • With perfect multicollinearity, tolerance = 0 and regression is impossible.
  • variance inflaction factor (VIF) is (^) tolerance^1
    • estimated variance of βk ∝ V IFk
    • rule of thumb: worry if VIF for a pre- dictor is > 10

Remedies for Multicollinearity

  1. do nothing
  2. drop at least 1 of the multicollinear vari- ables
  3. transform the multicollinear variables
  4. increase the sample size

19 Influential Observations

Cook’s distance

  • measures the influence of each observa- tion on all the model coefficients as a whole
  • unusually influential case: Di > (^4) n
  • based on
    • how far x values are from mean of x’s
    • how far Yi is from the regression line

20

Output Statistics Cook’s Obs -2-1 0 1 2 D 1 | | | 0. 2 | |*** | 0. 3 | |** | 0. 4 | |** | 0. 5 | | | 0. 6 | | | 0. 7 | | | 0. 8 | |******| 0. 9 | | | 0. 10 | | | 0. 11 | |* | 0. 12 | | | 0. 13 | **| | 0. 14 | *| | 0. 15 | | | 0. 16 | | | 0. 17 | | | 0. 18 | | | 0. 19 | | | 0. 20 | | | 0. 21 | | | 0. 22 | | | 0. 23 | | | 0. 24 | | | 0. 25 | *| | 0. 26 | |**** | 0. 27 | *| | 0.