[SciPy-dev] Two new test failures
josef.pktd at gmail.com
josef.pktd at gmail.com
Thu Nov 13 11:27:57 EST 2008
Hi,
I ran the test 10,15 times and I never get a failure with nbinom. I'm
working with numpy 1.2.1 on Windows XP, and I don't know which part of
the test causes the failure.
Would you please run the attached test file with nosetests -v -s and
post the output? It is the same test as in trunk but running only
nbinom with debug printout, and runs pretty fast.
To get a quick check on the random number generator you could also check:
>>> stats.nbinom.stats(5,0.5)
(array(5.0), array(10.0))
>>> rvs = np.random.negative_binomial(5, 0.5, 1000000)
>>> rvs.mean()
5.0053890000000001
>>> rvs.var()
10.016529958705213
Thanks for the help,
Josef
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_discrete_chisquare.py
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20081113/5dfe50be/attachment.ksh>
More information about the SciPy-Dev
mailing list