Exact Median Test
The exact median test asks whether several groups have the same share of values above the pooled median, and computes the p-value exactly from all tables with the same margins instead of relying on a chi-square approximation.
정확 중앙값 검정은 여러 집단에서 전체 중앙값보다 큰 값의 비율이 같은지를, 카이제곱 근사 대신 주변합이 같은 모든 표를 이용해 정확한 p값으로 검정합니다.
Do my groups differ in how often their values fall above the overall median, even though my samples are small?
표본이 작아도 집단마다 값이 전체 중앙값 위에 놓이는 비율이 다른지 알 수 있을까요?
All values are split at the pooled median, giving a 2 x k table of counts above and not above. The p-value is the total probability, under the hypergeometric distribution with all margins fixed, of every table that is no more likely than the observed one (the Fisher-Freeman-Halton ordering). For very large problems a seeded Monte Carlo p-value is reported and flagged.
When to use Exact Median Test
- You compare two or more groups on a numeric or ordinal outcome with small or unbalanced samples.
- Outliers or very different distribution shapes make rank tests hard to interpret.
- Expected counts in the median-split table are too small for the chi-square version.
When to use something else
- Samples are large and the chi-square version is adequate: use Mood's Median Test
- Group distributions have similar shapes and you want more power: use Kruskal-Wallis Test
Assumptions and requirements
- Independent observations
- Values can be ordered
- Ties at the median are handled by a stated rule
What the analysis reports
- Exact (or flagged Monte Carlo) p-value
- Pooled median and counts above and not above per group
- Asymptotic chi-square for comparison
How to report it
An exact median test showed that the proportion above the pooled median (Mdn = [value]) differed across [k] groups, N = [value], exact p = [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Exact Median Test on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and a grouping variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.