Giter VIP home page Giter VIP logo

Comments (6)

sabirjana avatar sabirjana commented on August 26, 2024

Hi,
I tried to look into it, seems following are the issues

  1. utils._prepare_returns() invokes to_excess_returns every time wherever rf > 0 which is not right
  2. to_excess_returns() is needed only in few cases such as in case of Sharpe, Sortino etc. and not in all cases when _prepare_returns() is called and rf>0

thank you

from quantstats.

sabirjana avatar sabirjana commented on August 26, 2024

Hello Ran,
do you have any plan to update the master branch for this issue?
Thank
SJ

from quantstats.

brubrant avatar brubrant commented on August 26, 2024

This still happening: if RF is no 0 the reports are buggy...

from quantstats.

Zegoverno avatar Zegoverno commented on August 26, 2024

same here

from quantstats.

BartStolarek avatar BartStolarek commented on August 26, 2024

Still a bug?

from quantstats.

 avatar commented on August 26, 2024

You need to adjust the period. In my case it works.

So, if you use monthly returns there is an argument in the function periods_per_year

for example, in this I am using monthly returns. So:

qs.reports.full(portfolio, 'SPY', rf=0.02, periods_per_year=12)

image

from quantstats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.