Nonparametric Tests

Nemenyi Test Table: Critical Values for Comparing Average Ranks After a Friedman Test

Critical values for the Nemenyi post-hoc test, which finds which pairs of groups differ after a significant Friedman test, with a critical difference calculator.

  • k = 2 to 20 groups
  • α = 0.10 to 0.01
  • Critical difference calculator

Nemenyi Test Table

Jump to a table below. Rows: number of groups k · Columns: significance level α · Cells: the first table gives qα = q/√2, used directly in the critical difference; the second gives the studentized range q.

Critical values q/√2 (used in the critical difference)

Nemenyi critical values q/√2
Significance level (α) →
Groups (k) ↓
α = 0.1α = 0.05α = 0.025α = 0.01
21.6451.9602.2412.576
32.0522.3442.6042.913
42.2912.5692.8173.113
52.4602.7282.9683.255
62.5892.8503.0843.364
72.6932.9483.1773.452
82.7803.0313.2563.526
92.8553.1023.3243.590
102.9203.1643.3833.646
112.9783.2193.4353.696
123.0303.2683.4823.741
133.0773.3133.5253.781
143.1203.3543.5643.818
153.1593.3913.6003.853
163.1963.4263.6343.884
173.2303.4583.6653.914
183.2613.4893.6943.941
193.2913.5173.7213.967
203.3193.5443.7473.992

Studentized range q (df = ∞)

Studentized range q (infinite df)
Significance level (α) →
Groups (k) ↓
α = 0.1α = 0.05α = 0.025α = 0.01
22.3262.7723.1703.643
32.9023.3143.6824.120
43.2403.6333.9844.403
53.4783.8584.1974.603
63.6614.0304.3614.757
73.8084.1704.4944.882
83.9314.2864.6054.987
94.0374.3874.7005.078
104.1294.4744.7845.157
114.2114.5524.8585.227
124.2854.6224.9255.290
134.3514.6854.9855.348
144.4124.7435.0415.400
154.4684.7965.0925.448
164.5194.8455.1395.493
174.5684.8915.1835.535
184.6124.9345.2245.574
194.6544.9745.2625.611
204.6945.0125.2995.645

Tip: click any value to highlight its row and column.

How to read this table

  1. Run the Friedman test on the k groups over N blocks (subjects, datasets or matched sets). Continue only if it is significant.
  2. Compute the average rank of each group across the N blocks.
  3. Read qα from the first table for your k and α, and compute CD = qα √[k(k + 1) / (6N)].
  4. Two groups differ significantly if their average ranks differ by at least CD.

Worked example

Four methods (A–D) are compared on N = 14 datasets and the Friedman test is significant. Their average ranks are A = 1.7, B = 2.1, C = 2.9, D = 3.3. At α = 0.05 with k = 4, Row k = 4, α = 0.05 gives qα = 2.569.

The critical difference is CD = 2.569 × √[4 × 5 / (6 × 14)] = 1.254. Only the pair A and D (difference 1.6) differ by more than CD, so that pair differs significantly.

Click the underlined links to highlight the value in the table.

Calculator

Enter k, the number of blocks N and α. Optionally paste the average ranks to list the pairs that differ.

Formula and how the values were computed

CD = qα · √[k(k + 1) / (6N)]  ·  qα = qα, k, ∞ / √2

q is the upper α point of the studentized range distribution with k groups and infinite degrees of freedom, as in Demšar (2006). Dividing by √2 converts it to the form used with the standard error of a difference between average ranks. The k = 2 row equals the normal critical value (for example 1.960 at α = 0.05), as it should.

Frequently asked questions

When should I use the Nemenyi test?

After a Friedman test rejects the hypothesis that all k groups are equivalent over N blocks. The Nemenyi test is the rank-based counterpart of Tukey's HSD for all pairwise comparisons.

What is the difference between the Nemenyi test and Bonferroni-Dunn?

The Nemenyi test compares all pairs and controls the familywise error rate over all k(k − 1)/2 comparisons. The Bonferroni-Dunn test compares each group with a single control and is more powerful for that purpose.

Why infinite degrees of freedom?

The variance of rank differences is known from the ranking itself, not estimated from the data, so the studentized range is used with infinite df.

Is the Nemenyi test conservative?

It is considered conservative, especially when k is large, so real differences can be missed. Some authors prefer Holm- or Shaffer-adjusted pairwise Wilcoxon or Conover tests for more power.

Related calculators and tutorials