Skip to content

ENH: mixing together: histogram smoothing, kde on R+, transformation of distributions #7338

Open

Description

@josef-pkt

(going a bit in circles)

  • Bernstein polynomial density estimation is a kind of kernel estimation based on histogram data, or grouped probabilities. domain is interval [0,1] REF: move copula out of sandbox, and refactor, copula directory #7296
  • in fast kde we use binned, histogram data but with many points as a speedup, so we can use convolution or fft
  • KDEMultivariate has continuous, categorical and discrete, but no restricted continuous domain kernels
  • in nonlinear transformation we use some of them to change domain, eg. R to R+ to [0, 1]
  • bernstein polynomiald distribution and kde have a mixture distribution interpretation that can be used to generate random numbers

Bouezmarni, Taoufik, and Olivier Scaillet. 2005. “Consistency of Asymmetric Kernel Density Estimators and Smoothed Histograms with Application to Income Data.” Econometric Theory 21 (2): 390–412.

treats both kde and histogram smoothing, see equ. 5 and 6 which are close to what we do for bernstein polynomial distribution on [0, 1]

Chen, Song Xi. 2000. “Probability Density Function Estimation Using Gamma Kernels.” Annals of the Institute of Statistical Mathematics 52 (3): 471–80. https://doi.org/10.1023/A:1004165218295.

example using gamma kernel for R+

Micheaux, Pierre Lafaye de, and Frédéric Ouimet. 2020. “A Study of Seven Asymmetric Kernels for the Estimation of Cumulative Distribution Functions,” November. https://arxiv.org/abs/2011.14893v1.

Kakizawa, Yoshihide. 2018. “Nonparametric Density Estimation for Nonnegative Data, Using Symmetrical-Based Inverse and Reciprocal Inverse Gaussian Kernels through Dual Transformation.” Journal of Statistical Planning and Inference 193 (February): 117–35. https://doi.org/10.1016/j.jspi.2017.08.008.

The article uses dual transformation which is power Birnbaum-Sanders, or power t minus t inverse #7246, refers to next reference, Yang 2006, for it.
Defines classes of kernel distributions based on transformed symmetric/elliptical distributions

Yang, Zhenlin. 2006. “A Modified Family of Power Transformations.” Economics Letters 92 (1): 14–19. https://doi.org/10.1016/j.econlet.2006.01.011.

and related articles, e.g. for other kernel distributions on R+

The above are univariate, for bernstein polynomials we also have multivariate versions.
I have not yet tried transformations for multivariate bernstein polynomial distributions to other domains of the distributions, e.g. use marginal distributions on R+. An advantage of that might be that we get interval lengths increasing in the upper tail, based on transformed equal spaced intervals on [0,1]

(I only skimmed parts of the articles, and haven't looked at details yet.)

Computational:
I guess we cannot use convolution or fft on binned, histogram data on restricted domains like R+ with asymmetric kernels.
This will limit the speed and number of histogram bins that we can handle, similarly to bernstein.
In the univariate case using 500 (default for fft kde IIRC) or 1000 bins should not be a computational problem for vectorized solution.

I think the basic smoothers should be easy to implement. That might be useful for graphics similar to histograms.
Bandwidth selection and standard errors will be more work.

Activity

  1. josef-pkt commented on Feb 20, 2021

    @josef-pkt
    MemberAuthor

    related to histogram smoothing versus kde in [0, 1]

    related to bernstein polynomial distribution there are also empirical beta kde or beta copulas, based on all point, e.g. EDF instead of cumulative histogram.

    I didn't look at the details yet because it looks much more computing intensive, than BernsteinDistribution, based on bins.

  2. josef-pkt commented on Feb 20, 2021

    @josef-pkt
    MemberAuthor

    other domains:

    note :
    multivariate beta, copulas are on [0, 1]^k, margins can have independently different domains
    simplex and dirichlet have joint domain restriction, sum = 1.

    similar to k-sample binomial versus multinomial

  3. josef-pkt commented on Feb 20, 2021

    @josef-pkt
    MemberAuthor

    a quick experiment https://gist.github.com/josef-pkt/e971a484b2b1eb29a741fe0510774dc6
    beta kde on interval [0, 1]

    looks fine, but looks better if main probability is not so close to boundary.
    I haven't tried the corrected kernel in Chen 1999

  4. josef-pkt commented on Mar 9, 2021

    @josef-pkt
    MemberAuthor
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