(defn skewness
"
Returns the skewness of the data, x. \"Skewness is a measure of the asymmetry
of the probability distribution of a real-valued random variable.\" (Wikipedia)
Examples:
(skewness (sample-normal 100000)) ;; approximately 0
(skewness (sample-gamma 100000)) ;; approximately 2
References:
http://incanter.org/docs/parallelcolt/api/cern/jet/stat/tdouble/DoubleDescriptive.html
http://en.wikipedia.org/wiki/Skewness
"
([x] (DoubleDescriptive/skew (DoubleArrayList. (double-array x)) (mean x) (sd x))))
Used in 0 other vars
Comments top
No comments for skewness. Log in to add a comment.