Statsample-GLM is an extension of *Generalized Linear Models* to Statsample, a suite of advance statistics in Ruby.


Statsample-GLM is an extension of Statsample, and includes many helpful regression techniques for Generalized Linear models such as:

  • Poisson Regression

  • Logistic Regression

  • Exponential Regression

  • Iteratively Reweighted Least Squares

Statsample-GLM was created by Ankur Goel as part of Google's Summer of Code 2013. It is the part of SciRuby

Note: This is under active development!


gem install statsample-glm


To use the library

require 'statsample-glm'

You can also go through the blog-posts on my blog for descriptive explanation and examples.


The API doc is online. For more code examples see also the test files in the source tree.


  • Fork the project.

  • Create your feature branch

  • Add/Modify code.

  • Write equivalent documentation and *tests*.

  • Run `rake test` to verify that all test case passes.

  • Push your branch.

  • Pull request. :)

Project home page

Information on the source tree, documentation, issues and how to contribute, see

This Biogem is published at

Copyright © 2013 Ankur Goel. See LICENSE.txt for further details.