Function Math Statistics Class

Skew

Returns the skewness of a distribution, as defined in Numerical Recipes in C, Second Edition. The skewness characterizes the degree of asymmetry of a distribution around its mean.

Signature (Visual Basic / VBA)

Public Function Skew( _
    ParamArray vValues() As Variant _
    ) As Variant

Code Example

    Skew(12, 34, 56) = 0
    Skew(12, 34, 78) = 0.207826562129516
    Skew(SampleData) = 0.358004472742792

Parameters

Parameter Description
vValues The values that are to be processed. Can be numbers, one-dimensional numeric arrays, one-dimensional Variant arrays, one-dimensional Variant arrays with embedded arrays, or any combination of these. The current setting of the StatVarType Property determines which numeric data types are recognized by this function.

Return Value

Function returns the skewness of the numeric values. Function returns Null if there are fewer than two numeric values.