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.

1.2.3-SNAPSHOT
permalink

- (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.

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

© incanter
See http://incanter.org for copyright and license details.

(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))))

© incanter
See http://incanter.org for copyright and license details.

Used in 0 other vars

## Comments top

## No comments for

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