-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Concerns about the calculation of return #964
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
Comments
Can your question be answered by this PR? https://github.com/microsoft/qlib/pull/980/files |
Thank you for your answer. I understand the intuition of using arithmetic summation. But I think people still expect geometric summation for the model performance. Would you consider adding an interface for using geometric summation? |
I think we can add an exponential mode in addition to summation mode in this function I think this is a very good issue for starters. Contributions are welcome! |
🐛 Bug Description
I found the calculation of return in backtest confusing. The return is defined on each day's basis here. The return on each day are summed up directly to obtain the annualized return here. Shouldn't the total return be a product of (1 + r_i) minus 1? What's the problem here?
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
Screenshot
Environment
Note: User could run
cd scripts && python collect_info.py all
under project directory to get system informationand paste them here directly.
Windows
,Linux
,MacOS
): LinuxAdditional Notes
The text was updated successfully, but these errors were encountered: