[SciPy-User] Using scipy to fit a bimodal distribution

spiff007 spiff007 at gmail.com
Fri Mar 16 03:14:43 EDT 2018


Hi Folks,

I have some data, which is bimodally distributed.

The initial part of the data(in red, in the figure below), seems to be
exponentially distributed and the latter part(in blue, in the figure
below), seems to be a gamma distribution.

See image below (& attached) :


​
What scipy function, i could use to fit this data, knowing that, the first
mode is exponential, and the latter, seems to be gamma.
If its not possible to do it using scipy, is there another library/module i
could use to do this ?

Any suggestions/pointers/advice/hacks ?

Thanks a ton,
ashish

-- 
“The best minds of my generation are thinking about how to make people
click ads. That sucks.”
- Jeff Hammerbacher (early fb engineer)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20180316/b57e352b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2018-03-16 12-38-02.png
Type: image/png
Size: 81078 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20180316/b57e352b/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bimodal_curve_fitting_png.png
Type: image/png
Size: 81078 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20180316/b57e352b/attachment-0003.png>


More information about the SciPy-User mailing list