Kendall's tau test, also known as the Kendall rank coefficient test, is a nonparametric method for assessing association between two variables. This test is particularly useful for identifying significant correlations when the distributions of the sample and population are unknown. Developed in 1938 by the British statistician Sir Maurice George Kendall, the tau coefficient (denoted as τ) serves as a rank correlation coefficient, with values ranging from -1 to +1.
A τ value of +1 indicates that the ranks of the two variables are perfectly similar, suggesting a strong positive correlation. Conversely, a τ value of -1 indicates that the ranks are perfectly dissimilar, suggesting a strong negative correlation. A positive τ value indicates a positive relationship between the variables, while a negative τ value signifies a negative relationship. This test is a valuable tool for analyzing ordinal data and exploring relationships without relying on strict assumptions about the underlying distributions.
Kendall's τ is a relatively straightforward calculation when there are no ties in the data ranks. The coefficient equation is:

In Kendall's tau test, calculating the quantity N from the ranks is crucial for determining the strength of the correlation between two variables. There are conventional methods as well as alternative approaches for this calculation. One common method involves arranging the data into two columns: the first column contains the rankings of the first variable (e.g., artisan rankings), while the second column lists the corresponding ranks of the second variable.
To visualize the relationships, lines are drawn to connect the same ranks between the two columns—connecting rank 1 in the first column with rank 1 in the second, rank 2 with rank 2, and so on. After establishing these connections, the total number of intersections formed by these lines is counted, denoted as X. This count is then used to calculate N using the following equation:

Kendall's tau test is similar to Spearman's rank test. Both of these tests are equivalent and precise, and there is no rule of thumb or conditions in which either of the tests could be more beneficial. Kendall's tau calculation is, however, more straightforward when there are no ties in the data ranks and is more widely used for such data in general.
Consider an example where 35 pieces of vintage porcelain teacups are ranked independently by an artisan and an ordinary buyer.
Kendall's tau test can be used to find if any association between these two rankings exists.
Here, the null hypothesis states that there is no correlation between the artisan's rankings and the buyer's. The alternative hypothesis is that a correlation exists between these two rankings.
First, arrange the data in a specific order, for instance, per the artisan's ranking.
These paired ranks are required to be converted into counts.
In the conventional method of calculating counts, first, locate a rank and count the total number of ranks higher than that in the same column. Repeat this process for all the ranks in the data.
The test statistic tau can be calculated using the following equation.
The significance of this quantity can be obtained using a suitable computer-based tool.
Kendall's tau is particularly useful for finding linear or non-linear monotonic associations between the variables when there are no ties in the data.