normaltest#
- scipy.stats.mstats.normaltest(a, axis=0)[source]#
Tests whether a sample differs from a normal distribution.
Deprecated since version 2.0.0:
scipy.stats.mstats.normaltestis deprecated as of SciPy 2.0.0 and will be removed, along with thescipy.stats.mstatsnamespace, in SciPy 2.4.0. For similar functionality, usescipy.stats.normaltestwith MArray(s) instead of NumPy masked array(s).- Parameters:
- aarray_like
The array containing the data to be tested.
- axisint or None, optional
Axis along which to compute test. Default is 0. If None, compute over the whole array a.
- Returns:
- statisticfloat or array
s^2 + k^2, wheresis the z-score returned byskewtestandkis the z-score returned bykurtosistest.- pvaluefloat or array
A 2-sided chi squared probability for the hypothesis test.
Notes
For more details about
normaltest, seescipy.stats.normaltest.Array API Standard Support
normaltestis not in-scope for support of Python Array API Standard compatible backends other than NumPy.See Support for the array API standard for more information.