• incanter

skewness

incanter.stats

• (skewness x)

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

Source incanter/stats.clj:1610 top

```(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))))```
Vars in incanter.stats/skewness: defn double-array
Used in 0 other vars