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_repint

The total number of observations (n_rep >= 4).

alfafloat, optional

The significance level (between 0.0 and 0.20, default = 0.05)

Returns
criticalfloat or None.

The critical (tabulated) value for the requested confidence level.

alfafloat

The corresponding significance level.

See also

draw_critical_values

draw a graph with the critical values.

fit

performs 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 None for 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 and 6 observations

>>> 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 and 10 observations

>>> 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)