Skip to main content
QUICK REVIEW

[Paper Review] Should we really use post-hoc tests based on mean-ranks?

Alessio Benavoli, Giorgio Corani|arXiv (Cornell University)|May 9, 2015
Data Mining Algorithms and ApplicationsComputer Science9 references229 citations
TL;DR

This paper argues against using mean-ranks post-hoc tests in multiple algorithm comparisons, as their results depend on the entire set of algorithms tested, leading to inconsistent and paradoxical conclusions. It proposes replacing them with pair-wise tests like the sign-test or Wilcoxon signed-rank test, which depend only on the two algorithms being compared, ensuring more reliable and consistent inference.

ABSTRACT

The statistical comparison of multiple algorithms over multiple data sets is fundamental in machine learning. This is typically carried out by the Friedman test. When the Friedman test rejects the null hypothesis, multiple comparisons are carried out to establish which are the significant differences among algorithms. The multiple comparisons are usually performed using the mean-ranks test. The aim of this technical note is to discuss the inconsistencies of the mean-ranks post-hoc test with the goal of discouraging its use in machine learning as well as in medicine, psychology, etc.. We show that the outcome of the mean-ranks test depends on the pool of algorithms originally included in the experiment. In other words, the outcome of the comparison between algorithms A and B depends also on the performance of the other algorithms included in the original experiment. This can lead to paradoxical situations. For instance the difference between A and B could be declared significant if the pool comprises algorithms C, D, E and not significant if the pool comprises algorithms F, G, H. To overcome these issues, we suggest instead to perform the multiple comparison using a test whose outcome only depends on the two algorithms being compared, such as the sign-test or the Wilcoxon signed-rank test.

Motivation & Objective

  • To identify fundamental inconsistencies in mean-ranks post-hoc tests used after the Friedman test in algorithm comparison studies.
  • To demonstrate that the outcome of mean-ranks comparisons depends on the entire pool of algorithms tested, not just the pair under comparison.
  • To argue that this dependency leads to paradoxical results, such as declaring a difference significant in one context and not in another with different algorithm sets.
  • To propose a more robust alternative using pair-wise non-parametric tests that depend only on the two algorithms being compared.
  • To discourage the use of mean-ranks tests in machine learning, medicine, psychology, and related fields due to their inherent logical flaws.

Proposed method

  • Analyzing the dependency of mean-ranks post-hoc tests on the full set of algorithms included in the experiment.
  • Demonstrating through logical and hypothetical examples that the significance of a comparison between two algorithms (e.g., A and B) can change based on the presence of other algorithms (e.g., C, D, E vs. F, G, H).
  • Proposing the use of the sign-test or Wilcoxon signed-rank test as alternatives, which evaluate only the two algorithms being compared.
  • Emphasizing that these alternative tests are invariant to the inclusion of other algorithms, ensuring consistent inference.
  • Providing theoretical justification that such pair-wise tests are more appropriate for establishing reliable, context-independent differences.

Experimental results

Research questions

  • RQ1Does the outcome of a mean-ranks post-hoc test depend on the full set of algorithms tested, even when comparing only two algorithms?
  • RQ2Can the same comparison between two algorithms yield contradictory significance results depending on the inclusion of other algorithms?
  • RQ3Are there alternative post-hoc tests that depend only on the two algorithms being compared, ensuring consistent inference?
  • RQ4Why is the use of mean-ranks tests problematic in fields like machine learning, medicine, and psychology?
  • RQ5What are the logical inconsistencies introduced by mean-ranks tests in multiple algorithm comparison scenarios?

Key findings

  • The mean-ranks post-hoc test produces inconsistent results because its outcome depends on the entire pool of algorithms tested, not just the pair being compared.
  • A difference between two algorithms A and B can be declared significant in one experimental setup and not significant in another, even with identical performance data, solely due to the inclusion of different third-party algorithms.
  • This dependency leads to paradoxical situations that undermine the reliability and interpretability of statistical conclusions in algorithm comparison studies.
  • The sign-test and Wilcoxon signed-rank test are viable alternatives because their outcomes depend only on the two algorithms being compared, avoiding such inconsistencies.
  • The paper concludes that mean-ranks post-hoc tests should be discouraged in machine learning and related disciplines due to their fundamental logical flaws.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.