-
Notifications
You must be signed in to change notification settings - Fork 283
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
Update broken yahoo query #925
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Thank you for your contribution! Would the maintenance be easier if we used something like yfinance? |
Yes using yfinance would most probably prevent the query from failing next time yahoo change their API, at the cost of an extra dependency. |
Are you interested in contributing that in this PR? It'd require adding that dependency here Line 24 in 9316bc7
|
sure! I think plotly, seaborn and Jinja2 are also missing (I had to install those while running the garch notebook) |
I wanted to raise an additional issue for discussion. The cross-validation exercise might not be the most adequate for these models. GARCH and ARCH models are generally used to predict volatility, not so much the raw returns. Since the conditional mean is typically constant, it seems odd to take a draw as the point prediction with It seems more common in the literature to compare the conditional variance with a measure of volatility, like the squared return, see this paper and this one for instance. Let me know if you think changing the evaluation strategy makes sense, or if I am misunderstanding something in the code. Happy to discuss further! |
Hey. I agree on changing the evaluation strategy, please go ahead. |
ok cool I'll do that in a new PR because it is bit more work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Hello,
I wanted to replicate the GARCH and ARCH doc files but the yahoo query is broken. I have updated it.
It is my first time contributing so thanks a lot for your contributing instructions; very helpful :)
Beside the yahoo query there are other bugs preventing the notebooks from running (problems when merging dataset with the unique_id variable); but I thought it is best practice to keep the pull request very specific. I'm happy to help with the other bug if you want.