Skip to content

ENH: robust jarque-bera normality (skew and kurtosis) tests, including multivariate #8286

Open

Description

@josef-pkt

related
#8274
#8269
#8261

I don't actually want normality tests, I want information about skew and kurtosis. (e.g. inference for variance depends on 4th moment but not on other features of a distribution, joint mean-variance inference depends on 3rd and 4th moments).
However the test statistics are still derived under normality assumptions (relevant for higher than 4th moments)
The likely target is variance_moments module from #8261 for univariate case.
The multivariate versions (like Doornik-Hansen #382) can go into some some multivariate diagnostic.

some references (just what I saw right now)

Stehlík et al. 2012 has mean, trimmed mean and median as location parameter, has a large class of robustified jarque-bera type tests.
includes proof that they all converge to the corresponding k-th moment, with asymptotic chi2 for JB type statistics.
So far I have kurtosis based on mean and trimmed mean in my draft version for #8261

Bonett for variance of variance only changes the center in the computation of the 4th moment. This is not outlier robustness.
Outlier robust estimates and tests as in Stehlik also trim the moment computation itself.

Kim, Namhyun. 2015. “Tests Based on Skewness and Kurtosis for Multivariate Normality.” Communications for Statistical Applications and Methods 22 (4): 361–75. https://doi.org/10.5351/CSAM.2015.22.4.361.

———. 2016. “A Robustified Jarque–Bera Test for Multivariate Normality.” Economics Letters 140 (March): 48–52. https://doi.org/10.1016/j.econlet.2016.01.007.

Stehlík, Milan, Zdeněk Fabián, and Luboš Střelec. 2012. “Small Sample Robust Testing for Normality against Pareto Tails.” Communications in Statistics - Simulation and Computation 41 (7): 1167–94. https://doi.org/10.1080/03610918.2012.625849.

Activity

  1. josef-pkt commented on May 19, 2022

    @josef-pkt
    MemberAuthor

    Notes

    • jarque bera uses weighted average of "raw" skew and kurtosis, weights correspond to standard error of estimate under normality
    • Our omnitest which uses scipy normaltest uses Agostini correction and unweighted sum, and directly delegates to scipy's skewtest and kurtosistest for the test statistic.
    • scipy skewtest and kurtosistest have the alternative option
    • scipy skew and kurtosis functions have a bias correction option
  2. josef-pkt commented on May 24, 2022

    @josef-pkt
    MemberAuthor

    quick read through (referenced in #8288

    Gamini Premaratne & Anil K. Bera (2017) Adjusting the tests for skewness
    and kurtosis for distributional misspecifications, Communications in Statistics - Simulation and
    Computation, 46:5, 3599-3613, DOI: 10.1080/03610918.2014.988254
    https://doi.org/10.1080/03610918.2014.988254

    looks good and doesn't look too difficult to implement, includes skewness test and kurtosis test without imposing the other.

    standard error for skew test imposes symmetric odd moments (3rth and 5th moment are zero) in Null, but does not restrict kurtosis.
    jarque-bera standard errors for skewness are too small for longer, heavier tailed distributions like t(7) and overreject in those 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