# [SciPy-User] help with weibull distribution

Wed Mar 23 10:39:58 CDT 2011

On Wed, Mar 23, 2011 at 4:32 PM, Vineeth Mohan <vineethrakesh@gmail.com> wrote:
>
> Hello,
>
> I am trying to generate weibull distributions for the shape and scale
> parameters that I have with me. I am looking at the numpy random module.
> The weibull distribution defined here takes just the shape parameter and
> not the scale parameter. Can any one suggest me what module to use if
> any other module is available.

>From the weibull docstring:

The more common 2-parameter Weibull, including a scale parameter
:math:\lambda is just :math:X = \lambda(-ln(U))^{1/a}.

So just multiply the returned values from numpy.random.weibull by your
scale parameter and you're good to go.

Cheers,
Ralf