Skip to content

Kendall tau distance

The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists.

Version
v1 · 2026-09-28 · History
Domain-specific #
10238
Domain group
Formal Sciences
Origin domain
Experimental Design & Statistics
Subdomains
Rank Distance Metrics, Rank Correlation → Experimental Design & Statistics

Core Idea

Kendall tau distance is treated here as the recurring rank-distance metrics identity summarized by this source-grounded definition: The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists.

The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists. The larger the distance, the more dissimilar the two lists are. Kendall tau distance is also called bubble-sort distance since it is equivalent to the number of swaps that the bubble sort algorithm would take to place one list in the same order as the other list.

The Kendall tau distance was created by Maurice Kendall. K_d(\tau_1,\tau_2) will be equal to 0 if the two lists are identical and \frac{1}{2} n (n-1) (where n is the list size) if one list is the reverse of the other. The Kendall tau distance between two rankings is the number of pairs that are in different order in the two rankings.

For Kendall tau distance, the abstraction is narrower than the article's general subject matter: a positive case must preserve The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists. Retaining only the name, a familiar example, or a downstream effect is insufficient. The specialist roles and tests remain anchored in rank-distance metrics, which is why this identity is domain-specific rather than prime.

Structural Signature

Sig role-phrases:

  • Defining carrier — If Kendall tau distance function is performed as K(L1,L2) instead of K(\tau_1,\tau_2) (where \tau_1 and \tau_2 are the rankings of L1 and L2 elements respectively), then triangular inequality is not guaranteed.
  • Constitutive relation — They are related by K_c = 1 - 4 K_d /(n(n-1)) , K_d = (1 - K_c) (n(n-1))/4.
  • Operating condition — Or simpler by K_c = 1 - 2 K_n , K_n = (1-K_c)/2 where K_n is the normalised distance 2 K_d / (n(n-1)) see above).
  • Recognition evidence — Suppose one ranks a group of five people by height and by weight.
  • Admissible variation — However, this requires n^2 memory, which is inefficient for large arrays.
  • Characteristic consequence — A simple algorithm based on merge sort requires time O(n \log n).
  • Failure boundary — A more advanced algorithm requires time O(n\sqrt{\log{n}}).

What It Is Not

  • Not the whole field of rank-distance metrics. The node requires the specific identity stated by The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists.
  • Not an over-broad reading. The Kendall tau distance between two rankings is the number of pairs that are in different order in the two rankings.
  • Not an over-broad reading. If Kendall tau distance function is performed as K(L1,L2) instead of K(\tau_1,\tau_2) (where \tau_1 and \tau_2 are the rankings of L1 and L2 elements respectively), then triangular inequality is not guaranteed.
  • Not an over-broad reading. Generalised versions of Kendall tau distance have been proposed to give weights to different items and different positions in the ranking.
  • Not automatically Kendall rank correlation coefficient. Retrieval proximity does not establish equivalence; the two identities must be compared by carrier, operation, and failure boundary.

Scope of Application

Kendall tau distance applies literally inside rank-distance metrics wherever the source-defined carrier and relation can be established. Its documented habitats include:

  • Kendall tau distance may also be defined as. If Kendall tau distance function is performed as K(L1,L2) instead of K(\tau_1,\tau_2) (where \tau_1 and \tau_2 are the rankings of L1 and L2 elements respectively), then triangular inequality is not guaranteed.
  • Comparison to Kendall tau rank correlation coefficient. The Kendall tau distance ( K_d ) must not be confused with the Kendall tau rank correlation coefficient ( K_c ) used in statistics.
  • Documented setting. The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists.
  • Definition. The Kendall tau ranking distance between two lists \tau_1 and \tau_2 is.
  • Definition. K_d(\tau_1, \tau_2) = |{(i,j): i \tau_2(j) ] \vee [ \tau_1(i) > \tau_1(j) \wedge \tau_2(i).
  • Definition. where \tau_1(i) and \tau_2(i) are the rankings of the element i in \tau_1 and \tau_2 respectively.

Outside rank-distance metrics, the name should be retained only when these same operational conditions survive; otherwise the comparison belongs to the broader parent Pattern or should be marked as analogy.

Clarity

A clear use of Kendall tau distance names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists. The strongest recognition evidence in the frozen account is: Suppose one ranks a group of five people by height and by weight. A report should distinguish that evidence from a proxy, consequence, or common implementation. It should also state the qualification The Kendall tau distance between two rankings is the number of pairs that are in different order in the two rankings. so that a reader can reproduce the classification rather than infer it from topical resemblance.

Manages Complexity

Kendall tau distance compresses multiple rank-distance metrics details into a stable diagnostic relation. The source shows both the central mechanism—they are related by K_c = 1 - 4 K_d /(n(n-1)) , K_d = (1 - K_c) (n(n-1))/4.—and the practical consequence—a simple algorithm based on merge sort requires time O(n \log n). This compression makes cases comparable while leaving parameters, conventions, exceptions, and evidential quality explicit. It is lossy by design: local history and implementation details may be omitted only when they do not alter the defining relation.

Abstract Reasoning

  1. Type the carrier. Identify the rank-distance metrics entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists.
  3. Check operation and conditions. Or simpler by K_c = 1 - 2 K_n , K_n = (1-K_c)/2 where K_n is the normalised distance 2 K_d / (n(n-1)) see above).
  4. Demand recognition evidence. Suppose one ranks a group of five people by height and by weight.
  5. Test variation. Change an implementation or setting while preserving however, this requires n^2 memory, which is inefficient for large arrays.
  6. Run the collapse test. Remove the defining operation; if the label still seems equally apt, only a topic or correlate was retained.
  7. Reduce cautiously. When the specialist conditions cannot be carried, route the residual comparison to Pattern.

