1.2.3-SNAPSHOT Arrow_down_16x16

sum-of-square-devs-from-mean

incanter.stats

  • (sum-of-square-devs-from-mean x)
  • (sum-of-square-devs-from-mean x m)
takes either a sample or a sample and a precalculated mean.

returns the sum of the squares of the difference between each observation and the sample mean.

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:2631 top

(defn sum-of-square-devs-from-mean 
"takes either a sample or a sample and a precalculated mean.

returns the sum of the squares of the difference between each observation and the sample mean."
([x]
(sum-of-square-devs-from-mean x (mean x)))

([x m]
   (apply + (square-devs-from-mean x m))))
Vars in incanter.stats/sum-of-square-devs-from-mean: + apply defn
Used in 0 other vars

Comments top

No comments for sum-of-square-devs-from-mean. Log in to add a comment.