scipy.stats.normaltest

scipy.stats.normaltest(a, axis=0)

Tests whether a sample differs from a normal distribution

This function tests the null hypothesis that a sample comes from a normal distribution. It is based on D’Agostino and Pearson’s [R92], [R93] test that combines skew and kurtosis to produce an omnibus test of normality.

Parameters :

a : array

axis : int or None

Returns :

p-value : float

A 2-sided chi squared probability for the hypothesis test

References

[R92](1, 2) D’Agostino, R. B. and Pearson, E. S. (1971), “An Omnibus Test of Normality for Moderate and Large Sample Size,” Biometrika, 58, 341-348
[R93](1, 2) D’Agostino, R. B. and Pearson, E. S. (1973), “Testing for departures from Normality,” Biometrika, 60, 613-622

Previous topic

scipy.stats.kurtosistest

Next topic

scipy.stats.itemfreq

This Page