Knowledge Transfer

Within the home domain. Knowledge about Kendall tau distance transfers literally when a new case preserves the same carrier type, relation, and recognition test. If Kendall tau distance function is performed as K(L1,L2) instead of K(\tau_1,\tau_2) (where \tau_1 and \tau_2 are the rankings of L1 and L2 elements respectively), then triangular inequality is not guaranteed. The Kendall tau distance ( K_d ) must not be confused with the Kendall tau rank correlation coefficient ( K_c ) used in statistics.

Beyond the home domain. No canonical parent is asserted for Kendall tau distance. An outside case receives the specialist name only when the same typed roles and rejection conditions can be filled literally; otherwise the comparison remains an analogy pending later graph densification.

Examples

Canonical

The triangular inequality fails sometimes also in cases where there are repetitions in the lists. This case is canonical because it supplies a concrete carrier and lets the defining relation be checked rather than merely named.

Mapped back: carrier → the entities in the documented case; operation → The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists; recognition evidence → Suppose one ranks a group of five people by height and by weight

Applied / In Practice

For example comparing the rankings A>B>C>D and A>B>C>D the distance is 0 the correlation is 1. The applied case shows how the identity is used under a second setting or qualification while keeping the same operative relation.

Mapped back: changed setting → Comparison to Kendall tau rank correlation coefficient; invariant → The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists; boundary → the case exits the class when the Kendall tau distance between two rankings is the number of pairs that are in different order in the two rankings

Structural Tensions

T1 — Stable identity versus admissible variation. The Kendall tau distance between two rankings is the number of pairs that are in different order in the two rankings. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Which changes preserve the defining relation, and which replace it?

T2 — Recognition versus proxy. If Kendall tau distance function is performed as K(L1,L2) instead of K(\tau_1,\tau_2) (where \tau_1 and \tau_2 are the rankings of L1 and L2 elements respectively), then triangular inequality is not guaranteed. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Does the cited evidence establish the identity or only a correlated sign?

T3 — Definition versus implementation. Generalised versions of Kendall tau distance have been proposed to give weights to different items and different positions in the ranking. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Is the observed implementation constitutive, optional, or merely common?

T4 — Scope versus overextension. The Kendall tau distance ( K_d ) must not be confused with the Kendall tau rank correlation coefficient ( K_c ) used in statistics. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Can every claimed application fill the same typed roles without metaphor?

T5 — Transfer versus domain accent. If Kendall tau distance function is performed as K(L1,L2) instead of K(\tau_1,\tau_2) (where \tau_1 and \tau_2 are the rankings of L1 and L2 elements respectively), then triangular inequality is not guaranteed. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: Does the receiving case instantiate Kendall tau distance literally, co-instantiate Pattern, or only resemble it?

T6 — Autonomy versus reduction. They are related by K_c = 1 - 4 K_d /(n(n-1)) , K_d = (1 - K_c) (n(n-1))/4. The tension matters because emphasizing only one side either dissolves the identity or overstates what the evidence and domain conventions warrant.

Diagnostic: What does Kendall tau distance distinguish that the broader parent Pattern leaves together?

Structural–Framed Character

Kendall tau distance is mixed or framed-leaning. Its structural side is the repeatable organization summarized by The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists. Its framed side is the rank-distance metrics vocabulary that fixes the carrier, evidence, exceptions, and admissible transformations.

Evaluative weight: the identity can be stated descriptively even when applications carry practical stakes. Human-practice dependence: the source-grounded carrier determines whether the relation exists independently or is constituted by a practice. Institutional origin: disciplinary conventions stabilize the name and test. Vocabulary portability: Or simpler by K_c = 1 - 2 K_n , K_n = (1-K_c)/2 where K_n is the normalised distance 2 K_d / (n(n-1)) see above). Import versus recognition: literal transfer requires the same mechanism; shape alone is analogy.

