Path: usenet.cis.ufl.edu!usenet.eel.ufl.edu!psgrain!nntp.teleport.com!usenet
From: [email protected] (Jon Orwant)
Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc
Subject: Announcing Statistics::ChiSquare-0.1
Followup-To: comp.lang.perl.misc
Date: 2 Nov 1995 23:18:08 GMT
Organization: Massachvsetts Institvte of Technology
Lines: 24
Approved: [email protected] (comp.lang.perl.announce)
Message-ID: <[email protected]>
Reply-To: [email protected]
NNTP-Posting-Host: kelly.teleport.com
X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content.
Xref: usenet.cis.ufl.edu comp.lang.perl.announce:175 comp.lang.perl.misc:10652


 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.

..