Archive for the 'statistics' Category

Ruby Cheap Tricks - Stats

Thursday, February 22nd, 2007

For when it’s just as quick to roll your own …
(more…)

How to calculate standard deviation

Monday, March 13th, 2006

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

(more…)