CPAN Ratings: Statistics-Basic reviews
http://cpanratings.perl.org/dist/Statistics-Basic
CPAN Ratings: Statistics-Basic reviewsen-us2000-08-23T07:00+00:00ask@perl.orgask@perl.orgPerl1901-01-01T00:00+00:001dailyJerrad Pierce
http://cpanratings.perl.org/dist/Statistics-Basic#7432
Rating: 4 stars
Dox are standard, but assumes you remember all your statistics.
You probably want correlation, not covariance (though the latter is likely to pop into your mind if you're thinking about ANOVA and colinearity). I also ended up getting a reminder from Math::NumberCruncher that, "Correlation ranges from 1 to -1, with a correlation of zero meaning no correlation exists between the two variables."
It's unfortunate that (like M::NC) the co* methods only operate on two vectors. Therefore you may need something like:
use Math::Combinatorics;
use Statistics::Basic qw(:all);
my $combos = Math::Combinatorics->new(count=>2, data=>[@vectors]);
while(my @combo = $combos->next_combination){
my $cor = correlation( @combo );
print "The correlation is $cor for vectors:\n$combo[0]\n$combo[1]\n" if abs($cor) > .66;
}Jerrad PiercePaul Miller
http://cpanratings.perl.org/dist/Statistics-Basic#4976
(I've made code changes and doc changes for all these reviews. Thanks for the feedback you guys.)Paul MillerCooper Vertz
http://cpanratings.perl.org/dist/Statistics-Basic#4956
Rating: 4 stars
This is a nice module, and for simple averages or standard deviations it's significantly faster than Statistics::Descriptive. By default, standard deviation results are population (n), not sample (n-1).
Cooper Vertzeducated_foo
http://cpanratings.perl.org/dist/Statistics-Basic#2019
Rating: 2 stars
What a horrible interface: why call a function to take the mean of your data when, instead, you can simply create a new "mean object" with the data, then "query" it to get the result? </sarcasm> Plus there's not much functionality. If you want statistics, use Statistics::Descriptive.educated_foo