Ideally I want T to be a continuous variable, to get continious forward curve at any moment.
But discrete T also have a meaning of monthly tradable futures, so it is also possible way.
which seems to be what they did in that notebook. If you want a truly continuous T you could represent it as a stochastic partial differential equation, though solving that could get a little tricky (and it would have a different noise than normal so it would be a little odd).
Thank you for your answers. I’ll try and write here my results.
I think it would be useful for users, who want to build quantitative finance models with Julia and DiffEq.
Note that this is a heterogenous community and people will have a hard time helping you from this because we don’t know what does HJM stands for and neither what z is and we have to guess that T is a parameter which is independent of z. I am not sure you want an ensemble problem here, I imagine it can well be that all F(., M) are driven by the same noise?
HJM model is a general framework for modelling the evolution of interest rates curves:
This framework was adopted to build commodity forward curves. And my formula is the simplest possible version of this model. Pertrubation dF(t,T) is specified as deterministic shape function \sigma multiplied by Gaussian factor dz.
T is a parameter which is indepent of z. The meaning of T is time to the delivery of commodity.
I imagine it can well be that all F(., M) are driven by the same noise?
I came across this thread and was wondering if as part of your experiment above, you also found (or created) some code to calibrate an HJM specification to market observables (short rate futures, swaps, and vanilla options on both).