[scikit-learn] Fitting Lognormal Distribution

Sebastian Benthall sbenthall at gmail.com
Thu May 26 10:20:37 EDT 2016


You may also be interested in the 'powerlaw' Python package, which detects
the tail cutoff.
On May 26, 2016 5:46 AM, "Warren Weckesser" <warren.weckesser at gmail.com>
wrote:

>
>
> On Thu, May 26, 2016 at 2:08 AM, Startup Hire <blrstartuphire at gmail.com>
> wrote:
>
>> Hi all,
>>
>> Hope you are doing good.
>>
>> I am working on a project where I need to do the following things:
>>
>> 1. I need to fit a lognormal distribution to a set of values [I know its
>> lognormal by a simple XY scatter plot in excel]
>>
>>
>
> The probability distributions in scipy have a fit() method, and
> scipy.stats.lognorm implements the log-normal distribution (
> http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.lognorm.html)
> so you can use scipy.lognorm.fit().  See, for example,
> http://stackoverflow.com/questions/26406056/a-lognormal-distribution-in-python
> or http://stackoverflow.com/
> /questions/15630647/fitting-lognormal-distribution-using-scipy-vs-matlab
>
> Warren
>
>
>
>> 2. I need to find the intersection of the lognormal distribution so that
>> I can decide cut-off values based on that.
>>
>>
>> Can you guide me on (1) and (2) can be achieved in python?
>>
>> Regards,
>> Sanant
>>
>> _______________________________________________
>> scikit-learn mailing list
>> scikit-learn at python.org
>> https://mail.python.org/mailman/listinfo/scikit-learn
>>
>>
>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20160526/8b743c81/attachment.html>


More information about the scikit-learn mailing list