Correlation
Correlation
MATH – 361
Introduction to Probability and Statistics
Lecture No. 40
Correlation
Correlation
• Rectangular coordinate
• Two quantitative variables
• One variable is called independent (X) and the second is called
dependent (Y)
• Points are not joined Y
* *
• No frequency table *
X
Example
Wt.
67 69 85 83 74 81 97 92 114 85
(kg)
SBP
120 125 140 160 130 180 150 140 200 130
(mmHg)
Wt.
67 69 85 83 74 81 97 92 114 85
(kg)
SBP
120 125 140 160 130 180 150 140 200 130
(mmHg)
➢positive relationship
➢negative relationship
➢no relationship
Positive and Negative Relationship
No Relation
Simple Correlation coefficient (r)
A sample of 6 children was selected, data about their age in years and
weight in kilograms was recorded as shown in the following table . It is
required to find the correlation between age and weight
8 3 64 9 24
2 9 4 81 18
1 7 1 49 7
5 6 25 36 30
6 5 36 25 30
➢Compute the value of di for each pair of observation by subtracting the rank
of Yi from the rank of Xi
➢Square each di and compute ∑di2 which is the sum of the squared values
Apply the following formula
Rank Rank
(X) (Y) di di2
X Y
A Preparatory 25 3 4 -1 1
B Primary. 10 4 2 2 4
C University. 8 1 1 0 0
D secondary 15 2 3 -1 1
E illiterate 50 5 5 0 0
∑ di2=6
Comment:
There is a direct intermediate correlation between level of education
and income
29
Practice Problem - 1
In a study of the relationship between level education and income the
following data was obtained. Find the relationship between them and
comment
Sample numbers level education (X) Income (Y)
A Preparatory 25
B Primary 10
C University 8
D secondary 10
E secondary 15
F illiterate 50
G University 60
30
Practice Problem - 2
31
Practice Problem - 3
Study Links
https://www.youtube.com/watch?v=zhTtjBvvOcM
https://www.questionpro.com/blog/spearmans-rank-coefficient-of-
correlation/
https://statistics.laerd.com/statistical-guides/spearmans-rank-order-
correlation-statistical-guide.php