Skip to content

Instantly share code, notes, and snippets.

@al3xandr3
Created July 28, 2009 09:23
Show Gist options
  • Save al3xandr3/157038 to your computer and use it in GitHub Desktop.
Save al3xandr3/157038 to your computer and use it in GitHub Desktop.
;; 5 samples => 2.9595399991095066
(mean (for [_ (range 10000)] (abs (- (mean weights) (mean (sample weights :size 5))))))
;; 10 samples => 2.0840500000983475
(mean (for [_ (range 10000)] (abs (- (mean weights) (mean (sample weights :size 10))))))
;; 40 samples => 1.0537100001504645
(mean (for [_ (range 10000)] (abs (- (mean weights) (mean (sample weights :size 40))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment