Open humphreylee opened 1 year ago
I think this is very helpful ! Here is repo for kernel density estimation (https://github.com/seatonullberg/kernel-density-estimation) It would be great to incorporate it statrs
I'm unsure how well this would fit into the exist tooling in statrs. While we do have the Empirical distribution, introducing hyperparameters to the data for data driven distributions starts to fit into a broader realm of statistics that is data-driven.
@henryjac what would you say? We're amidst defining new direction, but I think this would fit better in a different crate.
I would not be against adding functionality for performing more data driven distributions and functionality. With this being a statistics crate most features regarding any kind of statistics fits quite well.
We even already have functionality for statistics in the statistics module, so expanding that with KDE etc. makes sense to me.
Well, I would be happy to support data-driven distributions as long as we look ahead a little bit at what we'll choose (for near-future) as out of scope. Perhaps I'd have done better had I said that I'm averse to looking at it now since we've got some short-term priorities right now.
Overall, what I think is that it just takes some discussion on clearly choosing scope, starting with upper bound (things that will certainly be out of scope). What can you say won't be in scope (for near-future)?
But all cards on the table, I actually think KDE would be good candidate compared to some other data-driven distributions, reasons being:
statrs::distribution
in that it is,
IntoIterator
)
Thanks for sharing the good work. Is there any implementation for kernel density estimation available (univariate, bivariate or multivariate)? Thanks.