Sortino ratio on short time series -> divition by zero #296
Unanswered
emiliobasualdo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Well, you only have 4 days and none of those days' returns are negative. Since this is the same as in Quantopian empyrical: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys. I don't want to place an issue because I might not understand well the Sortino Ratio.
Basically, I was optimizing with
bt.optimize
and set the logger toroot.setLevel(logging.INFO)
and a warning appeared:I'm optimizing with a time series that has minute candles and lasts almost 4 days.
I can confirm with the debugger that:
(np.sqrt(np.mean(day_returns.clip(-np.inf, 0)**2)) * np.sqrt(annual_trading_days))
= 0and that
and that
My questions are:
I this a normal expected outcome?
Does it make sense to study the Sortino Ratio over this series?
Thank you for your help.
Regards!
Beta Was this translation helpful? Give feedback.
All reactions