Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Statistical Comparisons of Classifiers over Multiple Data Sets

Rank-based tests offer a safer way to compare classifiers across data sets

  • Problem Comparing several classifiers over several data sets has no settled method. Papers often use matrices of pairwise McNemar tests, and Bonferroni correction is rarely applied, which inflates false positives.
  • Method Demšar proposes ranking the algorithms on each data set and testing the average ranks. Friedman's test does the first check, and Nemenyi or Bonferroni-Dunn tests find which pairs differ.
  • Results On simulated selections of ten data sets, the Wilcoxon test rejected the null hypothesis more often than the paired t-test.

Why multi-data-set comparisons stay ad hoc

Comparing two classifiers on one data set is well studied, but comparing several classifiers over several data sets is still unsettled. The authors checked the recent ICML proceedings from 1999 to 2003 to see what practice looks like. Many otherwise excellent papers end with a matrix of McNemar's tests over all pairs of classifiers, as if ANOVA and the Friedman test were yet to be invented.

Pairwise t-tests are about the only significance test in use, and averages over the data sets are seldom used. The Bonferroni correction shows up in only a few ICML papers a year, even though authors often warn against multiple hypothesis testing.

Single-data-set work has its own problems, but the multiple-data-set setting is different. Earlier work on comparing classifiers over several data sets is thin: Salzberg uses a binomial test with Bonferroni, and Hull and Brazdil and Soares use non-parametric or average-rank methods. Those authors either lack statistical grounding or do not test significance at all.

The paper asks which tests suit comparing two or more classifiers on multiple data sets. The authors assume only that the scores are reliable, which means enough experiments per data set. Ideally, all algorithms are evaluated on the same random samples, and the authors make no other assumption about the sampling scheme. Given the assumptions of each test, the paper examines the fit of each to this problem before running experiments.

Key idea: rank the algorithms instead of assuming normality

The authors work with ranks because the raw accuracy scores may not meet the assumptions that ANOVA needs. ANOVA assumes that the samples are drawn from normal distributions. For classification accuracies across a set of problems, there is no guarantee of normality. Ranks sidestep both problems, because they only record the order of the algorithms on each data set.

ANOVA divides the total variability into a part due to the classifiers, a part due to the data sets and a residual error. If the between-classifiers variability is significantly larger than the error variability, the null-hypothesis can be rejected. These procedures behave like a t-test, but their critical values are higher. The higher critical values keep the chance of any false pairwise difference at most 5 %.

The Friedman statistic compares the average ranks R_j of the algorithms against the equal ranks expected under the null-hypothesis. Iman and Davenport showed that the Friedman chi-square is undesirably conservative, so the authors use the better F statistic.

How the Friedman test and its post-hoc steps run

The Friedman test ranks the algorithms separately for each data set, giving the best performing algorithm rank 1. The test then compares the average ranks R_j = (1/N) times the sum over i of r_ji across the N data sets. Under the null hypothesis, all algorithms are equivalent, so their ranks R_j should be equal.

Iman and Davenport showed that the chi-square version of Friedman's statistic is undesirably conservative. They derived a better statistic F_F, which follows an F-distribution with k − 1 and (k − 1)(N − 1) degrees of freedom. Friedman's experiment on 56 independent problems showed that his test and repeated-measures ANOVA mostly agree. When ANOVA finds significance at p < 0.01, the Friedman test shows significance of at least p < 0.05.

If the null hypothesis is rejected, the Nemenyi test compares all classifiers with each other, similar to Tukey's test for ANOVA. Two classifiers differ significantly when their average ranks differ by at least CD = q_alpha times the square root of k(k + 1)/(6N). The q_alpha values come from the Studentized range statistic divided by the square root of 2.

When all classifiers are compared with a control, the Bonferroni-Dunn test divides alpha by k − 1, which gives it more power than Nemenyi in that setting. Holm and Hochberg compare the ordered p values with alpha over k − i, while Hommel's procedure is harder to compute. The authors note that the enhanced methods differ little in practice, so Hommel's extra complexity buys little over Holm.

The worked example compares four C4.5 variants, with m fixed or fitted and cf fixed or fitted. C4.5+m and C4.5+m+cf ranked second with average ranks 2.000 and 1.964. C4.5 and C4.5+cf ranked third with average ranks 3.143 and 2.893. The Friedman statistic for this example is 9.28, computed against the mean rank 2.5 expected under the null hypothesis.

The Iman and Davenport statistic for this example is 3.69.

Do the tests behave as the theory suggests

The authors draw samples of ten data sets from a compendium of forty UCI data sets and record the p values, repeating this 1000 times. The chance that a data set is picked rises with its accuracy difference, through a logistic function controlled by the bias k. At k = 0 the selection is uniform, and larger k favours one of the two learners more strongly.

Because the true hypothesis is unknown for real data, the authors don't measure Type 1 and Type 2 errors and measure rejection rates and replicability instead.

Power is approximated in two ways, by the share of experiments that reject at the 5 % level and by the average p value. Bouckaert's R(e) measures whether two experiments agree in accepting or rejecting the null hypothesis. The authors also define R(p) = 1 - 2 var(p) from the variance of the p values, so a variable selection shrinks it.

