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

Fractional Differentiation #97

Closed
ngriffiths13 opened this issue Oct 24, 2023 · 7 comments · Fixed by #104
Closed

Fractional Differentiation #97

ngriffiths13 opened this issue Oct 24, 2023 · 7 comments · Fixed by #104

Comments

@ngriffiths13
Copy link
Collaborator

Would there be any interest in adding fraction differencing as a function to the library? This is talked about in M. L. Prado, "Advances in Financial Machine Learning". I have an implementation already in polars I could clean up and make a PR for if there is any interest.

You can also see this repo for a numpy example

@topher-lo
Copy link
Contributor

Absolutely. Big fan of this technique. Would you have a recipe for the inverse operation?

@ngriffiths13
Copy link
Collaborator Author

I don't believe you can calculate the inverse because it requires a dot product.

@abstractqqq
Copy link
Collaborator

@ngriffiths13 Is your implementation pure Polars expressions? Or it requires NumPy/SciPy under the hood?

@ngriffiths13
Copy link
Collaborator Author

@abstractqqq i use numpy to calculate the weights before doing anything to the frame. But everything that happens to the frame is pure polars. Could remove numpy completely pretty easily if needed.

@ngriffiths13
Copy link
Collaborator Author

@topher-lo I actually have been implementing most of the functions in the book referenced above. If any other ones interest you I would be happy to contribute more of them. (If you aren't familiar with the book I can put together a list)

@topher-lo
Copy link
Contributor

Let's do it. I'm super excited to see this in action.

@topher-lo
Copy link
Contributor

If you haven't already, please join our discord! We can then add you to the (very active) private contributors channel and take it from there.

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

Successfully merging a pull request may close this issue.

3 participants