[SciPy-user] scipy.stats.gamma usage.

Zachary Pincus zachary.pincus@yale....
Mon Aug 4 10:59:08 CDT 2008


> I am not an expert in statistics and had too validate some  
> computations.
> I currently try to use the scipy.stats.gamma.pdf function.
>
> I don't know how to use the function and obtain the results  
> presented in
> wikipedia http://en.wikipedia.org/wiki/Gamma_distribution.

Could you be a bit more specific about your question? Which "results"  
from the wikipedia page are you hoping to replicate?

Here's a thumbnail of the usage of the function though:

scipy.stats.gamma.pdf([0, 1, 2, 3], 9, scale=0.5)

will give you the probability density at x = 0, 1, 2, and 3 of a gamma  
function with the shape parameter (k in the wikipedia page, a in the  
scipy.stats.gamma docstring -- did you read the documentation for  
scipy.stats.gamma?) set to 9 and the scale parameter (theta in  
wikipedia, 'scale' in scipy) set to 0.5.

Zach


On Aug 4, 2008, at 3:31 AM, cyril giraudon wrote:

> Hi,
>
> I am not an expert in statistics and had too validate some  
> computations.
> I currently try to use the scipy.stats.gamma.pdf function.
>
> I don't know how to use the function and obtain the results  
> presented in
> wikipedia http://en.wikipedia.org/wiki/Gamma_distribution.
>
> Can anybody help me ?
>
> Thanks a lot,
>
> Cyril.
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-user mailing list