April 6th, 2011, 1:14 pm
Hi crmorcom,Thanks a lot for your replying. If I simulate the short rate until T, following is the way I want to implement(supposing there are two paths only):1. Simulate two paths' short rate until T, which are r01->r11->r21->...->rt1->r(t+1)1->...->r(T-1)1 and r02->r12->r22->...->rt2->r(t+1)2->...->r(T-1)2 (r01=r02=today's short rate);2. At time T, Bond_T1=100, Bond_T2=100; 3. At time T-1, Bond_(T-1)1=Bond_T1*exp(-(r(T-1)1)*deltat),Bond_(T-1)2=Bond_T2*exp(-(r(T-1)2)*deltat)(or Bond_(T-1)1=Bond_T1*P(T-1,T)_1, Bond_(T-1)2=Bond_T1*P(T-1,T)_2, which one is right?);4. Repeat step 3 until time t, optionprice_t1=max(Bond_t1-strike,0),optionprice_t2=max(Bond_t2-strike,0);5. At time t-1, optionprice_(t-1)1=optionprice_t1*exp(-(r(t-1)1)*deltat),optionprice_(t-1)2=optionprice_t2*exp(-(r(t-1)2)*deltat) (or optionprice_(t-1)1=optionprice_t1*P(t-1,t)_1, optionprice_(t-1)2=optionprice_t2*P(t-1,t)_2);6. repeat step 5 until time 0(today), final optionprice=0.5*optionprice_01+0.5*optionprice_02.Does this process belong to that you mentioned "use the simulated r on just one path" or that having consider "the expectation conditional on r_t"? Please kindly correct me if there is anything wrong in my implementation. Thanks a lot.
Last edited by
shunvwu on April 5th, 2011, 10:00 pm, edited 1 time in total.