You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: robust jarque-bera normality (skew and kurtosis) tests, including multivariate #8286
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.
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
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.
Activity
josef-pkt commentedon May 19, 2022
Notes
alternativeoptionbiascorrection optionjosef-pkt commentedon May 24, 2022
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.