statsmodels.stats.moment_helpers.mnc2mc#

statsmodels.stats.moment_helpers.mnc2mc(mnc, wmean=True)[source]#

Convert non-central to central moments, uses recursive formula

Optionally adjusts first moment to return mean.

Parameters:
mncarray_like

Non-central moments, with the first element equal to the mean.

wmeanbool

If True (default), the first returned moment is the mean instead of zero.

Returns:
mundarray or list

Central moments.