the variance of the sum of n independent variables is equal to the sum of their variances.
(variance-independence-test [[1 2 3 4] [1 2 3 4]]) -> 5/2
(defn sum-variance-test
"the variance of the sum of n independent variables is equal to the sum of their variances.
(variance-independence-test [[1 2 3 4] [1 2 3 4]]) -> 5/2
"
[vs]
(- (variance (apply map + vs))
(apply + (map variance vs))))
Comments top
No comments for sum-variance-test. Log in to add a comment.