Created
July 28, 2009 08:57
-
-
Save al3xandr3/157029 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use '(incanter core stats charts)) | |
;; weights (in grams) of 50 randomly sampled bags of preztels | |
(def weights [464 447 446 454 450 457 450 442 | |
433 452 449 454 450 438 448 449 | |
457 451 456 452 450 463 464 453 | |
452 447 439 449 468 443 433 460 | |
452 447 447 446 450 459 466 433 | |
445 453 454 446 464 450 456 456 | |
447 469]) | |
;; calculate the real mean | |
(mean weights) ;=> 451.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment