Skip to content

ENH: stats add Brunner Munzel test #3575

Open

Description

@josef-pkt

two or k-sample comparison with unequal distributions, like Behrens-Fisher problem if variance differs.

If we have two samples with different distributions, variance, skewness and kurtosis, then comparing means, medians or center of location might be only partially interesting.
kruskal-wallis and Brunner-Munzel test something like
P(y_1 < y_2) = 0.5 or
P(y_1 < y_2) + 0.5 * P(y_1 = y_2) = 0.5 (with ties or discrete variables)

see comment in #3571 for permutation tests (sample sizes < 10 in a group)

Neuhäuser, Markus. 2010. “A Nonparametric Two-Sample Comparison for Skewed Data with Unequal Variances.” Journal of Clinical Epidemiology 63 (6): 691–93. doi:10.1016/j.jclinepi.2009.08.026.

Brunner, Edgar, and Ullrich Munzel. 2000. “The Nonparametric Behrens-Fisher Problem: Asymptotic Theory and a Small-Sample Approximation.” Biometrical Journal 42 (1): 17–25. doi:10.1002/(SICI)1521-4036(200001)42:1<17::AID-BIMJ17>3.0.CO;2-U.

Fagerland, Morten W., and Leiv Sandvik. 2009. “Performance of Five Two-Sample Location Tests for Skewed Distributions with Unequal Variances.” Contemporary Clinical Trials 30 (5): 490–96. doi:10.1016/j.cct.2009.06.007.

this article (I didn't read) looks like a good overview of implicit and explicit assumptions and interpretation when stricter assumptions don't hold. There are articles that make a similar point
Fay, Michael P., and Michael A. Proschan. 2010. “Wilcoxon-Mann-Whitney or T-Test? On Assumptions for Hypothesis Tests and Multiple Interpretations of Decision Rules.” Statistics Surveys 4: 1–39. doi:10.1214/09-SS051.

Also, there are several more recent papers with application or variation of Brunner-Munzel to various setting including multiple hypothesis testing and multiple comparisons.

implementation:
The basic Brunner-Munzel test with t-statistics similar to Welch-Satterthwaite looks relatively easy because scipy has midrank function, and we have the pattern for Welch-Satterthwaite.
Adding permutation looks also relatively straight forward, as in #3571 references.

Activity

  1. josef-pkt commented on Apr 29, 2017

    @josef-pkt
    MemberAuthor

    see scipy PR #7352 for adding brunnermunzel

  2. josef-pkt commented on Aug 15, 2020

    @josef-pkt
    MemberAuthor

    PR for brunner munzel and extensions is #6971

    permutation version will not fit into this directly because we have other extensions like nonzero null, for which it doesn't apply.

  3. josef-pkt commented on Aug 25, 2022

    @josef-pkt
    MemberAuthor

    two more articles comparing brunner-munzel with other tests

    Fagerland, Morten W., and Leiv Sandvik. 2009. “The Wilcoxon–Mann–Whitney Test under Scrutiny.” Statistics in Medicine 28 (10): 1487–97. https://doi.org/10.1002/sim.3561.

    Fagerland, Morten W., Leiv Sandvik, and Petter Mowinckel. 2011. “Parametric Methods Outperformed Non-Parametric Methods in Comparisons of Discrete Numerical Variables.” BMC Medical Research Methodology 11 (1): 44. https://doi.org/10.1186/1471-2288-11-44.

    The second article recommends BM and Welch t-test,
    WMW test is pretty bad if distributions differ across samples, can be liberal or conservative across cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions