Output of methods in KernelDensity.jl
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing KernelDensity.jl's current fixed-grid estimator interface and the mixture distribution types in Distributions.jl. Determine whether the proposed result can support arbitrary PDF, CDF, characteristic-function, sampling, moment, and transformation operations while preserving the old interface. Done would require an agreed interface and compatibility plan; no specific file or test is named.
Written by the indexing model from the issue text.
Description
I deal with data analysis quite often and I use KernelDensity.jl which I think is currently the default kernel density library for Julia, being a part of JuliaStats. It works well, but I think there were truly unfortunate design choices made when this library was first designed, which make it less useful than it could be and also not very suitable to be extended.
The problem is as follows: KernelDensity returns only numerical values of the estimated pdf at a fixed grid. You can use it for a plot, but not for much else.
From the point of view of statistics, kernel density is a method of distribution estimation. What you want is a distribution, mixture distribution to be precise. So, the result of the estimation should be parameters of this distribution, which are:
- modes locations: this is just the original sample,
- modes pdfs: which is a distribution from the set of kernels with the found bandwidth,
- weights: typically just uniform.
If you know that you can:
- calculate the estimated pdf at whatever grid you choose,
- calculate the corresponding cdf and cf wherever you choose,
- draw a random sample from this distribution,
- estimate other stuff such as moments, etc.
- transform this distribution.
And the class of mixture distributions is implemented in Distributions.jl, so the generic return type is already done. The question is if what I described above is important enough to implement it. And if it would be implemented, there is no way to reconcile it with the old interface. One could just make the new interface and also keep the old one for the sake of compatibility.
- Dominant language
- Julia
- Stars
- 213
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaStats/KernelDensity.jl
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
JuliaStats/KernelDensity.jl#139 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
JuliaStats/KernelDensity.jl#129 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
JuliaStats/KernelDensity.jl#128 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
JuliaStats/KernelDensity.jl#125 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
JuliaStats/KernelDensity.jl#124 ·
All issues in JuliaStats/KernelDensity.jl
Similar issues
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
path: splitext treats directory references and leading dots as extensionsPossibly taken @Hiten0305l claimed this today. Open
Difficulty 2/5 Half a day Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
JuliaRegistries/RegistryCI.jl#758 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaParallel/Hwloc.jl#93 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day