# Simulating the Term Structure of Interest Rates in the CIR model

I have successfully implemented the CIR model of the short rate, and now want to use these short rate paths to construct distributions of various tenors - 2y, 3y, 5y, 10y for example - across the curve for a custom simulation project of mine.

By no-arbitrage, I can, at each time t and on each path n, calculate the geometric average of the short rates, up to the tenor desired, which will give me that particular tenor.

For example, if my short rate were to be 1-year and I wanted the 3-year rate, I would take

(1+r_0)(1+r_1)(1+r_2) ^ (1/3) = 3y rate

over all of the paths. I can move time forward and do the same calculation at time t+1, t+2 ... t+n. The average slope of the simulated yield curve will depend on the difference between the starting rate r_0 and the long-run interet rate, as defined in the simulation. Is this correct?

Another question comes from this. Let us say that I want to price a 10-year zero coupon bond. Should the closed-form CIR bond pricing formula give the same result as the one we would get if we simply compound the short rates, as I did above, to get the zero-coupon 10y rate, and discounted the cash flow at that 10y rate? By no-arbitrage it should.

Looking to see if my intuition with these things is correct.

Thanks

• Short rate is instantaneous, if you want to simulate the 1y rate directly, you won't be able to do much except just value instruments determined by exact multiples of 1y forwards. You also cannot calibrate vol of this rate as it is not the underlying of any option. Commented Apr 5 at 19:49
• I'm just trying to simulate rates from which i may extract the rates of different tenors along the path at each time. I'm not trying to value an instrument directly; but instead I want to have an interest rate process which is theoretically sound. I'm using monthly time steps Commented Apr 5 at 21:17