-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
The behavior of get_clean_factor_and_forward_returns in regards to periods is strange. #292
Comments
The days we expect to see reported by Alphalens are trading days but it can be tricky to detect the actual number of trading days since there is no trading calendar passed to Alphalens. There is a logic though that tries to infer the trading calendar and so the actual trading days. This logic probably fails with some input. If there is a way I can replicate the bug I will fix that. |
Just an update. I found out that since Alphalens is not aware of the public holidays the computation of the periods goes wrong. For short periods we don't see the problem because Alphalens performs several tests and it is unlikely that in all those tests there is always a public holiday in between the period. The longer the period the more likely Alphalens fails in detecting the right period length. I will find a solution. |
Nice catch! It definitely seems worse as periods get longer. |
Since Alphalens is not aware of the public holidays the computation of the periods goes wrong in certain scenarios. issue quantopian#292
Since Alphalens is not aware of the public holidays the computation of the periods goes wrong in certain scenarios. issue quantopian#292
Since Alphalens is not aware of the public holidays the computation of the periods goes wrong in certain scenarios. issue quantopian#292
Since Alphalens is not aware of the public holidays the computation of the periods goes wrong in certain scenarios. issue quantopian#292
Since Alphalens is not aware of the public holidays the computation of the periods goes wrong in certain scenarios. issue quantopian#292
Since Alphalens is not aware of the public holidays the computation of the periods goes wrong in certain scenarios. issue quantopian#292
Since Alphalens is not aware of the public holidays the computation of the periods goes wrong in certain scenarios. issue #292
Fixed in #295 |
If I say I want
![image](https://user-images.githubusercontent.com/15113371/38898805-16d23556-4264-11e8-8daa-c4eb3b47041c.png)
(1, 15, 30)
as periods, I occasionally get formatted outputs like:There does not seem to be a firm way to predict whether my period value will be augmented by 1, 2, or more. To have a non-deterministic change like this seems undesirable. Is this expected behavior?
The text was updated successfully, but these errors were encountered: