Professional Documents
Culture Documents
Note: Before SPSS version 11.0, the WEIGHT variable was used to replicate a case
as many times as indicated by the integer portion of the weight value. The case then
had a probability of additional inclusion equal to the fractional portion of the
weight value.
1 6 1 6
di = R X i − R Yi
N
Tx + Ty − ∑d i
2
i =1
ρs =
2 Tx Ty
where
1
2 NONPAR CORR
N 3 − N − STx N 3 − N − STy
Tx = and Ty =
12 12
N −2
t = ρs
1 − rs2
Kendall’s Tau
For each of the variables X and Y separately, the observations are sorted into
ascending order and replaced by their ranks. In situations where t observations are
tied, the average rank is assigned.
Each time t > 1 , the following quantities are computed and summed over all
groups of ties for each variable separately.
τv = ∑t − t
2
τ ′ = ∑ 4t − t 91t − 26
v
2
Each of the N cases is compared to the others to determine with how many cases its
ranking of X and Y is concordant or discordant. The following procedure is used.
1 6
For each distinct pair of cases i , j , i < j the quantity
3 8 1 6 R3Yj 8 − R1Yi 6
dij = R X j − R X i
1 6
is computed. If the sign of this product is positive, the pair of observations i , j is
concordant, since both members of observation i are either less than or greater than
their respective measurement in observation j. If the sign is negative, the pair is
discordant.
The number of concordant pairs minus the number of discordant pairs is
NONPAR CORR 3
N −1 N
S= ∑ ∑ sign3dij 8
i =1 j =i +1
3 8
where sign d ij is defined as +1 or –1 depending on the sign of dij . Pairs in which
dij = 0 are ignored in the computation of S.
16
Kendall’s tau τ is computed as
S
τ=
N2 − N −τ x N2 − N −τ y
2 2
τ ′x τ ′y τ xτ y
d=
1
18
>1 6
K 2 N + 5 − τ ′′x − τ ′′y + C
9K N − 2 1+
6
2K
where
K = N2 − N
S
Z=
d
References
Kendall, M. G. 1955. Rank correlation methods. London: Charles Griffin.
4 NONPAR CORR
Siegel, S. 1956. Nonparametric statistics for the behavioral sciences. New York:
McGraw-Hill.