[SciPy-user] errors with scipy.stats

Joshua Petterson joshuafr@gmail....
Tue Feb 6 04:42:09 CST 2007


Hi,
I'm going into trouble with scipy.stats, does someone can explain me that?:
#############################
|datas|[135]>import scipy.stats

|datas|[136]>a.dtype
   Out [136]:dtype('float64')

|datas|[137]>a.fill_value()
   Out [137]:-9.9999999999999995e-21

|datas|[138]>a.shape
   Out [138]:(744,)

|datas|[144]>a.max()
   Out [144]:36.0

|datas|[146]>a.min()
   Out [146]:0.0

|datas|[147]>a.mean()
   Out [147]:array(3.20519835841)

|datas|[148]>stats.mean(a)
   Out [148]:1750.47849462

|datas|[152]>his = stats.histogram2(a, [0,10,20,30,40,50])

|datas|[153]>his
   Out [153]:array([692,  27,  10,   2,   0,  13])
#########################
then mean and histogram2 give wrong results!

Thanks for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20070206/83f26be0/attachment.html 


More information about the SciPy-user mailing list