Correlation Certificate
Correlation Certificate
Correlation Certificate
Note: the positive or negative signs indicate positive or negative relationships respectively. Or they
the relationships are directly or inversely related.
The closer to zero the lower the relationship
Example 3
The following table gives the order in which six candidates were ranked in two tests x and y
x E C B F D A
y F A D E C C
Calculate the rank correlation coefficient and comment on your results
Solution
Rx Ry d d2
6 ∑ 𝑑2
5 6 1 1 ρ = 1- [ ]
𝑛(𝑛2 −1)
3 1 2 4 6 𝑥 14.5
= 1- [ ] = -0.586
2 4 2 4 6(62 −1)
There is a moderate negative correlation
6 5 1 1
between x and y
4 2.5 1.5 2.25
1 2.5 -1.5 225
∑ 𝑑 2 = 14.5
Example 4
Two examiners marked the scripts of 8 candidates. The table shows the marks awarded by two
examiners x and y.
x 72 60 56 76 68 52 80 64
y 56 44 60 74 66 38 68 52
Using Kendall's method, calculate the rank correlation coefficient and comment on your results
Solution
- The ranks of x and y are filled in the table as below those of x in ascending order and those of y
correspondingly as shown in the table below.
- The values of C are bigger values in the column Ry bigger than and below a particular value in
that column. While the values of D are sallerr values in the column Ry bigger than and below a
particular value in that column
- For instance, the first value of C in the table below is the number of values bigger than and
below 2 in column Ry i.e. (5, 3, 6, 7, 4, 8) =6; the first value D = the number of values smaller
than and below 2 in column Ry; i.e. (1) = 1
Rx Ry C D 𝐶−𝐷
τ (tau) =
𝐶+𝐷
1 2 6 1 23−5
τ (tau) = = 0.642
2 1 6 0 23+5
Example 5
The height (cm) an ages (years) of random sample of ten farmers are given in the table below
Height 156 151 152 160 146 157 149 142 158 140
(cm)
Ages 47 38 44 55 46 49 54 52 45 30
(years)
(a)(i) Calculate the Kendall rank correlation coefficient
(ii) comment on your result (06marks)
Example 7
The heights and masses of ten students are given in the table below
Height 156 152 152 146 160 157 149 142 158 68
(cm)
Mass 62 58 63 58 70 60 55 57 68 56
(kg)
(a)(i) Plot the data on a scatter diagram
(ii) Draw the line of the best fit. Hence estimate the mass corresponding to height of 155cm
(b) (i) Calculate the rank correlation coefficient for the data.
(ii) Comment on the significance of the heights on the masses of the students.[Spearman’s ρ =
0.79 and Kendall’s τ = 0.64at 1% level of significance based on 10 observations]
Solution
(a)(i)
Revision questions
1.
Eight candidate seeing admission to a University sat for written and oral test. The scores were
shown below
Written 55 54 35 62 87 53 71 50
(x)
Oral (y) 57 60 47 65 83 56 74 63
(a) Plot the result on a scatter diagram. Comment on the relationship between the written test
and oral test
(b) Draw the line of the best fit on your graph and use it to estimate y when x = 70.
(c) Calculate the rank correlation coefficient. Comment on your results
2.
The pairs of observation have been made on two random variables x and y. the ten (x, y) are
(0, 20), (-7, 12), (-10, 15), (-12, 22), (-17, 5), (-30, -5), (-32, 13), (10, 30), (15, 40), and (-12, 8).
(a) Draw the results on a scatter diagram
(b) Draw the line of the best fit
(c) Estimate the expected value of y corresponding to x = -7
(d) Calculate the rank correlation coefficient and comment on the significance of the results at
1% significance level. (ρ = 0.894, τ= 0.778)
3.
Three examiners X, Y and Z each marked scripts of ten candidates who sat for mathematics
examination. The table below shows the examiner’s ranking of candidates.
A B C D E F G H I J
X 8 5 9 2 10 1 7 6 3 4
Y 5 3 6 1 4 7 2 10 8 9
Z 6 3 7 2 5 4 1 10 9 8
Calculate the coefficient of rank correlation of the rankings
(i) X and Y
(ii) Y and Z
(iii) Comment on the significance of each at 5% significant level
4.
Three weighing scales from three different shops W, X and Y in a market were used to weigh 10
bags of beans (A, B, C……) and the results in (kg) were given in the table below
A B C D E F G H I J
W 65 68 70 63 64 62 73 75 72 78
X 63 68 68 60 65 60 72 73 70 66
Y 63 74 78 75 64 73 79 70 67 79
Determine the rank correlation coefficient for the performance of the scales
(i) W and X
(ii) X and Y
(iii) Which of the three scales W, X and Y were in good working conditions
5.
(a) In many government institution, officers complain about typing errors. A test was designed
to investigate the relationship between typing speed and errors made. Twelve typist A, B, C
…L were picked at random to type a text. The table below shows the rankings of the typist
according to speed and errors made. (N.B lowest ranking in error implies the least errors
Typist A B C D E F G H I J K L
Speed 3 4 2 1 8 11 10 6 7 12 5 9
Errors 2 6 5 1 10 9 8 3 4 12 7 11
(i) Calculate the coefficient of rank correlation
(ii) Comment on the significance at 1% significance level
(b) The cost of travelling at a certain distance away from the city centre is found to depend on
the route and distance a given place is away from the centre. The table below gives average
rates of travel charged for distances to be travelled away from the city centre
Distance 9 12 14 21 24 30 33 45 46 50
(s km)
Rate 750 1000 1150 1200 1350 1250 1400 1750 1600 2000
charged
(r shs)
(i) Plot the above data on a scatter diagram and draw a line of best fit through the points of the
scatter diagram
(ii) Estimate the expected value r corresponding to s = 40km