Understand the idea
Imagine several judges each ranking the same set of contestants. If they all produce nearly identical rankings, agreement is high; if their rankings look unrelated to each other, agreement is low. Kendall's W puts a number on exactly this kind of agreement.
It is the standard effect size reported alongside the Friedman test, which is the rank-based test for three or more REPEATED (within-subject) conditions, the rank-based analogue of repeated-measures ANOVA. A significant Friedman test says the conditions differ; Kendall's W says how consistently the ranking pattern holds across subjects.
A W of 1 means every subject ranked the conditions in exactly the same order; a W near 0 means subjects' rankings of the conditions were essentially unrelated to one another, even if the average ranks per condition still differ somewhat.
Kendall's W is the usual Friedman test effect size, and it measures rank agreement: 0 means no agreement among the rankings and 1 means perfect agreement.
Practitioner explanation
W = 12*S / (m^2 * n * (n^2 - 1)), where S is the sum of squared deviations of the rank sums from their mean, m the number of judges/subjects/blocks and n the number of items/conditions ranked; W relates directly to the Friedman statistic (chi-square_F = m(n-1)W), so the two are simply different normalizations of the same underlying rank-agreement information.
Ties among ranks require a correction to the standard formula. KernelStats obtains W as chi-square_F / (m(n-1)) from scipy's tie-corrected Friedman statistic, so the tie correction is applied automatically.
KernelStats' Friedman test card reports Kendall's W directly from the same rank sums used for the Friedman statistic, so the test's significance and its effect size come from one consistent computation on the same ranked data.
When to use it
Consider it when
Alongside the Friedman test, to quantify how consistent the ranking pattern across repeated conditions is across subjects or blocks.
Use caution when
As a measure of agreement between INDEPENDENT (not repeated/paired) groups: Kendall's W specifically requires the same set of subjects or blocks ranking the same set of conditions.
Formulas and symbols
Kendall's W
S is the sum of squared deviations of the rank totals from their grand mean; m is the number of blocks/subjects, n the number of conditions ranked.
Common misconceptions
Misconception
A significant Friedman test with a low Kendall's W is a contradiction.
Correction
The Friedman test's significance depends on sample size as well as agreement strength; a large number of subjects can produce a significant result even with modest agreement (a modest but real, consistent pattern). Report both together rather than expecting one to imply a particular value of the other.
