﻿# How can Mann-Whitney be misreported as a benchmark median test?

A practical investigation of how can Mann-Whitney be misreported as a benchmark median test?, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-bench-mann-whitney-not-automatic-median-test/
Language: en

## The comparison being tested

A performance report compares skewed request latencies with Mann-Whitney U and announces that one service’s median is significantly lower. The statistical result does not automatically justify that wording. SciPy defines an independent-sample distributional null and notes that a location interpretation requires stronger assumptions. The report must align the hypothesis tested with the operational quantity it claims to establish.

## The confounding mechanism

Ranks compare the relative positions of observations rather than directly testing a difference between sample medians. Distributions can differ in shape, tails or mixture composition, so a simple location-shift interpretation needs support. Pairing and shared-session dependence matter separately: sending related requests to both candidates does not make their observations independent merely because the analysis function accepts separate arrays.

## Fix the experimental contract

Declare the estimand and sample unit before selecting the test. If the decision concerns median delay, report a median effect estimate and uncertainty from a justified method. If the decision concerns the documented rank-test hypothesis, state that hypothesis explicitly. Preserve whether runs, sessions or requests form independent units, and record exact versus asymptotic calculation, tie handling and any continuity correction.

## A step-by-step comparison

First inspect distributions and workload-class composition alongside the intended comparison design. Verify independent-sample suitability or use a justified paired or grouped analysis instead. Run the declared test with preserved options and retain the effect estimate separately from its p-value. Include a synthetic control with equal medians but different shapes to ensure the reporting text does not translate every distributional result into a median claim.

## Evidence required for the result

The evidence package should contain raw observation identities, group structure, distribution plots, test settings and a precise statement of the null and alternative. Keep failures and censoring visible rather than replacing them with convenient finite latencies. Acceptance means the conclusion follows the actual hypothesis and assumptions. A small p-value is not an effect size, a probability that the null is true or a hardware-wide performance guarantee.

## Interpretation and limits

No single test makes an unsuitable latency sample representative. Heavy dependence, adaptive stopping or changing request mixtures can invalidate a tidy inferential label. This protocol does not calculate a new significance result. It helps a reader distinguish distributional evidence from a median comparison and keeps practical magnitude, uncertainty and service constraints in the result rather than hiding them behind the test’s name.

## Primary references and related reading

A rank-test result supports its stated distributional hypothesis, not an unstated universal claim about medians. [SciPy Mann-Whitney U test](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mannwhitneyu.html); [SciPy bootstrap reference](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.bootstrap.html).

The proposed investigation of mann whitney not automatic median test is not an executed deployment benchmark. Related reading: [GPU benchmark confidence intervals: what counts as an observation](/journal/gpu-benchmark-confidence-interval/); [Heterogeneous GPUs in one report: aggregating benchmark results](/journal/heterogeneous-gpu-benchmark-aggregation/).
