Skewness
Skewness is the name for the asymmetry of a distribution about its mode. Negative skew, or left skew, indicates that the area under the graph is larger on the left side of the mode. Positive skew, or right skew, indicates that the area under the graph is larger on the right side of the mode.
Incanter has a built-in function for measuring skewness in the stats
namespace:
(defn ex-1-20 [] (let [weights (take 10000 (dishonest-baker 950 30))] {:mean (mean weights) :median (median weights) :skewness (s/skewness weights)}))
The preceding example shows that the skewness of the dishonest baker's output is about 0.4, quantifying the skew evident in ...
Get Clojure for Data Science now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.