- Introduced by
- A. M. Mood
- Year
- 1954
- Type
- Nonparametric median comparison
What does it do?
Mood's median test compares the medians of k independent groups.
It pools all observations, finds the grand median, counts how many values in each group lie above and at or below that median, and applies a chi-square test to the resulting 2×k contingency table. The two-sample median test for location is treated in A. M. Mood's 1954 paper on the asymptotic efficiency of nonparametric two-sample tests.
The intuition behind the method
Pool every observation and find one overall median that splits the data in half. Then, group by group, count how many points land above this line and how many land at or below it. If all groups share the same median, each group should be split roughly evenly. When one group has far more values above the line and another has far more below, their medians probably differ. The test uses only which side of the median each point falls on, not how far away it is, so a few extreme values cannot pull the result as far as they would pull a mean-based comparison.
History
The two-sample median test for location is treated in A. M. Mood's 1954 paper on the asymptotic efficiency of nonparametric two-sample tests, where its efficiency against normal alternatives is compared with that of the rank test for location. The procedure is also known as the Brown-Mood median test.
When to use it
Use Mood's median test to compare the central location of two or more independent groups when the outcome is continuous or ordinal and normality cannot be assumed. It is a reasonable choice when a few extreme values are present, because each observation enters only as above or below the grand median. Do not choose it by default when the data are well behaved and power matters, since Kruskal-Wallis uses the full ranking of the values. The test also requires independent groups, so repeated or paired measurements call for other methods. When the total sample is very small, power is low and a permutation test is the safer alternative.
Limitations and considerations
- Reduces each observation to a binary above or below indicator and discards rank information, so it is generally less powerful than Kruskal-Wallis when the data are reasonably well behaved. For normal alternatives, Mood (1954) gives the asymptotic efficiency of the two-sample median test for location as about 2/π (about 64%), compared with about 3/π (about 95%) for the rank test for location. This comparison concerns the two-sample case and does not transfer directly to k groups.
- Power is low in small samples, and the chi-square reference distribution is an approximation that becomes less reliable as expected cell counts shrink.
- A significant result is interpreted as a difference in medians only under broadly similar distribution shapes; markedly different spreads or shapes across groups can produce a rejection that does not reflect a location difference alone.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Resistant to outliers: each value enters only as above or below the grand median, so its magnitude has no influence on the statistic.
- Weak assumptions: it requires independent groups and orderable data, and it imposes no normality requirement.
- Simple computation: the statistic is a Pearson chi-square on a 2×k table, so the counts can be inspected directly, and the same form extends from two groups to k groups.
Applications
- Comparing a median outcome across several independent groups when the data contain outliers that would distort mean-based comparisons.
- Comparing the median of an outcome across independent samples in survey, clinical, or environmental data where extreme values are expected.
- Providing a median-based cross-check on a Kruskal-Wallis result when the conclusion should not depend on the magnitude of extreme observations.
How it works
How it works
All observations from the k groups are pooled and the grand median M is computed. Within each group j the values are classified as above M or at-or-below M, producing the counts that fill a 2×k contingency table (rows: above / below the median; columns: the groups).
Formula
M = \operatorname{median}\big(y_1,\dots,y_N\big),\quad O_{1j}=\#\{y_{ij} > M\},\; O_{2j}=\#\{y_{ij} \le M\}A Pearson chi-square statistic compares the observed above/below counts O_rj with the expected counts E_rj, where E_rj is the count expected under equal medians, equal to the row total multiplied by the column total and divided by the overall total N. Summed over all cells, the statistic follows approximately a chi-square distribution with k−1 degrees of freedom; a large value rejects the hypothesis of equal medians.
Formula
\chi^2 = \sum_{r=1}^{2}\sum_{j=1}^{k}\frac{(O_{rj}-E_{rj})^2}{E_{rj}}\ \sim\ \chi^2_{k-1}Common pitfalls
- Choosing it by default when Kruskal-Wallis would serve better and outliers are not a concern.
- Overlooking the tie rule in the model step: observations equal to the grand median are counted in the at-or-below row, so data with many values at the median shift the counts and should be inspected before interpretation.
- Trusting the chi-square p-value when expected cell counts are small; in that situation a permutation test is preferable.
- Reading a significant result as evidence that the groups differ in every respect, when the test targets the median.
- Treating a significant overall result as identifying which groups differ. The test is omnibus, so naming specific pairs requires pairwise comparisons with a multiplicity adjustment; the related Conover-Iman test entry covers one such follow-up.
Frequently asked questions
How is Mood's median test different from the Kruskal-Wallis test?
Both are nonparametric ways to compare k groups, but Mood's median test only counts how many observations fall above or below the pooled median, while Kruskal-Wallis uses the full ranking of every value. This makes Mood's test more resistant to outliers but usually less powerful when the data are well behaved.
What is the null hypothesis?
The null hypothesis is that all k groups share the same population median, so that within each group an observation is approximately equally likely to fall above or below the grand median. Ties at the median and discrete distributions make this equality approximate. A large chi-square statistic provides evidence against equal medians.
How many observations do I need?
Use a reasonably large overall sample. With small totals the test loses statistical power and a permutation test is preferable; when the total is very small, a median-based chi-square is not meaningful.
Does it assume the groups have the same distribution shape?
It assumes independent groups and orderable data and does not require normality. It is most cleanly interpreted as a test of equal medians when the group distributions have broadly similar shapes; large differences in spread or shape can blur what a rejection means.
Related methods
Sources
Mood, A. M. (1954). On the Asymptotic Efficiency of Certain Nonparametric Two-Sample Tests. Annals of Mathematical Statistics, 25(3), 514-522.
Open DOI referenceHollander, M., Wolfe, D. A., & Chicken, E. (2014). Nonparametric Statistical Methods (3rd ed.). Wiley.
ISBN: 978-0470387375