Correlation: Prof. Andy Field
Correlation: Prof. Andy Field
Correlation: Prof. Andy Field
140
Appreciation of Dimmu Borgir
120
100
80
60
40
20
-20
10 20 30 40 50 60 70 80 90
Age
Slide 4
90
70
60
50
40
30
20
10
10 20 30 40 50 60 70 80 90
Age
Slide 5
100
80
Appreciation of Dimmu Borgir
60
40
20
-20
10 20 30 40 50 60 70 80 90
Age
Slide 6
Measuring Relationships
• We need to see whether as one variable
increases, the other increases, decreases or
stays the same.
• This can be done by calculating the
Covariance.
– We look at how much each score deviates
from the mean.
– If both variables deviate from the mean by the
same amount, they are likely to be related.
Modeling Relationships
Variance
N 1
xi x xi x
N 1
Covariance
• Calculate the error between the mean and
each subject’s score for the first variable (x).
• Calculate the error between the mean and
their score for the second variable (y).
• Multiply these error values.
• Add these values and you get the cross
product deviations.
• The covariance is the average cross-product
deviations:
xi x yi y
Cov( x, y ) N 1
( xi x )( y i y )
cov( x , y )
N 1
( 0.4)( 3) ( 1.4)( 2 ) ( 1.4)( 1) (0.6)( 2 ) ( 2.6)( 4)
4
1.2 2.8 1.4 1.2 10.4
4
17
4
4.25
Problems with Covariance
• It depends upon the units of measurement.
– E.g. The Covariance of two variables measured in
Miles might be 4.25, but if the same scores are
converted to Km, the Covariance is 11.
• One solution: standardise it!
– Divide by the standard deviations of both variables.
• The standardised version of Covariance is
known as the Correlation coefficient.
– It is relatively unaffected by units of measurement.
The Correlation Coefficient
Covxy
r sx s y
xi x yi y
N 1 s x s y
The Correlation Coefficient
Covxy
r sx s y
4.25
1.67 2.92
.87
Correlation: Example
• Anxiety and Exam Performance
• Participants:
– 103 students
• Measures
– Time spent revising (hours)
– Exam performance (%)
– Exam Anxiety (the EAQ, score out of 100)
Conducting Correlation
Analysis
Doing a Correlation
Bootstrap-sample
Bootstrap correlation
Sample 1
-0.50
Sample
Bootstrap 95% of
Sample 2 -0.72 boot-strap
samples
… …
Bootstrap
Sample N
-0.81
Correlation Output
Reporting the Results
Things to know about the Correlation
• Partial correlation:
– Measures the relationship between two
variables, controlling for the effect that a third
variable has on them both.
• Semi-partial correlation:
– Measures the relationship between two
variables controlling for the effect that a third
variable has on only one of the others.
Slide
Andy Field
Doing Partial Correlation
Partial Correlation Output
Conclusion
• Scattergram
• Covariance
• Pearson’s correlation
• Bootstrapping for significance testing
and confidence intervals
• Correlation and causation
• Non-parametric correlation
• Partial correlation
Slide