[Scipy-tickets] [SciPy] #1546: stats: test_continuous_basic has broken test

SciPy Trac scipy-tickets@scipy....
Mon Oct 31 12:37:05 CDT 2011


#1546: stats: test_continuous_basic has broken test
-------------------------+--------------------------------------------------
 Reporter:  josefpktd    |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.9.0      
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by josefpktd):

 I fixed the test in my fork, but running the test suite still has 8
 failures in the "not-slow" distributions, possibly false alarms. The
 numbers don't look very far off.
 (I didn't change anything in the slow distributions.)

 {{{
 ======================================================================
 FAIL:
 test_continuous_basic.test_cont_basic(<scipy.stats.distributions.fatiguelife_gen
 object at 0x02E9B190>, (0.75,), array(1.28125), array(0.9580078125),
 1.2487700710120595, 0.81356018397341889, 1000, 'fatiguelifesample mean
 test')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "c:\programs\python27\lib\site-
 packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
     self.test(*self.arg)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 165, in wrap
     return func(*a, **kw)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 260, in
 check_sample_meanvar_
     check_sample_var(sv, sn, v)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 292, in
 check_sample_var
     npt.assert_(pval > 0.01, 'var fail, t,pval = %f, %f, v,sv=%f,%f' %
 (chi2,pval,popvar,sv))
   File "C:\Programs\Python27\lib\site-packages\numpy\testing\utils.py",
 line 34, in assert_
     raise AssertionError(msg)
 AssertionError: var fail, t,pval = 848.371603, 0.000199,
 v,sv=0.958008,0.813560

 ======================================================================
 FAIL:
 test_continuous_basic.test_cont_basic(<scipy.stats.distributions.gamma_gen
 object at 0x02E9BA10>, (1.9932305483800778,), array(1.9932305483800778),
 array(1.9932305483800778), 1.9049475453784119, 1.683287232178736, 1000,
 'gammasample mean test')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "c:\programs\python27\lib\site-
 packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
     self.test(*self.arg)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 165, in wrap
     return func(*a, **kw)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 260, in
 check_sample_meanvar_
     check_sample_var(sv, sn, v)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 292, in
 check_sample_var
     npt.assert_(pval > 0.01, 'var fail, t,pval = %f, %f, v,sv=%f,%f' %
 (chi2,pval,popvar,sv))
   File "C:\Programs\Python27\lib\site-packages\numpy\testing\utils.py",
 line 34, in assert_
     raise AssertionError(msg)
 AssertionError: var fail, t,pval = 843.657522, 0.000127,
 v,sv=1.993231,1.683287

 ======================================================================
 FAIL:
 test_continuous_basic.test_cont_basic(<scipy.stats.distributions.genlogistic_gen
 object at 0x02E9B6D0>, (0.41192440799679475,), array(-1.8996417990533176),
 array(8.552010763257432), -1.6915023776411073, 7.2701839656308955, 1000,
 'genlogisticsample mean test')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "c:\programs\python27\lib\site-
 packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
     self.test(*self.arg)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 165, in wrap
     return func(*a, **kw)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 260, in
 check_sample_meanvar_
     check_sample_var(sv, sn, v)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 292, in
 check_sample_var
     npt.assert_(pval > 0.01, 'var fail, t,pval = %f, %f, v,sv=%f,%f' %
 (chi2,pval,popvar,sv))
   File "C:\Programs\Python27\lib\site-packages\numpy\testing\utils.py",
 line 34, in assert_
     raise AssertionError(msg)
 AssertionError: var fail, t,pval = 849.263873, 0.000217,
 v,sv=8.552011,7.270184

 ======================================================================
 FAIL:
 test_continuous_basic.test_cont_basic(<scipy.stats.distributions.gilbrat_gen
 object at 0x02F58BB0>, (), array(1.6487212707001282),
 array(4.670774270471604), 1.5542857947354762, 3.0177319205419764, 1000,
 'gilbratsample mean test')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "c:\programs\python27\lib\site-
 packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
     self.test(*self.arg)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 165, in wrap
     return func(*a, **kw)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 260, in
 check_sample_meanvar_
     check_sample_var(sv, sn, v)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 292, in
 check_sample_var
     npt.assert_(pval > 0.01, 'var fail, t,pval = %f, %f, v,sv=%f,%f' %
 (chi2,pval,popvar,sv))
   File "C:\Programs\Python27\lib\site-packages\numpy\testing\utils.py",
 line 34, in assert_
     raise AssertionError(msg)
 AssertionError: var fail, t,pval = 645.442065, 0.000000,
 v,sv=4.670774,3.017732

 ======================================================================
 FAIL:
 test_continuous_basic.test_cont_basic(<scipy.stats.distributions.gumbel_l_gen
 object at 0x02E9BC70>, (), array(-0.5772156649015329),
 array(1.6449340668482264), -0.48770832402349951, 1.403145247583542, 1000,
 'gumbel_lsample mean test')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "c:\programs\python27\lib\site-
 packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
     self.test(*self.arg)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 165, in wrap
     return func(*a, **kw)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 260, in
 check_sample_meanvar_
     check_sample_var(sv, sn, v)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 292, in
 check_sample_var
     npt.assert_(pval > 0.01, 'var fail, t,pval = %f, %f, v,sv=%f,%f' %
 (chi2,pval,popvar,sv))
   File "C:\Programs\Python27\lib\site-packages\numpy\testing\utils.py",
 line 34, in assert_
     raise AssertionError(msg)
 AssertionError: var fail, t,pval = 852.157014, 0.000284,
 v,sv=1.644934,1.403145

 ======================================================================
 FAIL:
 test_continuous_basic.test_cont_basic(<scipy.stats.distributions.loggamma_gen
 object at 0x02F58850>, (0.4141193182605212,), array(-2.4617679388246936),
 array(6.842650224596101), -2.4057296757832174, 5.9831621683265688, 1000,
 'loggammasample mean test')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "c:\programs\python27\lib\site-
 packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
     self.test(*self.arg)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 165, in wrap
     return func(*a, **kw)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 260, in
 check_sample_meanvar_
     check_sample_var(sv, sn, v)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 292, in
 check_sample_var
     npt.assert_(pval > 0.01, 'var fail, t,pval = %f, %f, v,sv=%f,%f' %
 (chi2,pval,popvar,sv))
   File "C:\Programs\Python27\lib\site-packages\numpy\testing\utils.py",
 line 34, in assert_
     raise AssertionError(msg)
 AssertionError: var fail, t,pval = 873.518127, 0.001755,
 v,sv=6.842650,5.983162

 ======================================================================
 FAIL:
 test_continuous_basic.test_cont_basic(<scipy.stats.distributions.lognorm_gen
 object at 0x02F589F0>, (0.9536822696057533,), array(1.5757871665018548),
 array(3.682706210913771), 1.4935980843433927,
 2.4720855647743383, 1000, 'lognormsample mean test')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "c:\programs\python27\lib\site-
 packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
     self.test(*self.arg)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 165, in wrap
     return func(*a, **kw)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 260, in
 check_sample_meanvar_
     check_sample_var(sv, sn, v)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 292, in
 check_sample_var
     npt.assert_(pval > 0.01, 'var fail, t,pval = %f, %f, v,sv=%f,%f' %
 (chi2,pval,popvar,sv))
   File "C:\Programs\Python27\lib\site-packages\numpy\testing\utils.py",
 line 34, in assert_
     raise AssertionError(msg)
 AssertionError: var fail, t,pval = 670.597473, 0.000000,
 v,sv=3.682706,2.472086

 ======================================================================
 FAIL:
 test_continuous_basic.test_cont_basic(<scipy.stats.distributions.pareto_gen
 object at 0x02F610F0>, (2.621716532144454,), array(1.616630576416252),
 array(1.6034057205287133), 1.6550137301062546, 1.2674974417903764, 1000,
 'paretosample mean test')
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "c:\programs\python27\lib\site-
 packages\nose-1.0.0-py2.7.egg\nose\case.py", line 187, in runTest
     self.test(*self.arg)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 165, in wrap
     return func(*a, **kw)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 260, in
 check_sample_meanvar_
     check_sample_var(sv, sn, v)
   File "C:\Programs\Python27\Lib\site-
 packages\scipy\stats\tests\test_continuous_basic.py", line 292, in
 check_sample_var
     npt.assert_(pval > 0.01, 'var fail, t,pval = %f, %f, v,sv=%f,%f' %
 (chi2,pval,popvar,sv))
   File "C:\Programs\Python27\lib\site-packages\numpy\testing\utils.py",
 line 34, in assert_
     raise AssertionError(msg)
 AssertionError: var fail, t,pval = 789.712752, 0.000000,
 v,sv=1.603406,1.267497

 ----------------------------------------------------------------------
 Ran 1160 tests in 10.212s

 FAILED (SKIP=1, failures=8)
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1546#comment:3>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list