Corr Spearman

You might also like

Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 3

Month Value x rank (x) Value y rank (y) d

(1) (2) (3) (4) (5) (6)=(3)-(5)


1 1 1 1 1.5 -0.5
2 2 2 1 1.5 0.5

Rank X 1 2 3 4 5
Rank Y 1.5 1.5 3.5 3.5 5
Rank X-Rank Y (d) -0.5 0.5 -0.5 0.5 0
d2 0.25 0.25 0.25 0.25 0

2
6∑ d
r s =1− 2
1 6
n ( n −1 ) 120
0.05
0.95
y rank (y) d 2
(5) (6)=(3)-(5) d
(7)
1.5 -0.5 0.25
1.5 0.5 0.25
Month Value x rank (x) Value y rank (y) d 2
(1) (2) (3) (4) (5) (6)=(3)-(5) d
(7)
1 1 1 1 1.5 -0.5 0.25
2 2 2 1 1.5 0.5 0.25

n ∑ xy −( ∑ x )( ∑ y )
r=
√ (n∑ x − (∑ x ) )( n∑ y −( ∑ y ) )
2 2 2 2

X Y XY X2 Y2 Nominator 35
1 1 1 1 1 Denominator 50 30
2 1 2 4 1 38.72983
3 2 6 9 4
4 2 8 16 4 r 0.903696
5 4 20 25 16
SUM 15 10 37 55 26

You might also like