FUNCTION REFERENCE
kurtosis
Sample kurtosis.
Sample kurtosis.
Syntax
k = kurtosis(X)Syntax
k = kurtosis(X, flag)Syntax
k = kurtosis(X, flag, dim)The fourth central moment divided by the squared second central moment, both with divisor n. This is not the excess kurtosis: a normal distribution has kurtosis 3. flag 1 or [] (default) gives the biased value; flag 0 gives the bias-corrected value (n-1)/((n-2)(n-3)) * ((n+1)k - 3(n-1)) + 3, which needs at least 4 values (NaN otherwise). NaN values are ignored. Constant data gives NaN. X is double, single or logical: single input gives single results (computed in double, then rounded), and integer input is an error, as the published page lists single and double only.
Example
kurtosis([1 2 3 10]) % 2.2304Example
kurtosis([1 2 3 4 10], 0) % 6.1520Differences from MATLAB: No 'all' or vector dimensions. Real 2-D data only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.