get_critical_value#
- pycafee.normalitycheck.abdimolin.AbdiMolin.get_critical_value(self, n_rep, alfa=None)#
This function returns the critical value of the AbdiMolin Normality [1] test at alfa significance level.
- Parameters
- n_rep
int The total number of observations (
n_rep >= 4).- alfa
float, optional The significance level (between
0.0and0.20, default =0.05)
- n_rep
- Returns
- critical
floatorNone. The critical (tabulated) value for the requested confidence level.
- alfa
float The corresponding significance level.
- critical
See also
draw_critical_valuesdraw a graph with the critical values.
fitperforms the AbdiMolin Normality test.
Notes
If the number of observations is higher than
50(n_rep > 50), the function returns an approximate value.This function has critical values for the following confidence levels [2]:
99% (
ɑ = 0.01);95% (
ɑ = 0.05);90% (
ɑ = 0.10);85% (
ɑ = 0.15);80% (
ɑ = 0.20);
The function returns
Nonefor other confidence levels.References
- 1
MOLIN, P.; ABDI, H. New Tables and numerical approximation for the Kolmogorov- Smirnov/Lillierfors/Van Soest test of normality. p. 1–12, 1998. Available from MolinAbdi1998-LillieforsTechReport.pdf.
- 2
SALKIND, N. J. Encyclopedia of measurement and statistics. California: SAGE Publications, Inc., 2007. DOI: 10.4135/9781412952644.
Examples
Getting the critical value for
5%of significance and6observations>>> from pycafee.normalitycheck import AbdiMolin >>> abdimolin_test = AbdiMolin() >>> result = abdimolin_test.get_critical_value(6) >>> print(result) AbdiMolinResult(critical=0.3245, alpha=0.05)
Getting the critical value for
1%of significance and10observations>>> from pycafee.normalitycheck import AbdiMolin >>> abdimolin_test = AbdiMolin() >>> result = abdimolin_test.get_critical_value(10, alfa=0.01) >>> print(result) AbdiMolinResult(critical=0.3037, alpha=0.01)