Closed twiecki closed 5 years ago
https://github.com/quantopian/alphalens/blob/master/alphalens/performance.py#L796 infers the factor frequency by finding the space between factors. It uses pandas and thus returns a time-difference in calendar space. However, period='10D' most likely refers to 10 trading days (14 days) if factors and prices are only present for trading days. This then causes a problem in the next line https://github.com/quantopian/alphalens/blob/master/alphalens/performance.py#L797 where shift=0 and autocorrelation is shown as 1 constantly.
period='10D'
shift=0
Closed by #324
https://github.com/quantopian/alphalens/blob/master/alphalens/performance.py#L796 infers the factor frequency by finding the space between factors. It uses pandas and thus returns a time-difference in calendar space. However,
period='10D'
most likely refers to 10 trading days (14 days) if factors and prices are only present for trading days. This then causes a problem in the next line https://github.com/quantopian/alphalens/blob/master/alphalens/performance.py#L797 whereshift=0
and autocorrelation is shown as 1 constantly.