Module 6 Correlation Analysis
Module 6 Correlation Analysis
CORRELATION
ANALYSIS
Engr Ren
Correlation
• Is a linear association between random variables
• The trend is increasing and there is fairly strong, positive linear association
between these variables. Countries with more roller coasters tend to contribute
more to tsunami aid.
Pearson Coefficient of Correlation
• A measure of the strength of the linear relationship between two
variables that is defined in terms of the sample of the variables
divided by their standard deviations
• Represented by “r”
• r lies between +1 to -1
• The + and – signs are used for positive linear correlations and
negative linear correlations, respectively
Problem
• Gil, a Physics teacher is interested in determining the relationship between the
number of hours students spent on studying the Physics final exam and their
obtained final scores. He selected a random sample of eight students in a Physics
class. The scores obtained by these students are shown in the table. What is the
Pearson’s coefficient correlation?
Hours spent in 1 3 5 2 4 3 2 0
studying (X)
Physics Final 70 79 90 77 85 81 75 64
Exam Score (Y)
Solution
Solution
Spearman’s Rank Coefficient
• A method to determine correlation when the data is not
available in numerical form and as an alternative method, the
method of rank correlation is used. Thus, when the values of two
variables are converted to their ranks, and the correlation is
obtained, the method is known as rank correlation
Where n= no of participants/samples
D = difference of rank
Spearman’s Rank Coefficient
• A method to determine correlation when the data is not
available in numerical form and as an alternative method, the
method of rank correlation is used. Thus, when the values of two
variables are converted to their ranks, and the correlation is
obtained, the method is known as rank correlation
Where n= no of participants/samples
D = difference of rank
Problem
• Calculate the Spearman’s rank correlation coefficient of the data in the
table:
X 10 6 9 12 8
Y 8 8 5 6 9
Solution
ρ
SW2
Researchers interested in determining if there is a relationship
between death anxiety and religiosity conducted the following
study. Subjects completed a death anxiety scale (high score =
high anxiety) and also completed a checklist designed to
measure an individuals degree of religiosity (belief in a
particular religion, regular attendance at religious services,
number of times per week they regularly pray, etc.) (high score
= greater religiosity . A data sample is provided on the right.
(a) Construct a scatterplot using the data and describe the
trend, shape and strength of this graph.
(b) Determine their relationship using Pearson’s “r”
(c) Determine their relationship using another tool, Spearman’s
rho