[Scipy-tickets] [SciPy] #1881: Binomial and Bernoulli in scipy.stats.distributions do not accept probability 0 or 1

SciPy Trac scipy-tickets@scipy....
Fri Mar 29 10:16:29 CDT 2013


#1881: Binomial and Bernoulli in scipy.stats.distributions do not accept
probability 0 or 1
--------------------+-------------------------------------------------------
 Reporter:  Sytse   |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  0.11.0     
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by josefpktd):

 part of it has recently been fixed in scipy master, but not all, I think

 Pauli added a xlogy function to scipy.special for the case when we have
 0*log(0).
 As we find those cases, they can be fixed with a call to the new
 functions.

 The second part, the warnings in stats needs special handling, but I don't
 know what skew and kurtosis for a one point distribution are.
 It looks like the limit is ``inf`` for both g1 and g2.

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


More information about the Scipy-tickets mailing list