You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: add discrete/discretized pareto distribution #7479
relatively simple explicit forms of pdf, cdf, sf, ppf
mean/moment use special zeta function,
easy rvs from mixture representation.
i.e. good for modelling quantiles, but no mean parameterization.
update
after reading or skimming several of the articles:
Articles for discrete/discretize pareto, weibull and similar use a different parameterization than the underlying continuous distribution which changes exp function to a power function (e.g. q**x).
I only saw one article that provided a reason for the reparameterization and that was because exponential/geometric distribution can be treated as a special case if the parameter goes to zero.
related: in copulas with mixed data, the count variable is discretized version of the conditional distribution (count variable given other variables)
see e.g.
Claudia Czado , Rainer Kastenmeier , Eike Christian Brechmann & Aleksey
Min (2012) A mixed copula model for insurance claims and claim sizes, Scandinavian Actuarial
Journal, 2012:4, 278-305, DOI: 10.1080/03461238.2010.546147
Poisson and Gamma similar to Tweedie but modelled separately with correlation modelled by Gaussian copula.
Article is nice because it's pretty explicit in the steps. It's easier to understand than more general articles.
(How does this relate to or differ from adding an individual specific unobserved correlated gaussian random intercept?
I only skimmed small parts of the article.)
reading some of the small print in Zeviani, W. M., Ribeiro Jr, P. J., Bonat, W. H., Shimakura, S. E., & Muniz, J. A. (2014). The Gamma-count distribution in the analysis of experimental underdispersed data
They are not not discretizing the cdf cdf(k+1) - cdf(k). The distribution is derived from Gamma distributed arrival time and k, k+1 is in the args of the gamma.
reference goes back to Winkelman.
The overview article Kimberly F. Sellers & Darcy S. Morris (2017): Under-dispersion models: models that are “under the radar”, mentions the same and refers to Winkelman 2008. The case works because gamma is "closed under convolution".
In LEF the sum of random variables is in the same family. This means this approach doesn't generalize much.
related: Sellers and Morris also mention "Condensed Poisson" distribution which was derived under assumption of Erlang(2, lambda) distributed inter-arrival times, and goes back to articles in 1967 and 1973.
I was playing with a discretized gamma as a test case that was just the discretization of the cdf,
edit
I found an article that uses cdf discretization for gamma
Chakraborty, Subrata, and Dhrubajyoti Chakravarty. "Discrete gamma distributions: Properties and parameter estimations." Communications in Statistics-Theory and Methods 41, no. 18 (2012): 3301-3324.
about moments:
in my gamma descretized model (iid., no exog), the mean of the discrete distribution is very close to a continuity corrected mean of the continuous gamma model E(Y, gamma) = 0.5
A bit different from above articles, more similar to OrderedModel, linpred is directly in cdf-link.
Does not need underlying distribution that has lower bound in support. Uses Bernstein polynomials for non-parametric link/transformation.
My current implementation assumes support of continuous distribution starts at zero, y >= 0.
There is a R package also for the cound model version.
TestDiscretizedGammaEx has an example against a literature reference (incomplete citation in unit test comment)
otherwise unit tests are mainly consistency checks.
Activity
josef-pkt commentedon Jun 3, 2021
another discretization Gamma
Zeviani, Walmes Marques, Paulo Justiniano Ribeiro Jr, Wagner Hugo Bonat, Silvia Emiko Shimakura, and Joel Augusto Muniz. 2014. “The Gamma-Count Distribution in the Analysis of Experimental Underdispersed Data.” Journal of Applied Statistics 41 (12): 2616–26. https://doi.org/10.1080/02664763.2014.922168.
no closed form for mean/moment
josef-pkt commentedon Jun 4, 2021
related: in copulas with mixed data, the count variable is discretized version of the conditional distribution (count variable given other variables)
see e.g.
Claudia Czado , Rainer Kastenmeier , Eike Christian Brechmann & Aleksey
Min (2012) A mixed copula model for insurance claims and claim sizes, Scandinavian Actuarial
Journal, 2012:4, 278-305, DOI: 10.1080/03461238.2010.546147
Poisson and Gamma similar to Tweedie but modelled separately with correlation modelled by Gaussian copula.
Article is nice because it's pretty explicit in the steps. It's easier to understand than more general articles.
(How does this relate to or differ from adding an individual specific unobserved correlated gaussian random intercept?
I only skimmed small parts of the article.)
josef-pkt commentedon Jun 6, 2021
Note: using sf instead of cdf is right open in the same way as np.trunc. Don't need to "cheat" if mass point at boundary.
reference for using sf, IIRC the first one, with reference to an older article
Alzaatreh, Ayman, Carl Lee, and Felix Famoye. 2012. “On the Discrete Analogues of Continuous Distributions.” Statistical Methodology 9 (6): 589–603. https://doi.org/10.1016/j.stamet.2012.03.003.
Famoye, Felix, and Carl Lee. 2017. “Exponentiated-Exponential Geometric Regression Model.” Journal of Applied Statistics 44 (16): 2963–77. https://doi.org/10.1080/02664763.2016.1267117.
josef-pkt commentedon Jun 6, 2021
reading some of the small print in Zeviani, W. M., Ribeiro Jr, P. J., Bonat, W. H., Shimakura, S. E., & Muniz, J. A. (2014). The Gamma-count distribution in the analysis of experimental underdispersed data
They are not not discretizing the cdf cdf(k+1) - cdf(k). The distribution is derived from Gamma distributed arrival time and k, k+1 is in the
argsof the gamma.reference goes back to Winkelman.
The overview article Kimberly F. Sellers & Darcy S. Morris (2017): Under-dispersion models: models that are “under the radar”, mentions the same and refers to Winkelman 2008. The case works because gamma is "closed under convolution".
In LEF the sum of random variables is in the same family. This means this approach doesn't generalize much.
related: Sellers and Morris also mention "Condensed Poisson" distribution which was derived under assumption of Erlang(2, lambda) distributed inter-arrival times, and goes back to articles in 1967 and 1973.
I was playing with a discretized gamma as a test case that was just the discretization of the cdf,
edit
I found an article that uses cdf discretization for gamma
Chakraborty, Subrata, and Dhrubajyoti Chakravarty. "Discrete gamma distributions: Properties and parameter estimations." Communications in Statistics-Theory and Methods 41, no. 18 (2012): 3301-3324.
same authors also have an article on discrete Gumbel (EV)
https://doi.org/10.1080/02664763.2020.1744538
josef-pkt commentedon Jun 6, 2021
the discrete pareto/burr articles use straightforward discretization of cdf/sf
pareto is a special case of burr (AFAICS)
Buddana, Amrutha, and Tomasz J. Kozubowski. 2014. “Discrete Pareto Distributions.” Economic Quality Control 29 (2): 143–56. https://doi.org/10.1515/eqc-2014-0014.
Krishna, Hare, and Pramendra Singh Pundir. 2009. “Discrete Burr and Discrete Pareto Distributions.” Statistical Methodology 6 (2): 177–88. https://doi.org/10.1016/j.stamet.2008.07.001.
Dzidzornu, S. K.-B., and R. Minkah. 2020. “Assessing the Performance of the Discrete Generalised Pareto Distribution in Modelling Non-Life Insurance Claims.” ArXiv:2004.06150 [Stat], April. http://arxiv.org/abs/2004.06150.
josef-pkt commentedon Jun 6, 2021
about moments:
in my gamma descretized model (iid., no exog), the mean of the discrete distribution is very close to a continuity corrected mean of the continuous gamma model E(Y, gamma) = 0.5
josef-pkt commentedon Jun 8, 2021
discretized count by with adding a link function.
A bit different from above articles, more similar to OrderedModel, linpred is directly in cdf-link.
Does not need underlying distribution that has lower bound in support. Uses Bernstein polynomials for non-parametric link/transformation.
My current implementation assumes support of continuous distribution starts at zero, y >= 0.
There is a R package also for the cound model version.
Siegfried, Sandra, and Torsten Hothorn. 2020. “Count Transformation Models.” Edited by Robert B. O’Hara. Methods in Ecology and Evolution 11 (7): 818–27. https://doi.org/10.1111/2041-210X.13383.
Hothorn, Torsten. 2020. “Most Likely Transformations: The Mlt Package.” Journal of Statistical Software 92 (1). https://doi.org/10.18637/jss.v092.i01.
Hothorn, Torsten, Lisa Möst, and Peter Bühlmann. 2018. “Most Likely Transformations.” Scandinavian Journal of Statistics 45 (1): 110–34. https://doi.org/10.1111/sjos.12291.
I didn't read much, just skimmed a few parts of Siegfried Hothorm
I guess related is #7241 transformed distributions
josef-pkt commentedon Jun 7, 2023
For unit test and definition:
https://cran.r-project.org/web/packages/extraDistr/index.html
has discretized gamma and laplace based on
p(x) = sf(x) - sf(x+1)definition.TestDiscretizedGammaEx has an example against a literature reference (incomplete citation in unit test comment)
otherwise unit tests are mainly consistency checks.