-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Add Lambert W x F distributions #186
Comments
Very interesting. For anyone looking for a mathematical reference, the annals article is available on the arxiv: https://arxiv.org/abs/0912.4554. I am intrigued since, please confirm if I understad this correctly:
If I understand correctly, there are also multiple related "objects":
The last one especially is related to the "transformed distribution" proposed in #30. |
The one thing to note, perhaps, is that distributions are of matrix/table shape, i.e., a matrix/table with distributions (possibly dependnent but usually independent) as entries. This is because in tabular probabilistic regression, this object is the output. Questions:
|
@fkiraly yes to all your points in first reply. re 2nd: yes, implementing Lambert W x Gaussian shouldn't be much different from just implementing a Lambert W x F abstract class and then inheriting/setting base_distribution=Gaussian . This is what I ended up doing for I need to get more familiar with |
I see!
I would recommend to look at
The way I imagined it would be sth around the lines: any_inner_dist = InnerDist(a=a_arr, b=b_arr)
lambert_trafo_dist = LambertW(any_inner_dist, gamma=0.5) That is, any distribution can be taken as an argument of In the example, |
Is your feature request related to a problem? Please describe.
For modeling skewed and/or heavy-tailed distributions i'd like to have support for Lambert W x F distributions. On top of modeling, Lambert W x F distribution allow to "Gaussianize" the observed data.
This is especially useful / prevalent for financial time series data, which is often skewed and/or heavy-tailed.
Describe the solution you'd like
This exists in the LambertW R package and the
pylambertw
Python module, which is an sklearn transformer/estimator wrapper aroundtorchlambertw
.Describe alternatives you've considered
Other heavy-tailed distributions; but none of the typical ones allow the ease of itnerpretation of the heavy-tail parameter, the input/output system view of transformation, and a bijective back-transformation.
Additional context
see here for a detailed discussion with references / screenshots etc.
Feature Request: Support Lambert W x F distributions StatMixedML/XGBoostLSS#55
Add Lambert W x F distributions to XGBoostLSS StatMixedML/XGBoostLSS#65 (comment)
I'd be happy to open a PR to implement a first version of Lambert W x Gaussian distributions, but would like some guidance/pointers on best practices for skpro.
The text was updated successfully, but these errors were encountered: