http://www.perlmonks.org?node_id=1048611


in reply to Multinomial Distribution Test in Perl

Do you really have to use perl for this? I mean, I love the language and everything, but there are much better ways to do this kind of thing. Like:

http://stat.ethz.ch/R-manual/R-patched/library/stats/html/Multinom.html

or: http://www.mathworks.com/help/stats/mnrnd.html

I don't know your situation, but I don't think mathematics and statistics is really perl's strong point. Maybe it makes sense to use something designed for that?

  • Comment on Re: Multinomial Distribution Test in Perl

Replies are listed 'Best First'.
Re^2: Multinomial Distribution Test in Perl
by CountZero (Bishop) on Aug 08, 2013 at 18:35 UTC
    Of course Perl is per(l)fect for this task: I regularly use Perl to write R-scripts.

    Or have a look at the following modules: R::YapRI, R::Writer or Statistics::R.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics