10.07.2015 Views

Méthodes de Monte Carlo appliquées au pricing d ... - Maths-fi.com

Méthodes de Monte Carlo appliquées au pricing d ... - Maths-fi.com

Méthodes de Monte Carlo appliquées au pricing d ... - Maths-fi.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.3. La métho<strong>de</strong> <strong>de</strong>s distributions conditionnellesproc rndCopulaFindZero(f,a,b);local f:proc;local ya,yb,Nobs,c,yc,indx1,indx2;local indx,s,diff,const;ya = f(a); yb = f(b);Nobs = rows(ya);a = a .* ones(Nobs,1);b = b .* ones(Nobs,1);indx = (ya .< 0) .and (yb .> 0);if sumc(indx) == 0;retp(miss(zeros(Nobs,1),0));endif;if sumc(indx) == Nobs;do while maxc(abs(a-b)) > _rndCopulaFindZero_Tol;c = (a+b)/2;yc = f(c);indx1 = yc. _rndCopulaFindZero_Tol;c = (a+b)/2;c[s] = const;yc = f(c);indx1 = yc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!