Skew

Overview

Skew is the third moment of a statistical distribution. Skew is defined as
{% skew = E[(X_i - \mu)^3] %}
where {% \mu %} is the mean of the distribution.

Skew Visualized

The lognormal distribution exhibits signifcant skew.


Implementation

from scipy.stats import skew # Sample data data = [88, 85, 82, 97, 67, 77, 74, 86, 81, 95, 77, 88, 85, 76, 81] # Calculate bias-corrected sample skewness data_skewness = skew(data, bias=False) print(f"Skewness: {data_skewness}")