Ruby for statistics