Module No. 12 Title: Pearson R and Spearman Rho: 1. The Coefficient of Correlation 2. Rank Correlation
Module No. 12 Title: Pearson R and Spearman Rho: 1. The Coefficient of Correlation 2. Rank Correlation
MODULE NO. 12
Title : Pearson r and Spearman Rho
Overview
One of the most widely used statistics is the coefficient of correlation “r”
which measures the degree of association between the two values of related
variables given in the data set. It takes values from +1 to −1. If two sets or data
have r = +1, they are said to be perfectly correlated positively if r = −1 they are
said to be perfectly correlated negatively, and if r = 0 they are uncorrelated.
Data which are arranged in numerical order, usually from largest to smallest
and numbered 1,2,3 --- are said to be in ranks or ranked data. These ranks prove
useful at certain times when two or more values of one variable are the same. The
coefficient of correlation for such type of data is given by Spearman rank difference
correlation coefficient and is denoted by R.
Study Guide
Quizzes 20%
Class activities/exercises 20%
Assignment and Project 15%
Attendance/Deportment 10%
Major Examination 35%
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
3. Make sure if we have face to face during online classes your camera in
ON.
Learning Outcomes
Topic Presentation
Where :
n = number of subjects or respondents or sample size
𝒙 = Independent variable
𝒚 = Dependent variable
Σ𝒙 = sum of observed values in x
Σ𝒚 = sum of observed values in y
Σ𝒙𝒚 = sum of the products in and
Σ𝒙2 = sum of the squares in
(Σ𝒙)2 = square of the sum of
𝒓 = Pearson “r”
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
𝒓 VALUE INTERPRETATION
-1.00 Perfect negative correlation
−0.99 to – 0.60 Strong negative correlation
−0.59 to – 0.30 Moderate Negative correlation
−0.29 to – 0.10 Weak negative correlation
0.00 No correlation
+0.01 to +0.29 Weak positive correlation
0.30 to +0.59 Moderate positive correlation
+0.60 to +0.99 Strong positive correlation
+1.00 Perfect positive correlation
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
SOLUTION:
a. To determine the extent of relationship
Patient
Number 𝒙 𝒚 𝒙2 𝒚2 𝒙𝒚
1 78 140 6084 19600 10920
2 86 160 7396 25600 13760
3 72 134 5184 17956 9648
4 82 144 6724 20736 11808
5 80 180 6400 32400 14400
6 86 176 7396 30976 15136
7 84 174 7056 30276 14616
8 89 178 7921 31684 15842
9 68 128 4624 16384 8704
10 71 132 5041 17424 9372
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
The Pearson correlation coefficient is denoted by the letter “r”. The formula for Pearson
correlation coefficient r is given by:
r =
r =
r =
r =
r = .8371
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
r = .84
III - a. Since 𝒓 = 0.8371 or 84 Falls within the range of +0.60 to 0.99 , Strong
positive correlation.
b. Interpretation - As weight of the patient increases the blood pressure
Increases.
c. Is there a significant relationship between weight and blood pressure.
Use α=.05
Ho : r = 0
H1 : r ≠ 0
I. α=.05
Two-tailed test
Method 1
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
FORMULA TO BE USED :
tTSR = r
= .8371
= .8371
= .8371
= .8371
= .8371 (5.1703)
= 4.3280
tTSR = 4.33
Separate AR from RR
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
EXAMPLE:
A. Calculate the rank Correlation coefficient ‘R’ or Spearman Rho for the data.
B. Test at 5% level of significance whether GPA is significantly related to GRE.
Note that in the GPA column we have two students having a grade of point
average of 8.6 also in G.R.E. score there is a tie for 2000.
Now we first arrange the data in descending order and then rank 1,2,3-----
10 accordingly. In case of a tie, the rank of each tied value is the mean
of all positions they occupy. In x, for instance , 8.6 occupy ranks 5 and 6
So each has a rank ;
Similarly in ‘y’ 2000 ranks 9 and 10, so each has rank rank
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
Now we compute ‘d’ square it and substitute its value in the formula.
= 1−0.0727
= 0.9273 or 𝝆c - computed value
Spearman Rho ( )
Note: If we are provided with only ranks without giving the values of x and y
we can still find Spearman rank difference correlation R by taking the difference
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
2
COURSE TITLE (Statistical Analysis) YP Evangelista
RIZAL TECHNOLOGICAL UNIVERSITY
Cities of Mandaluyong and Pasig
2
COURSE TITLE (Statistical Analysis) YP Evangelista