-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add yield curves as output from short rate models #36
Comments
Thanks for the suggestion! Just to clarify:
|
I think this is related to your comment here, which I'm copying here for sake of the discussion:
This is very interesting. As I said earlier, I've never had to create ESGs in the past and generally would use ESGs in the context of stochastic modeling wherein the point was to determine a prospective liability using the scenarios imputed in the scenario. I think I'm missing a use-case or formulation as I thought the most practical output would be a YieldCurve-like object? |
Right now, A financial example could be the numerical pricing of a swaption: simulate a bunch of scenarios for the short rate; for each of those, measure the value of the swap at its starting time using the forward looking yield curve, floor at zero, and discount back to time zero using the scenario deflator (current yield curve). Take mean. |
So like julia> y = YieldCurve(s)
julia> discount(Yields.ForwardStarting(y,10),10) * discount(y,10)
0.9616406328145991
julia> discount(y,20)
0.9616406328145992 |
No, not really, something different. But it's probably better if I try to work out an example in code or math, maybe a pr will be self explanantory 😄 Anyway, it's quite important in these models that if you price something at time |
The current output from the short rate models is currently the short rate itself. All these models have the neat feature that the yield curve at a simulated future point depends only on the short rate, the time, and initial state information. It would be good to have access to those, e.g. through
Alternatively, one could build an iterator that gave both short rate and curve, or only the curve.
The text was updated successfully, but these errors were encountered: