-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Refactor timeseries.py #262
Conversation
* Put risk metrics to beginning of timeseries.py * Add list of all risk metrics that can be computed just on returns and those which require factor returns. * Deprecate out_of_sample_vs_in_sample_returns_kde() and stability_of_timeseries(). * Remove statsmodels and scikits-learn dependencies. Closes #232.
…g through a list.
@llllllllll Would love your input on this. If you're swamped with other things no worries and I'll just go ahead without you. |
@@ -31,6 +28,9 @@ | |||
from .interesting_periods import PERIODS | |||
|
|||
|
|||
##################################### |
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.
This indicates to me that we should split this into a risk.py module here or pull the non-risk metric code into another module.
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.
Yes, I actually started doing that already but backtracked because it wasn't clear that e.g. the rolling statistics shouldn't also go in there.
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.
I would either split this or kill the comment. If the distinction is not clear now then I am not sure the comment helps.
…here cumulative log-returns should have been used. This leads to different values so also fix the test value.
2b18292
to
913f92e
Compare
913f92e
to
8ed4186
Compare
@llllllllll Thanks for the great review. I addressed all issues. |
d604210
to
596dd86
Compare
Quite a large refactoring.
out_of_sample_vs_in_sample_returns_kde()
andstability_of_timeseries()
.These changes are required for #261.
CC @llllllllll, @a-campbell, @justinlent