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

Modify G2 processes so they take into account the interest-rate term structure #1904

Open
lballabio opened this issue Feb 6, 2024 · 2 comments

Comments

@lballabio
Copy link
Owner

The G2Process and G2ForwardProcess classes only store and use the parameters of the G2 model. They should also use an interest-rate term structure, since the G2 model includes it.

@thisisamardeep
Copy link

Hi @lballabio I will prefer to work on this .Can you explain in bit more detail what needs to be done.

@lballabio
Copy link
Owner Author

Hello—the idea is that, like in HullWhiteProcess (see https://github.com/lballabio/QuantLib/blob/v1.33/ql/processes/hullwhiteprocess.hpp#L37) the constructor of G2Process should take an interest-rate term structure; and like in HullWhiteProcess::drift (see https://github.com/lballabio/QuantLib/blob/v1.33/ql/processes/hullwhiteprocess.cpp#L38) the term structure should be used to add an additional term to the drifts of the underlying Ornstein-Uhlenbeck processes.

Unfortunately I'm not familiar with the model, so I can't give you more details now on the mathematics of the thing. Maybe someone can step in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants