bundles / scipy latest / scipy / stats / _mstats_basic / moment
function
scipy.stats._mstats_basic:moment
Signature
def moment ( a , moment = 1 , axis = 0 ) Summary
Calculates the nth moment about the mean for a sample.
Parameters
a: array_likedata
moment: int, optionalorder of central moment that is returned
axis: int or None, optionalAxis along which the central moment is computed. Default is 0. If None, compute over the whole array
a.
Returns
n-th central moment: ndarray or floatThe 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, see scipy.stats.moment.
Aliases
-
scipy.stats._mstats_basic.moment