Subject: Announcing Statistics::ChiSquare-0.1
From: [email-masked] (Jon Orwant)
Date: 2 Nov 1995 23:18:08 GMT
Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc

use Statistics::ChiSquare;

  print chisquare(@actual_occurrences);
  print chisquare_nonuniform([actual_occurrences], [expected_occurrences]);

The Statistics::ChiSquare module is available at a CPAN site near you.
I've also just posted it to comp.lang.perl.misc.

Here's the beginning of the embedded documentation:

=head1 DESCRIPTION

Suppose you flip a coin 100 times, and it turns up heads 70 times.
I<Is the coin fair?>

Suppose you roll a die 100 times, and it shows 30 sixes.  
I<Is the die loaded?>

In statistics, the B<chi-square> test calculates "how random" a series
of numbers is. 

...