Giter VIP home page Giter VIP logo

Comments (8)

badalsarkar avatar badalsarkar commented on May 11, 2024

Hello @domokane ,
I would like to work on this issue. Please let me know if it is alright.
Thanks you.

from financepy.

domokane avatar domokane commented on May 11, 2024

from financepy.

badalsarkar avatar badalsarkar commented on May 11, 2024

Thank you. I am looking at the code base. And once I have a plan, I will discuss with you.

from financepy.

sagayev avatar sagayev commented on May 11, 2024

Dear @domokane I have done some calculations. I will send you a notebook for your review. If I am on the right track I can incorporate into code together with the test cases.

from financepy.

sagayev avatar sagayev commented on May 11, 2024

I am attaching the notebook here. Someone else may have an opinion or suggestion.

KRD_draft_by_sagayev.zip

.ipynb file inside a zipped file.

from financepy.

sagayev avatar sagayev commented on May 11, 2024

Hello @domokane ,

The Periscope example in the above link does not seem to calculate the modified duration correctly. Their modified duration and the sum of key rate durations are consistent with each other. However, the modified duration is not in line with FinancePy and MS Excel.

from financepy.

sagayev avatar sagayev commented on May 11, 2024

KRD_draft_by_sagayev_Bloomberg.pdf

Dear @domokane,

I have compared my numbers with Bloomberg. They are very close. I also added more comments to explain the code. Please let me know if it seems OK.
Also if there is a better approach let me know. I have not used function here. If we can agree on the path I will add it to Bond class as a method.

from financepy.

domokane avatar domokane commented on May 11, 2024

Hi - this looks pretty good. The differences are probably due to small details in the price-yield formula. Maybe try implementing it as a function. Please think about where it should go - should it be part of a separate key rate class ?

from financepy.

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.