-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
updated numeraire dates algorithm #1771
updated numeraire dates algorithm #1771
Conversation
Removed the approximation of the swap length from the algorithm used to add calibration points at known numeraire dates.
Thanks for opening this pull request! It might take a while before we look at it, so don't worry if there seems to be no feedback. We'll get to it. |
@lePidduN7 thank you! This works and produces the following calibration points (I produced this output with
I think the strategy of the current algorithm is a bit different. I would expect it to produce this calibration instrument set
However it adds a 13M swaption which is one month too long. This causes an infinite loop adding 13M swaptions until the max allowed date is reached. I'll open another PR with my attempt to fix this. Let's compare the two PRs then and discuss which we want to pick? |
@pcaspers absolutely, thank you for reviewing it! Just for my understanding: the final set of points to be added is the set of one-period swaptions spanning the coupon payments of the original calibration instruments right? |
Yeah so the original idea was to add a swaption spanning the period until the date on which the numeraire is known, or a little bit over if necessary to get a whole multiple months for the underlying swap length. But it's only one way of doing it. |
I'm closing this pull request, I see #1772 already produces more stable outputs and doesn't fail the unit-tests. I'll see if I can find other cases that generates errors. Thanks again for reviewing this! |
Hi everyone! I removed the approximation of the swap length from the algorithm used to add calibration points at known numeraire dates.
This should solve the runtime error I reported in the newsletter. I run the tests and Gaussian1dModels example from @pcaspers and it's working fine.