Menu location: **Analysis_Distributions_Kendall's tau**.

Given a value for the test statistic (S) associated with Kendall's tau (t) this function calculates the probability of obtaining a value greater than or equal to S for a given sample size.

Consider two samples, x and y, each of size n. The total number of possible pairings of x with y observations is n(n-1)/2. Now consider ordering the pairs by the x values and then by the y values. If x3 > y3 when ordered on both x and y then the third pair is concordant, otherwise the third pair is discordant. S is the difference between the number of concordant (ordered in the same way, n_{c}) and discordant (ordered differently, n_{d}) pairs.

Tau (τ) is related to S by:

If there are tied (same value) observations then τ_{b} is used:

- where t_{i} is the number of observations tied at a particular rank of x and u is the number tied at a rank of y. When there are no ties τ_{b} = τ.

This function does not calculate probabilities for τ_{b}.

__Technical Validation__

Probabilities are calculated by summation across all permutations when n ≤ 50 and by an Edgeworth series approximation when n > 50 (Best, 1974). The two samples are assumed to have been ranked without ties.

The inverse is calculated by finding the largest value of S that gives a calculated upper tail probability (using the method above) closest to but not less than the P value entered. Please note that the results may differ slightly from tables in textbooks because StatsDirect calculates the inverse of Kendall's statistic more accurately than the routines used to calculate Best's widely quoted 1974 table.

Copyright © 2000-2018 StatsDirect Limited, all rights reserved. Download a free trial here.