Function Math Statistics Class

KurtosisArray

Returns the kurtosis of a distribution, as defined in Numerical Recipes in C, Second Edition. More efficient version of the Kurtosis Function but with restrictions on the arguments it accepts. Measures the relative peakedness or flatness of a distribution.

Signature (Visual Basic / VBA)

Public Function KurtosisArray( _
    ByRef vValues As Variant _
    ) As Variant

Code Example

    KurtosisArray(Array(12, 34, 56)) = -2.33333333333333
    KurtosisArray(Array(12, 34, 78)) = -2.33333333333333
    KurtosisArray(SampleData) = -0.18912405888044

Parameters

Parameter Description
vValues Numeric-type array or Variant array containing only numeric elements. This function is NOT affected by the current setting of the StatVarType Property. It assumes that vValues is an array that contains only numeric elements.

Return Value

Function returns the kurtosis of the numeric values. Function returns Null if there are fewer than two numeric values in the array, or if there is some type of error, such as if the argument is a Variant array which contains an Object reference or String.