Compare two samples using pooled ranks, span statistics, trimming controls, and probabilities for extreme reactions. Export reports and review formulas with practical worked examples.
| Row | Group A | Group B |
|---|---|---|
| 1 | 5 | 11 |
| 2 | 8 | 12 |
| 3 | 9 | 13 |
| 4 | 12 | 14 |
| 5 | 15 | 15 |
| 6 | 18 | 16 |
| 7 | 22 | 17 |
| 8 | 30 | 18 |
This example gives Group A visibly wider extremes. Use the example button to load these values into the calculator.
1. Pooled order: Combine both groups and sort all observations into one sequence.
2. Untrimmed span: Span = max_position - min_position + 1
3. Trimmed span: Trimmed Span = position[m - t] - position[t + 1] + 1
4. Exact span probability:
P(St = s) =
[ Σ C(a - 1, t) × C(s - 2, m - 2t - 2) × C(N - a - s + 1, t) ] / C(N, m)
where N is the pooled size, m is the control size, t is trim per tail, and s is the observed span.
5. Exact one-tailed p-value: sum exact probabilities for all spans at least as large as the observed span.
Larger spans indicate that one group places more observations near both tails of the pooled order, which is the signal targeted by the Moses test.
It checks whether one independent sample places more observations near both tails of the pooled order. That means the sample shows stronger extreme reactions or wider spread in rank positions.
Use it when two independent groups may differ mainly in extremity rather than central tendency. It is helpful when treatment can push some cases unusually high and others unusually low.
The span depends on which group is treated as control. Showing both directions makes comparison transparent and helps you identify which group carries the stronger extreme-reaction pattern.
Trimming removes a chosen number of control observations from each tail before recomputing span. This reduces sensitivity to a very small number of extreme outliers.
It reports an exact one-tailed p-value for spans at least as large as the observed span. Smaller values suggest stronger evidence that the selected control group contains more extreme reactions.
You can enter ties, but classic exact assumptions are strongest without them. This calculator preserves sorted order and does not apply separate tie corrections, so interpret tied datasets with caution.
At minimum, each group needs two observations. In practice, somewhat larger samples are better because extremely small groups can make trimming impossible or the test less informative.
No. Mean tests focus on average shifts. The Moses test focuses on how strongly observations stretch toward the low and high tails of the pooled sequence.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.