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 conditionnellescopule Gumbel (ou Gumbel-Houggaard) a pour expression :( [C (u 1 , u 2 ; θ) = exp − (− ln u 1 ) θ + (− ln u 2 ) θ] ) 1/θ.La distribution conditionnelle s’écrit donc :C 2|1 (u 1 , u 2 ) = 1 ( ) ] 1θ θln u2[1 −1 (+exp −[(− ln u 1 ) θ + (− ln u 2 ) θ] ) 1/θu 1 ln u 1Co<strong>de</strong> GAUSS 4.6 – Simulation <strong>de</strong> la copule Gumbel à partir <strong>de</strong> la distribution bivariée –/***> rndCopulaGumbel***/proc (2) = rndCopulaGumbel(theta,ns);_CopulaParameters = theta;retp( rndCopula2(&_rndCopulaGumbel,0,ns) );endp;proc _rndCopulaGumbel(u1,u2);retp( _cdfCopulaGumbel(u1,u2,_CopulaParameters) );endp;proc _cdfCopulaGumbel(u1,u2,theta);retp( exp(-((-ln(u1))^theta+(-ln(u2))^theta)^(1./theta)) );endp;Co<strong>de</strong> GAUSS 4.7 – Simulation <strong>de</strong> la copule Gumbel à partir <strong>de</strong> la distribution conditionnelle –/***> rndCopulaGumbel***/proc (2) = rndCopulaGumbel(theta,ns);_CopulaParameters = theta;retp( rndCopula2(0,&_rndCopulaGumbel,ns) );endp;proc _rndCopulaGumbel(u1,u2);local theta,u1til<strong>de</strong>,u2til<strong>de</strong>,beta,w;theta = _CopulaParameters;u1til<strong>de</strong> = -ln(u1); u2til<strong>de</strong> = -ln(u2);w = u1til<strong>de</strong>^theta + u2til<strong>de</strong>^theta;beta = 1./theta;retp( exp(-(w^beta)) .* ( 1+ (u2til<strong>de</strong>./u1til<strong>de</strong>)^theta )^(-1+beta) ./ u1 );endp;Bien sûr, la secon<strong>de</strong> version est plus stable, puisqu’elle ne fait pas appel à une dérivation numérique.Cependant, les <strong>de</strong>ux procédures donnent pratiquement les mêmes nombres aléatoires,puisque la différence maximale sur les 1024 premiers nombres du générateur Sobol est 7.57 × 10 −6 .54

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

Saved successfully!

Ooh no, something went wrong!