Skip to content
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

Implement a rolling least squares method. #193

Open
Mateuscvieira opened this issue Jun 28, 2024 · 1 comment
Open

Implement a rolling least squares method. #193

Mateuscvieira opened this issue Jun 28, 2024 · 1 comment

Comments

@Mateuscvieira
Copy link

In the example notebook we see rolling OLS done in the .rolling() context, and the text itself says it's a little slow. Well, polars_ols has an optimized version of least squares regression using an updating algorithm instead of reestimating at every window.

I know from reading previous issues that work on OLS is low priority, but this seems like a pretty straight forward job of porting the algorithm to this module's structure, so maybe we should give it a go? For economics and finance work, rolling OLS is one of the most used models, so it would be a very nice feature to have integrated here.

@abstractqqq
Copy link
Owner

Of course! Hands are tied on KNN right now unfortunately...

Just curious, what is in polars_ds that is not in polars_ols? And what makes you want to port polars_ols's functionality over? Do you think some consolidation will be great for the polars + data science community?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants