1.2.3-SNAPSHOT permalink Arrow_down_16x16

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

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 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

Comments top

No comments for skewness. Log in to add a comment.