I was looking up the definition of Kendall's tau-b and noticed that there seems to be two distinct equations floating around:
Equation 1 (Wikipedia): $ \tau_b = \dfrac{n_c - n_d}{\sqrt{ (n_0 - \sum t_i (t_i -1) / 2) (n_0 - \sum u_i (u_i -1) / 2) }}$
Equation 2 (NIST): $ \tau_b = \dfrac{n_c - n_d}{\sqrt{ (n_c + n_d + t) (n_c + n_d + u) }}$
where
- $n_0$ = number of all possible pairs
- $n_c$ = number of concordant pairs
- $n_d$ = number of discordant pairs
- $t_i$ = number of tied values in the ith group of ties for X (according to Wikipedia)
- $u_i$ = number of tied values in the ith group of ties for Y
- $t$ = number of pairs where X is tied
- $u$ = number of pairs where Y is tied
My questions are technical:
- Is $t$ = $\sum t_i (t_i -1) / 2$? I don't understand Wikipedia's definition of $t_i$ (or $u_i$).
- Are the two denominators mathematically equivalent? In other words, are the two equations the same?