scipy.stats.mstats.
moment#
- scipy.stats.mstats.moment(a, moment=1, axis=0)[source]#
Calculates the nth moment about the mean for a sample.
Deprecated since version 2.0.0:
scipy.stats.mstats.momentis 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.momentwith MArray(s) instead of NumPy masked array(s).- Parameters:
- aarray_like
data
- momentint, optional
order of central moment that is returned
- axisint or None, optional
Axis along which the central moment is computed. Default is 0. If None, compute over the whole array a.
- Returns:
- n-th central momentndarray or float
The appropriate moment along the given axis or over all values if axis is None. The denominator for the moment calculation is the number of observations, no degrees of freedom correction is done.
Notes
For more details about
moment, seescipy.stats.moment.