[Scipy-tickets] [SciPy] #1675: fit function for generalized extreme value distribution goes wrong.

SciPy Trac scipy-tickets@scipy....
Thu Jun 14 08:46:07 CDT 2012


#1675: fit function for generalized extreme value distribution goes wrong.
-------------------------+--------------------------------------------------
 Reporter:  xydarcher    |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.10.0     
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by xydarcher):

 this code will return shape as 1.0 whatever shape parameter I input.

 from scipy import stats

 def main():
     shape, loc, scale =  (-0.1, 10, 1.)
     rvs = stats.genextreme.rvs(shape, loc=loc, scale=scale, size=1000)
     print stats.genextreme.fit(rvs)
     pass

 if __name__ == '__main__':
     main()

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


More information about the Scipy-tickets mailing list