[SciPy-User] rv_frozen when using gamma function

Skipper Seabold jsseabold@gmail....
Thu Mar 15 08:39:14 CDT 2012


On Wed, Mar 14, 2012 at 1:05 PM, Bruno Santos <bacmsantos@gmail.com> wrote:
> I am trying to write a script to do some maximum likelihood parameter
> estimation of a function. But when I try to use the gamma function I get:
> gamma(5)
> Out[5]: <scipy.stats.distributions.rv_frozen at 0x7213710>
>

That's the Gamma distribution in scipy.stats. You want the Gamma
function, it's in scipy.special

[~/]
[1]: from scipy import special

[~/]
[2]: special.gamma(5)
[2]: 24.0

What kind of likelihood are you trying to maximize?

Skipper


More information about the SciPy-User mailing list