[SciPy-user] Is this a bug: scipy.cov([0,1]) = 0
Wed Nov 7 09:10:04 CST 2007
I recently noticed some strange behavior with scipy (and numpy as
well). Doing scipy.cov([0,1]) returns 0 which I believe is incorrect.
Doing scipy.cov([0.0,1.0]) returns a more reasonable answer so I
suspect that the problem is that scipy is using integer math.
Is this considered a bug?
I can see no good reason to do integer math when computing a covariance.
More information about the SciPy-user