Week 12 Slides_Notes
Week 12 Slides_Notes
CORRELATION
• Intro to Correlation
• Hypothesis Testing with r
• Interpreting Correlation
• Wrap up!
2
COMING UP!
4
FINAL EXAM REVIEW SESSION
6
IN YOUR STATISTICAL TOOLBOX…
7
STEPS TO IDENTIFYING WHICH TEST TO USE
Is there an IV?
No Yes
Between or
ANOVA
within subjects?
Between Within
9
SO FAR WE HAVE BEEN COMPARING GROUPS…
• Correlation
• Direction and strength of an association between two variables
(X,Y)
• Typically (but not only) used in non-experimental research
• Variables are measured, not manipulated
• Other examples
• Relationship between stressful life events (X) and number of
illness symptoms (Y)
• Relationship between years of education (X) and yearly income (Y)
12
TOOLS FOR CORRELATION
• The Scatterplot
• A figure
• Shows association between two variables
13
THE SCATTERPLOT
15
SEEING RELATIONSHIPS
16
SUMMARIZING RELATIONSHIPS
17
SUMMARIZING RELATIONSHIPS
18
SUMMARIZING RELATIONSHIPS
19
SUMMARIZING RELATIONSHIPS
20
DESCRIBING RELATIONSHIPS
21
THE CORRELATION COEFFICIENT: BASICS
Positive Correlation
X = Temperature
Y = Beer sales
23
THE CORRELATION COEFFICIENT
Negative Correlation
X = Temperature
Y = Coffee sales
24
THE CORRELATION COEFFICIENT
Perfect
Negative No Linear
Correlation Trend
r = -1.00 r = 0.00
Strong Weak
Positive Negative
Correlation Correlation
r = +0.90 r = -0.40
25
COMPUTING R
26
COVARIABILITY OF X AND Y
Covariance
between
X and Y
Variance Variance
in X alone in Y alone
X XY Y
27
COMPUTING R
# #
(∑ :) (∑ ;)
SSX = ∑ " < − SSY = ∑ # < −
5 5
28
LEARNING CHECK
• A. 0.75
• B. 0.35
• C. -0.75
• D. -0.35
29
LEARNING CHECK
31
HYPOTHESIS TESTING WITH R
34
HYPOTHESIS TESTING FOR R
35
HYPOTHESIS TESTING FOR R
37
HYPOTHESIS TESTING FOR R
38
HYPOTHESIS TESTING FOR R
• Research Question
• Is there a significant linear association between hours
studying and quiz score?
• Is r significantly different from zero?
• Step 1: Statistical Hypotheses
• H0: ⍴ = 0
• H1: ⍴ ≠ 0
• Step 2: Find rcritical in Table # = .05
• Two-tailed
• df = n-2; df = 6 - 2 = 4 40
LET’S PRACTICE!
41
LET’S PRACTICE!
• Research Question
• Is there a significant linear association between hours
studying and quiz score?
• Is r significantly different from zero?
• Step 1: Statistical Hypotheses
• H0: ⍴ = 0
• H1: ⍴ ≠ 0
• Step 2: Find rcritical in Table # = .05
• Two-tailed
• df = n-2; df = 6 - 2 = 4
• From table à rcrit = ±.811 42
LET’S PRACTICE!
43
LET’S PRACTICE!
!
! (∑ $)
SSX = ∑ " −
• Hours studying and quiz scores &
n=6 !X = 22 44
LET’S PRACTICE!
!
! (∑ $)
SSX = ∑ " −
• Hours studying and quiz scores &
!
(∑ $)
SSX = ∑ " ! −
&
!!!
SSX = 112 − = &'. &&&
'
46
LET’S PRACTICE!
!
! (∑ ')
SSY = ∑ % −
• Hours studying and quiz scores &
!
! (∑ ')
SSY = ∑ % −
• Hours studying and quiz scores &
!
(∑ ()
SSY = ∑ ) ! −
&
!)!
SSY = 103 − = '*. +&&
'
49
LET’S PRACTICE!
∑$∑'
SP = ∑ "% −
• Hours studying and quiz scores &
∑$∑'
SP = ∑ "% −
• Hours studying and quiz scores &
∑"∑#
SP = ∑ "# −
$
%% %&
SP = &'( − = &*. ,,*
'
52
LET’S PRACTICE!
"#
r =
""! """
$%.''% $%.''%
r = = = +. %&'
()$.))))($+.,)))) -$..%$
53
LET’S PRACTICE!
• Compute r2
• Effect size
• r2 = .8192 = .67
• 67% of the variance in quiz scores is explained by hours
studying (and vice versa)
55
REPORTING AN R
57
LEARNING CHECK
58
INTERPRETING FINDINGS
61
PROCEED WITH CAUTION…
62
1. SENSITIVE TO OUTLIERS
64
3. RESTRICTION OF RANGE
65
4. HETEROGENEOUS SAMPLES
66
5. CORRELATION IS NOT CAUSATION
67
BIG GAP IN STATISTICAL LITERACY ON CORRELATION
68
BIG GAP IN STATISTICAL LITERACY ON CORRELATION
69
BIG GAP IN STATISTICAL LITERACY ON CORRELATION
70
BIG GAP IN STATISTICAL LITERACY ON CORRELATION
71
SO, WHAT HAVE WE LEARNED?
72
73
CORRELATION PRACTICE
74
CORRELATION ACTIVITY
• On the next slides, you will be given a headline and some “facts” from
the article. Answer the following questions:
75
1. HEADLINE:
“DIET OF FISH ‘CAN PREVENT’ TEEN VIOLENCE”
78
NAME THAT CORRELATION!
79
NAME THAT CORRELATION!
80
NAME THAT CORRELATION!
81
NAME THAT CORRELATION!
82
WHAT’S WRONG WITH THIS PICTURE?
83
WHAT’S WRONG WITH THIS PICTURE?
84
WHAT’S WRONG WITH THIS PICTURE?
85
WHAT’S WRONG WITH THIS RESEARCH?
87
88