Its portable skeleton is Pattern. Its character: a recurring specialist identity whose thin organization can be abstracted, while its operational meaning remains domain-bound.

Structural Core vs. Domain Accent

What is skeletal. The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists. The stable skeleton is the typed relation expressed in that definition and the entry's recognition and collapse tests. The source identifies these operative conditions: If Kendall tau distance function is performed as K(L1,L2) instead of K(\tau1,\tau2) (where \tau1 and \tau2 are the rankings of L1 and L2 elements respectively), then triangular inequality is not guaranteed. They are related by Kc = 1 - 4 Kd /(n(n-1)) , Kd = (1 - Kc) (n(n-1))/4. It further constrains recognition and variation through: Or simpler by Kc = 1 - 2 Kn , Kn = (1-Kc)/2 where Kn is the normalised distance 2 Kd / (n(n-1)) see above). Suppose one ranks a group of five people by height and by weight.

What is domain-bound. rank-distance metrics supplies the operative entities, technical vocabulary, warrants, and exceptions that make Kendall tau distance literal. Its documented scope includes the condition that If Kendall tau distance function is performed as K(L1,L2) instead of K(\tau1,\tau2) (where \tau1 and \tau2 are the rankings of L1 and L2 elements respectively), then triangular inequality is not guaranteed. Another bounded application condition is that The Kendall tau distance ( Kd ) must not be confused with the Kendall tau rank correlation coefficient ( Kc ) used in statistics. These are not decorative examples; they determine which carrier and evidence can fill the abstraction's roles.

Why no parent is asserted. Removing those specialist details does not currently yield one live catalog node that is a necessary genus for every instance. The entry is therefore approved as unparented rather than attached by topical resemblance. Its collapse evidence remains specific—However, this requires n^2 memory, which is inefficient for large arrays.—and future graph densification may discover a defensible relation only if it preserves that boundary.

This entry is a kind of Distance.

  • Approved unparented node. No current live node supplies a defensible necessary genus or structural prerequisite for Kendall tau distance. The reviewed identity is: The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists. The accelerated suggestion was declined because topical or lexical similarity does not establish hierarchy; the node is admitted without a parent pending later graph densification.
  • Related reasoning operations. Evidence, representation, comparison, classification, transformation, or evaluation may participate in particular cases, but participation does not make any one of them a necessary parent of every instance.

Relationships to Other Abstractions

Local relationship map for Kendall tau distanceParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Kendall tau distanceDOMAINPrime abstraction: Distance — is a kind ofDistancePRIME

Current abstraction Kendall tau distance Domain-specific

Parents (1) — more general patterns this builds on

  • Kendall tau distance is a kind of Distance Prime

    Kendall tau distance is a distance function counting pairwise ordering disagreements.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Kendall tau distance sits in a moderately populated region (58th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Combinatorial Optimization & Discrete Structures (31 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-10-08

Not to Be Confused With

  • Pattern. The parent omits the specialist differentia. Tell: Can the case establish The Kendall tau distance or Kendall tau rank distance is a metric (distance function) that counts the number of pairwise disagreements between two ranking lists?
  • Kendall rank correlation coefficient. A rank-association statistic based on the excess of concordant over discordant observation pairs. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • Hyper-Wiener Index. Compress a connected molecular graph's shortest-path distance distribution into a scalar by summing both distance and squared distance over unordered vertex pairs. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • Wiener index. The sum of shortest-path distances over all unordered vertex pairs of a connected graph. Tell: Which entry's carrier, operation, and failure condition are satisfied?
  • A measurement, proxy, or consequence. Those may provide evidence without being the identity. Tell: Would Kendall tau distance remain present if the detector or downstream effect changed?
  • A metaphorical analogue. A similar shape outside rank-distance metrics lacks the specialist mechanism. Tell: Do the native roles transfer literally, or only the parent Pattern?

References

  • Frozen Wikipedia discovery revision: https://en.wikipedia.org/wiki/Kendall_tau_distance (revision 1321900768).
  • Preserved source candidate: http://algs4.cs.princeton.edu/25applications/
  • Preserved source candidate: https://theory.stanford.edu/~sergei/papers/www10-metrics.pdf
  • Preserved source candidate: https://stackoverflow.com/a/6523781

The frozen Wikipedia revision is discovery provenance. The retained source set was reviewed for identity, formal or operational relation, and scope. The encyclopedia's structural synthesis is bounded to those claims; a thin authority surface is recorded as a nonblocking source-strengthening repair rather than concealed.