Fitting a Weibull distribution using Scipy

前端 未结 7 727
误落风尘
误落风尘 2020-12-04 09:22

I am trying to recreate maximum likelihood distribution fitting, I can already do this in Matlab and R, but now I want to use scipy. In particular, I would like to estimate

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 10:04

    the order of loc and scale is messed up in the code:

    plt.plot(x, weib(x, scale, loc))
    

    the scale parameter should come first.

提交回复
热议问题