Hello Everyone:
All along, I thought the total return of a long & short portfolio should be the return of the long side plus the short side. However, it does not always seem to be the case. For example, the sample program from: https://www.quantopian.com/lectures/example-long-short-equity-algorithm would produce an unanticipated miss match.
Testing between 2015/01/05 ~ 2017/12/29, with total capital of $1000000, the total return of long only of this program is about 18.6%, and the short only is 7.46%. However the total return of the combined long & short is 12.79% instead of 11.14%. If we repeat the same test over a 10-year period, the total return of long & short will be deviating much further apart from what it should be. Does anyone have any ideas as for why it happens this way? Or, is this a bug / known issue?
I switch the program into long or short only mode by commenting out the following lines accordingly.
# Filter to select securities to short.
shorts = percent_difference.top(300)
# Filter to select securities to long.
longs = percent_difference.bottom(100)
Thanks,