June 15th, 2010, 1:23 am
Hi all,I would be interested in your opinion about simple, but still somethingthat i probably do not understand completely.I have nt number of time steps and n simulation, sig=const.For each path at each time step node, I have:nt=1v1 = exp(-sig^2*dt/2 + sqrt(dt)*sig*Z1)) , Zi ~ N(0,1)nt=2v2 = exp(-sig^2*dt/2 - sig^2*dt/2 + sqrt(dt)*sig*Z1 + sqrt(dt)*sig *Z2)nt=kvk = exp(-sig^2/2*SUM(dt) + sig*SUM(sqrt(dt)*Zi))With "enough" number of simulation nsim, I should expect at each time step nt1/n * SUM(v1) ->11/n * SUM(v2) ->1...1/n * SUM(v3) ->1When I increase number of time steps with same number of simulation,we can notice deterioration in convergence.See below simple monte carlo code in matlab. What kind of rule I should/can use in order to be able optimally chose nt(maybe not equally distributed dt nodes) in order to get best convergence to 1 in above settings?Thank you in advance for any comments/suggestions,nuclph.%Matlab code:clear all;nt = 500;T = 5;dt = T/nt;sig = 1;nsim = 50000;%qmc=sobolset(nt,'Skip',1e3);%qmc=net(qmc,nsim);s_mat = -0.5*sig*sig*dt + sig*sqrt(dt)*randn(nt,nsim);%s_mat = -0.5*sig*sig*dt + sig*sqrt(dt)*norminv(qmc,0,1)';s_mat = exp(cumsum(s_mat));mean(s_mat,2)