statsmodels.stats.stattools.robust_skewness

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

Calculates the four skewness measures in Kim & White

Parameters:
yarray_like

Data to compute use in the estimator.

axisint or None, optional

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

Returns:
sk1ndarray

The standard skewness estimator.

sk2ndarray

Skewness estimator based on quartiles.

sk3ndarray

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

sk4ndarray

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=μq^0.5E^[|yμ^|]
SK4=μq^0.5σ^