1. Stats on Rails

    The Stats Module

    Have you ever had an array of numbers and needed to know if one was a statistical outlier? Ever needed the standard deviation of those numbers? Well, I was recently working on an app, where I did. I packaged up the functionality as the following Module.

    If you are unfamiliar with the grubbs test… well you’re not alone, neither was I. I found this page to be especially helpful.

    Usage

    To use the module, simply include it, calculate mean, stddev and n, then use the outlier? funtion.