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

Is the input yield zero-coupon yield? #15

Open
flcong opened this issue Jul 29, 2022 · 2 comments
Open

Is the input yield zero-coupon yield? #15

flcong opened this issue Jul 29, 2022 · 2 comments

Comments

@flcong
Copy link

flcong commented Jul 29, 2022

A question that is not clear in the documentation but very important is whether the input yield is zero-coupon yield or yield of coupon-bearing bonds when calibrating the NS model.

@elivolunteer
Copy link

Correct me if I'm wrong, but this is up to the user right? This library just fits the NS/NSS curve to whatever data you give it. If you give it zero-coupon yield bonds as inputs, then the result will be a fitted NSS curve for zero-coupon yield curve. If you use coupon-bearing bonds, then it'll be a coupon-bearing yield curve.

@flcong
Copy link
Author

flcong commented Aug 2, 2022

Yeah. I agree, but I guess it would be better to be more explicit in the documentation since "fitting the NS model" could mean either directly fitting the functional form of NS model using whatever tenors and rates that are given, or a more complicated process: obtaining the zero yield curve (assuming NS model) from bond yields (or prices) such as QuantLib's FittedBondDiscountCurve class.

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