Statistics Toolbox    
moment

Central moment of all orders

Syntax

Description

m = moment(X,order) returns the central moment of X specified by the positive integer order. For vectors, moment(x,order) returns the central moment of the specified order for the elements of x. For matrices, moment(X,order) returns central moment of the specified order for each column.

Note that the central first moment is zero, and the second central moment is the variance computed using a divisor of n rather than n-1, where n is the length of the vector x or the number of rows in the matrix X.

The central moment of order k of a distribution is defined as

where E(x) is the expected value of x.

Example

See Also
kurtosis, mean, skewness, std, var


  mle multcompare