KURTOSIS

functionsupportedCore SQL functions

docs.snowflake.com ↗

Data metric functionsAggregate functionsWindow function syntax and usage

Returns the sample excess kurtosis of non-NULL records. If all records inside a group are NULL, the function returns NULL. The following formula is used to compute the sample excess kurtosis: (n * (n+1))/((n-1) * (n-2) * (n-3)) * (n * m_4/(k_2)^2) - 3 * (n-1)^2 / ((n-2) * (n-3))where: - n denotes the number of non-NULL records. - m_4 denotes the sample fourth central moment. - k_2 denotes the symmetric unbiased estimator of the variance.

Syntax

supportedpartialnot supportednot scored

Aggregate function

KURTOSIS( <expr> )

Window function

KURTOSIS( <expr> ) OVER ( [ PARTITION BY <expr2> ] )

Parameters

NameRequiredDescription
exprrequiredAn expression that evaluates to a numeric data type (such as INTEGER, FLOAT, DECIMAL).
expr2requiredAn expression that defines the individual groups or windows.

Returns

Returns DOUBLE if the input data type is DOUBLE/FLOAT. Returns DECIMAL if the input data type is another numeric data type.

Usage notes