49
Correlation & Regression

Correlation & Regression. The Data SPSS-Data.htm SPSS-Data.htm Corr_Regr

Embed Size (px)

Citation preview

Page 1: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Correlation & Regression

Page 2: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

The Data

• http://core.ecu.edu/psyc/wuenschk/SPSS/SPSS-Data.htm

• Corr_Regr– See Correlation and Regression Analysis:

SPSS

• Master’s Thesis, Mike Sage, 2015• Cyberloafing = Age, Conscientiousness

Page 3: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Analyze, Correlate, Bivariate

Page 4: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Pearson Correlations

  Cyberloafing Age Conscientiousness

Cyberloafing

Pearson Correlation 1 -.462** -.563**

Sig. (2-tailed)   .001 .000

N 51 51 51

Age

Pearson Correlation -.462** 1 .143

Sig. (2-tailed) .001   .317

N 51 51 51

Conscientiousness

Pearson Correlation -.563** .143 1

Sig. (2-tailed) .000 .317  

N 51 51 51

**. Correlation is significant at the 0.01 level (2-tailed).

Page 5: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Spearman Correlations

  Cyberloafing Age Conscientiousness

Spearman's rho

Cyberloafing

Correlation Coefficient 1.000 -.431** -.551**

Sig. (2-tailed) . .002 .000

N 51 51 51

Age

Correlation Coefficient -.431** 1.000 .110

Sig. (2-tailed) .002 . .442

N 51 51 51

Conscientiousness

Correlation Coefficient -.551** .110 1.000

Sig. (2-tailed) .000 .442 .

N 51 51 51

**. Correlation is significant at the 0.01 level (2-tailed).

Page 6: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Analyze, Regression, Linear

Page 7: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Statistics

Page 8: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Plots

Page 9: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

563.317.2 rr

r = .1 is small, .3 medium, .5 large

Model Summaryb

Model R R Square Adjusted R Square

Std. Error of the Estimate

1 .563a .317 .303 7.677a. Predictors: (Constant), Conscientiousness

b. Dependent Variable: Cyberloafing

Page 10: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Coefficientsa

Model Unstandardized Coefficients

Standardized Coefficients

t Sig.

 

B Std. Error Beta  

1(Constant) 57.039 7.288   7.826 .000  

Conscientiousness -.864 .181 -.563 -4.768 .000  a. Dependent Variable: Cyberloafing

Cyberloafing = 57.039 - .864(Conscientiousness) + error

tConsc. = 57.039/7.288 = 7.826 = SQRT(22.736) = SQRT(F)

Page 11: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Residuals Histogram

Page 12: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Graphs, Scatter, Simple, Define

Page 13: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Chart Editor, Elements, Fit Line at Total, Method = Linear, Close

Page 14: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 15: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 16: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 17: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Construct a Confidence Interval for

the calculator at Vassar

Page 18: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Trivariate Analysis

Page 19: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Statistics

Page 20: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Plots

Page 21: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

R2

• Adding Age increased R2 from .317 to .466.

Model R R Square Adjusted R Square

1 .682a .466 .443

Page 22: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

ANOVA

ANOVAa

Model Sum of Squares

df Mean Square

F Sig.

1

Regression 1968.029 2 984.015 20.906 .000b

Residual 2259.304 48 47.069    

Total 4227.333 50      

Page 23: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Coefficients

Model Unstandardized Coefficients

B Std. Error

1

(Constant) 64.066 6.792

Conscientiousness -.779 .164

Age -.276 .075

Page 24: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Unstandardized Coefficients

• Cyberloaf = 64.07 -.78 Consc - .28 Age• When Consc and Age = 0, Cyber = 64.07• Holding Age constant, each one point

increase in Consc produces a .78 point decrease in Cyberloafing.

• Holding Consc constant, each one point increase in Age produces a .28 point decrease in Cyberloafing.

Page 25: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

How Large are these Effects?

• Is a .78 drop in Cyberloafing a big drop or a small drop?

• When the units of measurement are arbitrary and not very familiar to others, best to standardize the coefficients to mean 0, standard deviation 1.

• ZCyber = 0 + 1Consc + 2Age

Page 26: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

More Coefficients

    t Sig. Correlations

  Beta Zero-order Partial Part

Constant  9.433 .000

     

Conscie-.507 -4.759 .000 -.563 -.566 -.502

Age-.389 -3.653 .001 -.462 -.466 -.386

Page 27: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Beta Weights

• ZCyber = 0 -.51Consc - .39Age

• Holding Age constant, each one SD increase in Conscientiousness produces a .51 SD decrease in Cyberloafing

• Holding Conscientiousness constant, each one SD increase in Age produces a .39 SD decrease in Cyberloafing.

Page 28: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Semi-Partial Correlations

• The correlation between all of Cyberloafing and that part of Conscientiousness that is not related to Age = -.50.

• The correlation all of Cyberloafing and that part of Age that is not related to Conscientiousness = -.39.

Page 29: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Partial Correlations

• The correlation between that part of Cyberloafing that is not related to Age and that part of Conscientiousness that is not related to Age = -.57.

• The correlation between that part of Cyberloafing that is not related to Conscientiousness and that part of Age that is not related to Conscientiousness= -.47.

Page 30: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Multicollinearity

• The R2 between any one predictor and the remaining predictors is very high.

• Makes the solution unstable.• Were you to repeatedly get samples from

the same population, the regression coefficients would vary greatly among samples

Page 31: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Collinearity Diagnostics

• Tolerance, which is simply 1 minus the R2

between one predictor and the remaining predictors. Low (.1) is troublesome.

• VIF, the Variance Inflation Factor, is the reciprocal of tolerance. High (10) is troublesome.

Page 32: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Coefficientsa

Model Collinearity Statistics

Tolerance VIF

1

Age .980 1.021

Conscientiousness .980 1.021

Page 33: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

ResidualsResiduals Statisticsa

  Minimum Maximum Mean Std. Deviation

N

Predicted Value 10.22 35.41 22.67 6.274 51

Residual -17.344 15.153 .000 6.722 51

Std. Predicted Value -1.983 2.032 .000 1.000 51

Std. Residual -2.528 2.209 .000 .980 51

No standardized residuals beyond 3 SD.

Page 34: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Residuals Histogram

Page 35: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Residuals Plot

Page 36: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Put a CI on R2

• http://core.ecu.edu/psyc/wuenschk/SPSS/SPSS-Programs.htm

• CI-R2-SPSS.zip -- Construct Confidence Interval for R2 from regression analysis– Using SPSS to Obtain a Confidence Interval f

or R2 From Regression -- instructions

– NoncF.sav -- necessary data file– F2R2.sps -- see Smithson's Workshop– NoncF3.sps -- syntax file

Page 37: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Open NoncF.sav

• Enter the observed value of F and degrees of freedom.

Page 38: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Open and Run the Syntax

Page 39: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Look Back at .sav File

Page 40: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Why You Need Inspect Scatterplots

• Data are at http://core.ecu.edu/psyc/wuenschk/SPSS/Corr_Regr.sav

• Four sets of bivariate data.• Bring into SPSS and Split File by “set.”

Page 41: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr

Predict Y from X in Four Different Data Sets

Page 42: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 43: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 44: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 45: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 46: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 47: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 48: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr
Page 49: Correlation & Regression. The Data  SPSS-Data.htm SPSS-Data.htm Corr_Regr