The Wilcoxon signed-ranks test gives much lower p values than the t-tests and rejects the null hypothesis more often in almost all cases. The t-test on relative differences is slightly but consistently weaker than the t-test on absolute differences. The sign test is much weaker than the other tests, as the theory predicts. The authors read the stronger rejections of the non-parametric tests as a hint of outliers or violated parametric assumptions.

On Friedman's 56 independent problems, his test and repeated-measures ANOVA mostly agreed. ANOVA alone found significance in 2 cases, while Friedman alone did so in 4 cases. Judged by R(p), the Wilcoxon test shows the smallest variation of p values. Judged by R(e), it is the least reliable near p = 0.05, because its rejections cluster close to the chosen α.

Post-hoc results when several classifiers are compared

When all classifiers are compared with a control classifier, the Bonferroni-Dunn test can beat the Nemenyi test on power. The Nemenyi test adjusts the critical value for k(k-1)/2 comparisons, while a control comparison makes only k-1 comparisons. The Bonferroni-Dunn test divides α by the number of comparisons, which is k-1 in this case. Its CD uses the Nemenyi equation with the critical values for α/(k-1), listed in Table 5(b).

The authors advise against pairwise comparisons when the only question is whether a new method beats the existing ones.

The authors compare all seven algorithms but count rejections for one pair at a time, as in Figure 6. The pairs are C4.5-cf against naive Bayesian classifier and C4.5-cf against kNN, compared with the parametric Tukey test and the non-parametric Nemenyi test. The Nemenyi test rejects the null hypothesis more often than the Tukey test in these runs.

When the differences are large, all tests have comparable power. When the differences are smaller, the parametric test's rejection count lags behind.

Holm and Hochberg give practically equal results in these experiments. Holm's step-down and Hochberg's step-up procedures both compare each p_i with α/(k-i). The CD diagram shows the order of the algorithms, the rank differences and the significance of the observed differences together. The authors argue that this visual form presents these results more clearly than textual or purely numerical output.

What the experiments leave untested

The empirical study doesn't analyse Type 1 or Type 2 error rates at all. It depends on the kind of difference between the algorithms the researcher intends to measure. Measuring these error rates would need data sets and classifiers with prescribed error probabilities and distributions. That would require assumptions about real-world distributions, which are exactly what the paper tests.

The experiments use forty real-world data sets from the UCI repository, restricted to data sets with discrete classes. Artificial data sets like the Monk problems are avoided. Accuracies are measured in advance with ten-fold cross validation, and the selection is only a simulation. Choosing data sets by their known success would be cheating in a practical evaluation.

Replicability depends on how many data sets are used, because the variance of p shrinks as the bias k grows. The authors judge that forty data sets keep this variability practically unaffected for the k values they used. They didn't test smaller collections, so their effect on replicability stays unmeasured.

The authors note that replicability might be a problem, so experiments should use as many data sets as possible. The recommendation for the Wilcoxon and Friedman tests rests on these simulated selections of data sets.

What the authors recommend

The authors recommend the Wilcoxon signed-ranks test for comparing two classifiers over multiple data sets. For comparing more classifiers, they recommend the Friedman test with its corresponding post-hoc tests. They present the results of these post-hoc tests with CD diagrams.

These tests are non-parametric, so they don't assume normal distributions or homogeneity of variance. They assume only limited commensurability between the measurements, which suits classifier results from different data sets. Because of that, the authors say the tests can be applied to error ratios, model sizes and computation times, not only to accuracy.

In their experiments, the Wilcoxon and Friedman tests were also stronger than the other tests studied, especially when comparing a pair of classifiers.

For post-hoc comparisons over all pairs, Holm's procedure is more powerful than the Bonferroni-Dunn test and makes no additional assumptions. When every classifier is compared only with a control classifier, the Bonferroni-Dunn test has much more power than the Nemenyi test. The Bonferroni-Dunn test is easier to describe and visualize, since it uses the same CD for all comparisons.

Hommel's method offers no great advantage over Holm's, so the simpler Holm procedure suffices.

The conclusions still depend on the number of data sets, and replicability can suffer when there are few of them. So the authors advise running the actual experiments on as many data sets as possible. They didn't analyze Type 1 or Type 2 error rates, because the correct result depends on the difference the researcher wants to detect. The authors still see significance tests as useful, provided they are performed correctly and their conclusions are reported carefully.

Paper info

Authors
Janez Demšar
Venue
Journal of Machine Learning Research · Published
Added
2026-11-11
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Janez Demšar (2006). Statistical Comparisons of Classifiers over Multiple Data Sets. Journal of Machine Learning Research. https://www.jmlr.org/papers/v7/demsar06a.html

BibTeX
@article{demar2006statistical,
  title = {{Statistical Comparisons of Classifiers over Multiple Data Sets}},
  author = {Janez Demšar},
  year = {2006},
  journal = {Journal of Machine Learning Research},
  url = {https://www.jmlr.org/papers/v7/demsar06a.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up