Statistical Analysis in Ruby DSL