Help for this page

Select Code to Download


  1. or download this
    sub chisquaredVal {
        my @data = @_;
    ...
        }
        return $chisquare;
    }
    
  2. or download this
    #! perl -slw
    use strict;
    ...
        ++$tests{ join '', shuffle( @data ) } for 1 .. $N;
        push @chi, chisquaredVal( values %tests );
    }
    
  3. or download this
    print chisquare( @chi );
    
    ...
    
    C:\test>chiSquareChiSquare -ASIZE=7 -N=2e2 -T=1e2
    There's a >99.5% chance, and a <100% chance, that this data is random.