3.11.20.2.7. statsmodels.stats.stattools.robust_skewness

statsmodels.stats.stattools.robust_skewness(y, axis=0)[source]

Calculates the four skewness measures in Kim & White

Parameters:

y : array-like

axis : int or None, optional

Axis along which the skewness measures are computed. If None, the entire array is used.

Returns:

sk1 : ndarray

The standard skewness estimator.

sk2 : ndarray

Skewness estimator based on quartiles.

sk3 : ndarray

Skewness estimator based on mean-median difference, standardized by absolute deviation.

sk4 : ndarray

Skewness estimator based on mean-median difference, standardized by standard deviation.

Notes

The robust skewness measures are defined

SK2=(q.75q.5)(q.5q.25)q.75q.25
SK3=μˆq0.5ˆE[|yˆμ|]
SK4=μˆq0.5ˆσ
[R85]Tae-Hwan Kim and Halbert White, “On more robust estimation of

skewness and kurtosis,” Finance Research Letters, vol. 1, pp. 56-73, March 2004.