Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
What strategy does Alphalens use to calculate the 1-day, 5-day, and 10-day alpha and beta values?

Hi,

My question is as in the title.

Is the 5-day strategy, for instance, to go long on quantile 5 and short on quantile 1 (assuming 5 quantiles), and rebalance every 5 days?

Thanks for any help,

Jack

3 responses

Have a look at:
- question-about-periods-parameter-and-how-it-works-in-alphalens
- alphalens-what-does-it-do

Those should help answering your question. If not, please keep posting :)

Hi Luca thanks for the links - they've cleared lots up for me. I still have a couple of questions though.

For the 1-period forward return information coefficient chart, is the IC on any date evaluated by finding the correlation between the factor values of the stocks on the date and the returns of the stock on the subsequent day?

Also for the factor-weighted long-short portfolio cumulative return chart, are just the stocks in quantiles 1 and 5 traded?

Thanks,

Jack

For the 1-period forward return information coefficient chart, is the
IC on any date evaluated by finding the correlation between the factor
values of the stocks on the date and the returns of the stock on the
subsequent day?

Exactly and the Spearman rank correlation coefficient is used.

Also for the factor-weighted long-short portfolio cumulative return
chart, are just the stocks in quantiles 1 and 5 traded?

Actually all of them, but you can see the quantile specific performance in the Cumulative Return By Quantile plots.

Also have a look at the examples, especially the ones with synthetic data might help you fully understand Alphalens, just build your own dataset and see the results.