Giter Club home page Giter Club logo

Comments (6)

FinQuest avatar FinQuest commented on August 24, 2024 1

I think both libraries you suggest are interesting and I like the tear sheet concept from Pyfolio and it would be good to link this to a bt object but then you’d want to ensure empirical was used throughout bt to avoid inconsistent risk calculations.

I don’t know if the portfolio optimisation functionality etc. sits naturally in these libraries so perhaps ffn should use empyrical for the generic functions where relevant?

There seems to be lots of interesting functionality in Quantopian not exposed in Zipline too which I’d be interested in seeing but not necessarily adding.

I very much like the simplicity of bt and challenging to maintain this and evolve the library at the same time. Perhaps experiment in a second branch?

from ffn.

atisharma avatar atisharma commented on August 24, 2024

I chose bt because of the high readability and elegant code structure. Empyrical seems to share that simplicity.

Pyfoilio seems not to completely cover the functionality of ffn, though, and I having written custom data getters, will I still be able to use them? ffn is also easy to overload / hack.

Pyfolio seems to have some odd choices. For instance, pyfolio/risk.py seems to be entirely equity-specific.

from ffn.

pmorissette avatar pmorissette commented on August 24, 2024

I haven't looked at these libraries, so hard to comment right now. That being said, I'm all for not re-inventing the wheel, especially if there is a large community around another library. If the other libraries are more active, then it may just be a question of adding the missing functionality via PRs.

from ffn.

JordanPlatts avatar JordanPlatts commented on August 24, 2024

@atisharma I wouldn't replace anything that messes up your code. In fact, let me try out the libraries some more to understand the what the differences would be. I was just throwing out the idea because the libraries seem to be similar.

from ffn.

JordanPlatts avatar JordanPlatts commented on August 24, 2024

Totally agree on keeping it consistent and that optimization doesn't really fit in empyrical. I think creating a second branch of bt that uses empyrical calculations is a good idea.

from ffn.

JordanPlatts avatar JordanPlatts commented on August 24, 2024

I just tried to use some tools from empyrical and I gave up after a couple of hours. It just seemed like more work than what it was worth. Instead, I decided to start using more numpy functions like power and replacing pandas std() with numpy std(,ddof=1).

We can revisit this if someone has a different opinion.

from ffn.

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.