cokelaer / fitter

Fit data to many distributions
https://fitter.readthedocs.io/
GNU General Public License v3.0
368 stars 58 forks source link

negative binomial distribution #62

Open WXY-Belief opened 2 years ago

WXY-Belief commented 2 years ago

why is there no negative binomial distribution in the eighty distribution

cokelaer commented 2 years ago

good question ... looks like the nbinom distribution is available in scipy but has no method called fit unlike other distributions. Therefore, it is not included automatically in fitter. Maybe there is a relevant reason for not having the fit method for this particular distribution. I'm surprised since it is pretty standard distribution. Maybe the reason is that the negative binomial distribution is the inverse of the binomial and there is no need for a fit function... you may ask the scipy community for more insights