humdings

Results issues of humdings

We are calculating the sortino ratio and downside deviation incorrectly. The sortino ratio uses the downside deviation, which is where the problems are. Problem 1: Using the average algo return...

Bug
Performance Metrics

I'd like to suggest we use Pandas implementation for rolling regressions. https://github.com/pydata/pandas/blob/master/pandas/stats/ols.py The performance difference is huge. For a single factor - rolling_beta: 1 loops, best of 3: 4.26 s...

`pyfolio.utils.extract_rets_pos_txn_from_backtest_obj` does not work because Backtest.daily_performance does not have a 'gross_leverge' field.

bug

`test_calc_multifactor` and `test_multifactor_beta` only have a single factor passed to them. These tests should be made more robust. Anybody opposed to keeping a small csv of test data, or we...

bug

We have a turnover function in pos.py, but `plotting.plot_turnover()` does not use it. Also, the two calculations are done differently. ``` # plotting.plot_turnover df_turnover = transactions.txn_volume / positions.abs().sum(axis='columns') # pos.turnover...

bug
help wanted

We are calculating the sortino ratio wrong, specifically the downside deviation portion. Zipline has the same issue, see https://github.com/quantopian/zipline/issues/747 for an example, we only have issue 2 in pyfolio. This...