chi-squared tests in python?

Matthew Vernon matthew at
Tue Jan 17 12:26:49 EST 2006


I'd like to be able to use the chi-squared test in my code. Currently,
I can output "look up [this value] in a chi-squared table with [x]
degrees of freedom", but that's obviously a little sub-optimal. I
notice that numarray has a chi_square function, but that just gives
you random numbers from a chi-squared distribution with a set number
of degrees of freedom - not really what I want.

Does there exist python code to do this? preferably something vaguely


ps: given the "batteries included" philosphy, there's a remarkable dearth 
of stats in python...
Matthew Vernon MA VetMB LGSM MRCVS
Farm Animal Epidemiology and Informatics Unit
Department of Veterinary Medicine, University of Cambridge

More information about the Python-list mailing list