Central Moment

Shipping
array_central_moment

The n-th central moment E[(x-μ)ⁿ] of an array (2 = variance, 3 = skew, 4 = kurtosis)

Signature

Inputs

  • dataArrayrequiredAny array, flattened to 1-D before the moment is taken.

Outputs

  • momentScalarThe n-th central moment about the mean.

Parameters

KeyTypeDefaultNotes
orderint2Order $n$ of the central moment $E[(x-\mu)^n]$. $2$ = variance, $3$ = (unstandardized) skew, $4$ = (unstandardized) kurtosis.

Description

Central Moment computes the -th moment of the data about its mean, . The order parameter picks : order is the variance, order the (raw, unstandardized) skewness numerator, order the (raw) kurtosis numerator. Order is by definition and order is (the first central moment always vanishes).

Unlike the standardized shape statistics on Array Summary, this node returns the raw moment in the data's units — useful when you need the moment itself (e.g. to build a custom estimator) rather than a dimensionless ratio. The node is stateless.

Mathematics

Examples

Variance via order 2

With order = 2, the node returns . For (mean ) that is .

Applications

  • Building custom shape estimators from raw moments.
  • Feeding higher-order moments into method-of-moments parameter fits.
  • Teaching / diagnostics where the un-normalized moment is the quantity of interest.

Neat

Order is clamped to $\ge 0$ and truncated to an integer, so the node degrades gracefully for out-of-range inputs instead of erroring.

The first central moment is identically zero and the zeroth is one — a handy sanity check that the reduction is centred correctly.

See also

momentvarianceskewnesskurtosisstateless