49
Correlation & Regression

Correlation & Regression

  • Upload
    jules

  • View
    74

  • Download
    2

Embed Size (px)

DESCRIPTION

Correlation & Regression. Analyze, Correlate, Bivariate. Analyze, Regression, Linear. Save, Unstandardized. Continue, OK. r = .1 is small, .3 medium, .5 large. Graphs, Legacy Dialogs, Scatter, Overlay, Define. OK. Graphs, Scatter, Simple, Define. - PowerPoint PPT Presentation

Citation preview

Page 1: Correlation &  Regression

Correlation & Regression

Page 2: Correlation &  Regression

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

Analyze, Correlate, Bivariate

Page 4: Correlation &  Regression

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

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

Analyze, Regression, Linear

Page 7: Correlation &  Regression

Statistics

Page 8: Correlation &  Regression

Plots

Page 9: Correlation &  Regression

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

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

Residuals Histogram

Page 12: Correlation &  Regression

Graphs, Scatter, Simple, Define

Page 13: Correlation &  Regression

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

Page 14: Correlation &  Regression
Page 15: Correlation &  Regression
Page 16: Correlation &  Regression
Page 17: Correlation &  Regression

Construct a Confidence Interval for

the calculator at Vassar

Page 18: Correlation &  Regression

Trivariate Analysis

Page 19: Correlation &  Regression

Statistics

Page 20: Correlation &  Regression

Plots

Page 21: Correlation &  Regression

R2

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

Model R R Square Adjusted R Square

1 .682a .466 .443

Page 22: Correlation &  Regression

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

Coefficients

Model Unstandardized Coefficients

B Std. Error

1

(Constant) 64.066 6.792

Conscientiousness -.779 .164

Age -.276 .075

Page 24: Correlation &  Regression

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

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

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

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

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

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

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

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

Coefficientsa

Model Collinearity Statistics

Tolerance VIF

1

Age .980 1.021

Conscientiousness .980 1.021

Page 33: Correlation &  Regression

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

Residuals Histogram

Page 35: Correlation &  Regression

Residuals Plot

Page 36: Correlation &  Regression

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

Open NoncF.sav

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

Page 38: Correlation &  Regression

Open and Run the Syntax

Page 39: Correlation &  Regression

Look Back at .sav File

Page 40: Correlation &  Regression

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

Predict Y from X in Four Different Data Sets

Page 42: Correlation &  Regression
Page 43: Correlation &  Regression
Page 44: Correlation &  Regression
Page 45: Correlation &  Regression
Page 46: Correlation &  Regression
Page 47: Correlation &  Regression
Page 48: Correlation &  Regression
Page 49: Correlation &  Regression