[Scipy-tickets] [SciPy] #745: scipy.stats.distribution - tests and bugfixes

SciPy scipy-tickets@scipy....
Mon Nov 17 09:52:07 CST 2008


#745: scipy.stats.distribution - tests and bugfixes
-------------------------+--------------------------------------------------
 Reporter:  josefpktd    |        Owner:  somebody
     Type:  defect       |       Status:  closed  
 Priority:  normal       |    Milestone:          
Component:  scipy.stats  |      Version:  devel   
 Severity:  normal       |   Resolution:  fixed   
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by josefpktd):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 I finished with the basic cleanup of scipy.stats.distribution.

 All generic methods work now, all distributions (except logser.rvs) pass
 the
 basic tests for the given parameter values. Test coverage according to
 figleaf is about 91%.

 There are some remaining problems:

 Entropy and fit test for the continuous rv are not included
 in the test suite. The entropy integration fails for 6 (out of more than
 80)
 continuous distributions and returns nans, I haven't looked at this in
 detail.
 Also the entropy test only checks for nan, I didn't find a quick, general
 test
 for the numerical correctness of the entropy calculation.
 The parameter estimation with fit also does not converge very well for
 for some distribution with sample size up to 10000, and it takes pretty
 long to run.

 Some methods defined in the specific distributions don't work
 correctly, but I did not find any mistakes or I could not find enough
 information of the statistical properties of these distributions with
 googling or the bugs are outside of scipy.stats.
 I replaced these methods by their generic counterparts which
 work correctly although maybe slower. The skipped methods were
 renamed by appending "_skip " to the method name. If someone finds
 the correction, then any help is appreciated.

 All my tests are currently for chosen parameter values, but
 I know of a few cases that are broken for some parameter
 values that are in the valid (but maybe uncommon) range. I did
 quite a bit of fuzz testing earlier on, but don't have the time now
 to go over the remaining cases.

 I closed tickets #697, #758, #766..
 I also fixed #769, which looks correct to me.


 There are also possibly some details that I missed, e.g. I didn't
 check return types, but I am basically finished and waiting to see
 what a more wide spread testing will bring.

 Remaining bugs can be filed as individual tickets, so I am closing this.

 Josef

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


More information about the Scipy-tickets mailing list