chi-squared tests in python?

Matthew Vernon matthew at sel.cam.ac.uk
Tue Jan 17 12:26:49 EST 2006


Hi,

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
standard? 

Thanks,

Matthew
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
http://www.cus.cam.ac.uk/~mcv21/



More information about the Python-list mailing list