Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: calculate Chi-Square test

by blue_cowdawg (Prior)
on Feb 05, 2013 at 20:37 UTC ( #1017280=note: print w/ replies, xml ) Need Help??


in reply to calculate Chi-Square test

Take a look at Statistics::ChiSquare. If you are being asked to write this from scratch by your boss, professor or whoever check out: http://en.wikipedia.org/wiki/Chi-squared_test.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg


Comment on Re: calculate Chi-Square test
Re^2: calculate Chi-Square test
by Mr. Muskrat (Abbot) on Feb 16, 2013 at 18:22 UTC

    Good bosses don't ask you to work on a solved problem. :)

      Emphasis on the word "good." :-)


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re^2: calculate Chi-Square test
by shagbark (Initiate) on Aug 27, 2013 at 19:01 UTC

    Statistics::ChiSquared is not a suitable package except for preliminary investigation, as it returns a text string which you have to parse the numbers out of, but more importantly as it doesn't return the correct numbers, but rounds everything off to the nearest 5% (and appears to have some special love of 30% and 70%).

    If every mathematical package returned a text string explaining the result rather than the result, because they don't trust you to interpret the result correctly, using Perl for math would be hell.

    Note the documentation says "use Statistics::Chisquare", but correct usage is "use Statistics::ChiSquare".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017280]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-07-22 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (110 votes), past polls