scipy.stats.mstats.

skewtest#

scipy.stats.mstats.skewtest(a, axis=0, alternative='two-sided')[source]#

Tests whether the skew is different from the normal distribution.

Deprecated since version 2.0.0: scipy.stats.mstats.skewtest is deprecated as of SciPy 2.0.0 and will be removed, along with the scipy.stats.mstats namespace, in SciPy 2.4.0. For similar functionality, use scipy.stats.skewtest with MArray(s) instead of NumPy masked array(s).

Parameters:
aarray_like

The data to be tested

axisint or None, optional

Axis along which statistics are calculated. Default is 0. If None, compute over the whole array a.

alternative{‘two-sided’, ‘less’, ‘greater’}, optional

Defines the alternative hypothesis. Default is ‘two-sided’. The following options are available:

  • ‘two-sided’: the skewness of the distribution underlying the sample is different from that of the normal distribution (i.e. 0)

  • ‘less’: the skewness of the distribution underlying the sample is less than that of the normal distribution

  • ‘greater’: the skewness of the distribution underlying the sample is greater than that of the normal distribution

Added in version 1.7.0.

Returns:
statisticarray_like

The computed z-score for this test.

pvaluearray_like

A p-value for the hypothesis test

Notes

For more details about skewtest, see scipy.stats.skewtest.