/NegBinFit

Negative binomial fit with Frank Copula

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

NegBinFit

Negative binomial fit with Frank Copula

It uses two negative binomial PMFs in the form:

equation

where the mean is m and the variance equation coupled by the Frank copula in the form:

equation

where u and v are two negative binomial CDFs, to fit a provided numerical probability distribution i.e. a normalized bidimensional histogram. It gives back the two means and r parameters of the marginals, as well as the parameter equation.

In the main of the py file there is a working example (requires matplotlib).

Requirements:

  • Python 3.5 or higher
  • Scipy
  • Numpy
  • MatPlotLib (to visualize the example).