Gastwirth Maximin Efficiency Robust Test (MERT) for Two Samples
The method combines two linear rank tests that are each optimal for a different distribution shape, such as the Wilcoxon test for logistic data and the median test for heavy-tailed data. Their standardised statistics are added and divided by the standard deviation of the sum, using the exact permutation correlation between them; for an extreme pair of tests this combination maximises the minimum efficiency over the family of shapes.
서로 다른 분포 모양에 최적인 두 선형 순위검정, 예를 들어 로지스틱 자료에 맞는 윌콕슨 검정과 꼬리가 두꺼운 자료에 맞는 중앙값 검정을 결합합니다. 두 표준화 통계량을 더한 뒤 두 통계량의 정확한 순열 상관으로 구한 합의 표준편차로 나누며, 극단의 두 검정을 쓰면 이 결합은 분포 모양 집합 전체에서 최소 효율을 최대로 만듭니다.
Which two-sample location test should I use when I do not know whether the data are light- or heavy-tailed?
자료의 꼬리가 얇은지 두꺼운지 모를 때 어떤 두 표본 위치 검정을 써야 할지 알고 싶습니다.
The method reports the z statistics of both component tests, their correlation, the combined MERT z, and permutation (or exact) and normal p-values.
When to use Gastwirth Maximin Efficiency Robust Test (MERT) for Two Samples
- You want a two-sample location test that stays efficient whatever the tail shape.
- You must fix the test before seeing the data and cannot choose between Wilcoxon and the median test.
- You want a guaranteed lower bound on efficiency relative to the best test in a family.
When to use something else
- You already know the data are roughly logistic or normal: use Mann-Whitney U Test
- You expect the groups to differ in spread as well as location: use Cucconi Location-Scale Two-Sample Test
- More than two groups: use Kruskal-Wallis Test
Assumptions and requirements
- Independent observations within and between groups
- Groups differ, if at all, by a shift in location
- The two score families are positively correlated
What the analysis reports
- z statistics of the two component tests
- Correlation between them and the efficiency bound (1 + rho)/2
- MERT z with permutation or exact p-value and normal p-value
How to report it
Gastwirth's MERT combining the Wilcoxon and median tests (rho = [value]) gave z = [value], p = [value].
Related methods
- Mann-Whitney U Test
- Mood's Median Test
- Van der Waerden Normal Scores Test
- Cucconi Location-Scale Two-Sample Test
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-9.
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과(허용오차 1e-9).
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 Gastwirth Maximin Efficiency Robust Test (MERT) for Two Samples 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.