mqr.inference.dist.
test_1sample#
- mqr.inference.dist.test_1sample(x, test='ad-norm')#
Hypothesis test on sampling distribution.
- Null-hypothesis
- ‘ad-norm’, ‘ks-norm’x was sampled from the a normal distribution
- Parameters:
- xarray_like
Test the distribution of these values.
- test{‘ad-norm’, ‘ks-norm’}, optional
- ‘ad-norm’Anderson-Darling normality test. Calls
sm..normal_ad
.‘ks-norm’Kolmogoroc-Smirnov test against the normal distribution. Callssm..kstest_normal
.‘lf-norm’Lilliefors test against the normal distribution. Lilliefors test is a Kolmogorov-Smirnov test with estimated parameters. Callssm..lilliefors
.‘sw-norm’Shapiro-Wilk normality test. Callsscipy..shaprio
.‘dp-norm’Dagastino-Pearson normality test. Callsscipy..normaltest
.‘jb-norm’Jarque-Bera normality test. Can lead to high Type-I error under some conditions, see the discussion on Wikipedia. Callsscipy..jarque_bera
.‘cvm-norm’Cramer-von Mises test for goodness of fit, applied to the standard Normal CDF. Callsscipy..cramervonmises
.
- Returns: