[Scipy-tickets] [SciPy] #1131: Scipy Stats ppf for Lognormal fails on array-like 'loc' or 'scale'

SciPy Trac scipy-tickets@scipy....
Mon Mar 15 15:23:18 CDT 2010

#1131: Scipy Stats ppf for Lognormal fails on array-like 'loc' or 'scale'
 Reporter:  catintp                                |       Owner:  somebody
     Type:  defect                                 |      Status:  new     
 Priority:  normal                                 |   Milestone:  0.8.0   
Component:  scipy.stats                            |     Version:  0.7.0   
 Keywords:  ppf, parameters, loc, scale, mismatch  |  

Comment(by josefpktd):

 I also get the reshape error with the smaller examples
 >>> res=stats.lognorm.ppf(np.linspace(0,1,10), 0.5, scale=np.arange(10))
 >>> res=stats.lognorm.ppf(np.linspace(0,1,10), 0.5, loc=np.arange(10))

 There are some problems with array location with methods that have finite
 boundary and require numerical integration. This could be a follow-up

 scalar loc and scale work:

 >>> stats.lognorm.ppf(np.linspace(0,1,10), np.linspace(0.5,5,10), loc=5.,

 However, I have never seen this specific exception before, and I have no
 obvious candidate for the source of the error.

 Thanks for reporting, I will look at it in more details in the next days.

Ticket URL: <http://projects.scipy.org/scipy/ticket/1131#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