sktime / skpro

A unified framework for tabular probabilistic regression and probability distributions in python
https://skpro.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
231 stars 45 forks source link

[ENH] Tweedie distribution, incl mathematics and design #429

Open fkiraly opened 1 month ago

fkiraly commented 1 month ago

For https://github.com/sktime/skpro/issues/423 and other GLM interfaces, we would need a Tweedie distribution.

The Tweedie distribution has a number of difficulties:

There is some discussion about Tweedie in the issue related to the sklearn Tweedie regressor: https://github.com/sktime/skpro/issues/423#issuecomment-2231637334

fkiraly commented 1 month ago

Regarding point 1, architecture, I would propose a delegator design, using the _DelegatedDistribution:

fkiraly commented 1 month ago

Regarding point 3, section 3 of Withers, Nadarajah - "On the compound Poisson-gamma distribution" has numerically exact approximation formulae for cdf and ppf, for the CPG.

fkiraly commented 1 month ago

@ShreeshaM07, could you kindly reply to this so I can assign you?

ShreeshaM07 commented 1 month ago

Sure. So I have been working on the implementation of the Tweedie Distribution. So far completed the pdf and cdf implementation of the sub distribution which is the compound poisson gamma distribution in #428.