Skip to content
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

How to enter the right Risk Free value in qs.reports.html? #27

Open
manuelwithbmw opened this issue Apr 20, 2024 · 1 comment
Open

How to enter the right Risk Free value in qs.reports.html? #27

manuelwithbmw opened this issue Apr 20, 2024 · 1 comment

Comments

@manuelwithbmw
Copy link

Hi

I have just installed quantstats_lumi and I am comparing the results with quantstats.

(I can see that Lumi overestimates (circa 10%) the Sharpe Ratio of the other library quantstats - anyway I seem to understand the Lumi version is better maintained? Anyway, this difference does not bother me too much)

Risk Free
Can you please let me know what is the right way of entering the Risk Free value in the report.html?
If we have a US 10 yrs at 4.61% as of now, in the html.report function I am using the Avg RF Daily Returns which according to my calculations (for my time window of observation) would be 0.000066, so I am entering 0.000066 as below:

qs.reports.html(returns_df.sharpe, "SPY", rf=0.000066, output = "/Users/.../Strategy Tearsheets/strategy_report.html")

Is this the right way to use RF rate here?

Thank you very much
M

@grzesir
Copy link
Contributor

grzesir commented May 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants