in reply to Re^2: Excel or Perl for simple statistics?
in thread Excel or Perl for simple statistics?

Ok, so problem seems to be fixed if I use Statistics::Lite module instead...
Do you think it could be associated to the fact that with Statistics::Lite I pass the numbers as array instead of array reference that I was using in Statistics::Basic
My list was:
0.964 0 0 0.94 0.895 0.915 0.775 0.868 0 0.796 0.866 0.819 0 0 0 0 0.794 0.806 0.781 0.807 0.783

Replies are listed 'Best First'.
Re^4: Excel or Perl for simple statistics?
by poj (Abbot) on Jan 20, 2018 at 17:06 UTC
    .. as array instead of array reference ..

    I get the same either way and no difference with Excel

    #!perl use strict; use Statistics::Basic 'stddev'; my @data = (0.964, 0, 0, 0.94, 0.895, 0.915, 0.775, 0.868, 0, 0.796, 0.866, 0.819, 0, 0, 0, 0, 0.794, 0.806, 0.781, 0.807, 0.783); print stddev(\@data)+0; print "\n"; print stddev(@data)+0; # 0.400791162022762 # excel # STDEVP # Calculates standard deviation based # on the entire population given as arguments. # 0.400791162
    poj