Ruby Cheap Tricks - Stats
Thursday, February 22nd, 2007For when it’s just as quick to roll your own …
(more…)
For when it’s just as quick to roll your own …
(more…)
When I started this blog last month, I thought “Standard Deviation” was a snappy title. Of course, I also knew about standard deviation as a statistical tool, however I didn’t expect that this overlap would cause Google search to drive 50+ visitors a month here looking for implementations of the standard deviation formula.
So as a “public service”, here is some code to figure standard deviation in Ruby and Java.
(disclaimer: no warranties as to correctness, particularly to the nth decimal place, don’t use this to run your home made nuclear reactor or air traffic control system, blah blah, etc, etc :-))