Skip to content

ENH: pareto tails of a distribution #7472

Open

Description

@josef-pkt

I have wanted this for a long time but no code yet.

How heavy is the tail of a distribution. A experimental notebook https://gist.github.com/josef-pkt/3c66541ceed9447d7a9bce6ed0b8959e

Matlab has for a long time a KDE stitched together with pareto tails. I have seen again articles that use pareto tails to get a better estimate or approximation for the tail distribution of a sample.
Related in extreme value theory we want to compute statistics based on tail behavior. In multivariate case, copulas, we have additional properties on tail dependence.

There is a large literature on power or pareto tails and several python packages for those. What I'm not yet clear about are tails that are lighter than power tails and tails that are lighter than the tails of the exponential distribution, e.g. normal distribution.

Related:
Nonlinear transformation of distributions affect in many cases the tail behavior.
Example: Some (?) references mentioned that transformation to bounded interval does not solve the tail problem for kernel density estimation. It mainly replaces it by modelling boundary behavior.
I don't know how good beta kernels and bernstein polynomials are in getting the heaviness of tails of transformed distributions.
(An article of Stephens on transformations mentions tail behavior at [0, 1] boundaries.)

related issues:
#5185 pareto distribution and extreme value theory, including list of python packages
#7278 general issue on approximating distributions
#7412 minimum distance estimators
#7317 adding extreme value theory to statsmodels
#5094 adding pareto regression, not directly related to tail estimation, for survival/lifetime/duration modelling

some possible additions

  • as part of EVT: mainly for heavy tailed distributions, POT, genpareto estimation, generalized extreme value distribution for maxima/minima
  • piecewise distributions, stitching together central distribution with a tail distribution
  • rvs for tail sampling, generic rvs that samples from a truncated distribution in the tail. (check scipy,truncnorm, IIRC I did this already once, but not with focus on tails), see comment below ENH: pareto tails of a distribution #7472 (comment)
  • light tails I found some literature for lighter tails, but have not read anything there (*)
  • hypothesis tests between light/exponential tails and power/pareto tails

Is there a standard distribution for pdf(x) = c * exp(-x**b) ? for x>=0

(*) distribution based on exp(-h(x)) with tail-asymptotic power exponent exp(-x**b)
(exponential distribution b=1, gaussian b=2)

Ferreira, Marta. "A study of exponential-type tails applied to Birnbaum-Saunders models." Chilean Journal of Statistics Vol. 4, No. 1, April 2013, 87–97
http://soche.cl/chjs/volumes/04/01/Ferreira(2013).pdf

Klüppelberg, Claudia. Alexander Lindner. "Extreme value theory for moving average processes with light-tailed innovations." Bernoulli 11 (3) 381 - 410, June 2005. https://doi.org/10.3150/bj/1120591182

Activity

  1. josef-pkt commented on Jun 2, 2021

    @josef-pkt
    MemberAuthor

    adding here for now, might need separate issue

    #7162 rvs using truncated discrete distribution

    similar tail issue as for continuous distributions also applies to discrete, count, distributions

    Zipf is similar to Pareto. however several articles prefer discretized Pareto.
    (zipf requires special zeta function)

    Hitz, Adrien, Richard Davis, and Gennady Samorodnitsky. 2017. “Discrete Extremes.” ArXiv:1707.05033 [Math, Stat], July. http://arxiv.org/abs/1707.05033.
    includes references to discrete/discretized pareto distributions

    Poisson and negative binomial do not have heavy tails. Do we need a count model with long, heavy tails?

    aside: to discretizing continuous distributions
    I had added a discretized gaussian distribution to scipy.stats tutorial a long time ago
    Interval censored data, OrderedModel also use the discretized continuous distribution, but count distribution would be metric with equal spaced grid.

    Note:
    If discrete counts are really large, then just using a continuous distribution will not be much of a problem.
    The relevant case is if the bulk of the data are small counts with some considerably larger counts that look like outliers under a Poisson assumption.

    related articles where I didn't look beyond abstract:

    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.

    Young, D. S., M. Naghizadeh Qomi, and A. Kiapour. 2019. “Approximate Confidence and Tolerance Limits for the Discrete Pareto Distribution for Characterizing Extremes in Count Data.” Statistica Neerlandica 73 (1): 4–21. https://doi.org/10.1111/stan.12126.

  2. josef-pkt commented on Jun 3, 2021

    @josef-pkt
    MemberAuthor

    a bit related: what is the tail behavior of the different asymmetric kernels, e.g. lognormal, BS, gamma, ...?
    Can we choose kernel based on tail behavior?
    (related: AFAIR, in the references there is more about the behavior at zero boundary than at right tails)

  3. josef-pkt commented on Jun 10, 2021

    @josef-pkt
    MemberAuthor

    reference

    Rigby, Robert A., Mikis D. Stasinopoulos, Gillian Z. Heller, and Fernanda De Bastiani. Distributions for modeling location, scale, and shape: Using GAMLSS in R. CRC press, 2019.

    has a good section, chapter 17, on tails (using their own definitions which looks more fine grained than more standard definitions), includes tables that summarize tail pattern for many distributions.

  4. josef-pkt commented on Jun 10, 2021

    @josef-pkt
    MemberAuthor

    to item in issue description

    • rvs for tail sampling, generic rvs that samples from a truncated distribution in the tail. (check scipy,truncnorm, IIRC I did this already once, but not with focus on tails)

    a quick try
    using survival function sf to get more precision in the upper tail

    distr.isf(distr.sf(a) * pr) is isf of truncated distribution
    distr.isf(distr.sf(a) * (1-p) is ppf

    distr = stats.norm
    distr = stats.t(4)
    nobs = 10000
    pr = np.random.rand(nobs)
    rv = distr.isf(distr.sf(a) * pr)
    c, bounds = np.histogram(rv, bins=np.linspace(a, 6, 11))
    c
    

    I spot checked the gaussian case against scipy truncnorm

    not checked for discrete distributions, There we need to watch out for boundary point, included in cdf, excluded in sf

  5. josef-pkt commented on Jun 25, 2021

    @josef-pkt
    MemberAuthor

    weibull tails and related tails as complement to pareto tails for lighter tails

    I didn't look at these articles yet, but they should be useful based on abstracts, and are a starting point for larger literature search.

    Gardes, Laurent, Stéphane Girard, and Armelle Guillou. "Weibull tail-distributions revisited: a new look at some tail estimators." Journal of Statistical Planning and Inference 141, no. 1 (2011): 429-444.

    El Methni, Jonathan, Laurent Gardes, Stéphane Girard, and Armelle Guillou. "Estimation of extreme quantiles from heavy and light tailed distributions." Journal of Statistical Planning and Inference 142, no. 10 (2012): 2735-2747.

    de Valk, Cees, and Juan-Juan Cai. "A high quantile estimator based on the log-generalized Weibull tail limit." Econometrics and statistics 6 (2018): 107-128.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions