New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong annualization of Sortino Ratio? #61
Comments
Good catch, want to do a PR? |
The math is actually correct in the existing version. The confusion is because of where the
Agree this is confusing, so I submitted a pull request that just moves the
|
@rsheftel Thanks, very glad you point this out before we merged it. |
Closed by #74. |
I'm terribly sorry, thank you @riabaldevia for finding my mistake. It is much better now, after PR #74. |
The Sortino Ratio is annualized in stats.py as follows:
return sortino * ann_factor
where
ann_factor
isann_factor = annualization_factor(period, annualization)
I believe you actually meant to return
return sortino * np.sqrt(ann_factor)
just like you did with the Sharpe Ratio.
The text was updated successfully, but these errors were encountered: