[SciPy-User] Question: scipy.stats.gamma.fit

josef.pktd at gmail.com josef.pktd at gmail.com
Fri Jul 1 14:34:56 EDT 2011


On Fri, Jul 1, 2011 at 3:48 AM, Ning Guo <hhh.guo at gmail.com> wrote:
> Dear scipy-users,
>
> I'm using scipy.stats.gamma.fit to fit a set of random variables for
> gamma distribution. And to validate the results I also use the fitdistr
> function in R. However the results generated by these two packages are
> different, i.e. shape parameter and scale parameter for the gamma pdf
> are different. Though the difference is not large, I'm wondering what
> causes this difference. I think both of them are using maximum
> likelihood estimation to fit the function.

Do you have an example or a test case?
It's difficult to guess what might be different. None of the fit
methods are verified against R or tested for correctness.

Contributions to the test suite and possible bugfixes would be appreciated.

Josef

>
> Best regards!
> Ning
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list