8-CORRELATION
8-CORRELATION
CORRELATION
a mutual relationship or connection between two or more
things.
-Meriam Webster
STATISTICS
a quantity measuring the extent of the interdependence of variable
quantities.
DEFINITION
■Correlation deals with the relationship between
two quantitative variables
■A bivariate data contains two sets of related
data.
■A dependent variable in a experiment is the
variable that is affected by the independent
variable or outside factor.
Independent and Dependent Variable
Examples
1. The time spent by a student in reviewing a lesson can
increase his score in an examination.
Dependent variable : score in an examination
Independent variable : time spent in reviewing
2. Age affects human stamina.
Dependent variable: human stamina
Independent variable: age
Directions: Identify the independent and dependent variables in the
following statements.
1. The more time people spend using 4. Spending time with a family dog
social media, the less they read books. decreases the amount of stress
someone is feeling.
Independent Variable : Time on Social Media
Dependent Variable: Less books read Independent Variable: Spending time with a
family dog
2. Drinking energy drinks makes people Dependent Variable: Amount of stress someone is
more aggressive. feeling.
y –4 –2 –1 0 2 –4
Scatterplot of Correlation with Bivariate Data
y y
As x increases, y As x increases, y
tends to tends to
decrease. The increase. The
value of r is close value of r is close
to -1 or r = -1. to 1 r = 1.
x x
Negative Linear Correlation Positive Linear Correlation
y The value of r is y
close to 0 or
r = 0.
x x
No Correlation Nonlinear Correlation
LINEAR CORRELATION COEEFICIENT
The correlation coefficient , denoted by r, measures the strength
and the direction of a linear relationship between two variables.
This coefficient is sometimes called Pearson product moment
correlation since it was developed by the English mathematician
and biostatistician, Karl Pearson. The formula for r is,
n å xy - (å x )(å y )
r= .
n å x - (å x ) n å y - (å y )
2 2 2 2
r = 0.88
r = -0.91
x x
Strong negative correlation Strong positive correlation
y
y
r = 0.42 r = 0.07
x
x
Weak positive correlation Nonlinear Correlation
Pearson’s r Product Moment Correlation Chart
Continued.
CORRELATION COEFFICIENT
Example:
Calculate the correlation coefficient r for the following data.
x y xy x2 y2
1 –3 –3 1 9
2 –1 –2 4 1 There is a direct
3 0 0 9 0 very strong
4 1 4 16 1 correlation
5 2 10 25 4 between x and
å x = 15 å y = -1 å xy = 9 å x 2 = 55 å y 2 = 15 y.
Continued.
CORRELATION COEFFICIENT
Example continued: x 90 92 88 87 90 93 97
y 82 79 81 78 88 86 82
y
88
86
Grade in English
84
82
80
78
x
86 88 90 92 94 96 98
Grade in Math
Continued.
CORRELATION COEFFICIENT
Solution: Construct a table
An r value of
Grade in Math Grade in
xy x2 y2 0.25 means
(x) English (y)
that there is a
90 82 7380 8100 6724
direct weak
92 79 7268 8464 6241 correlation
88 81 7128 7744 6561 between the
87 78 6786 7569 6084 grades of
8100 7744 students in
90 88 7920
Math and
93 86 7998 8649 7396
English.
97 82 7954 9409 6724
90 82 4.5 3.5 1 1
92 79 3 6 -3 9
88 81 6 5 1 1 ∑ D2 = 29.5
87 78 7 7 0 0
90 88 4.5 1 3.5 12.25
93 86 2 2 0 0
97 82 1 3.5 -2.5 6.25
Continued.
Testing a Population Correlation Coefficient
■ Here, we have N = 7 since there are 7 pairs of values for x and y.
Computing for the Spearman’s rank correlation coefficient, we have:
( 6 ∑ 𝐷1 )
𝜌 =1 −
𝑁 ( 𝑁 1 − 1)
# (%&.()
=1 −
* ( *+ ,-)
≈ 0.47
Thus, there is a moderate probability that if the grade in Math is high,
the grade in English is also high; and if the grade in Math is low, the
grade in English is also low.
CORRELATION