Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-based committed Jul 28, 2024
1 parent 712790e commit e5b8f8d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions MontecarloPricing/Example_UEOptPriceMC.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@

%% UE vanilla option pricing
% simulation params
nSims = 1e5;
nSims = 1e6;

% option params
% Market params
spotPrice = 98;
strike = 100;
rate = 0.0001;

% !!!!! IN QUELLO DEL PROF C'è ANCHE M (MA SERVE???)

% option params
strike = 100;
TTM = 1;
putFlag = false;

Expand All @@ -21,7 +25,7 @@

disp('MC price Eu option, Merton model')
[price, CIprice] = UEOptPriceMC(spotPrice, strike, rate, TTM, putFlag, priceModel, mertonParams, nSims)
width_CI_MC = diff(CIprice)
width_CI_Standard = diff(CIprice)

disp('MC price Eu option, Merton model using Antitetich Variable')
[price, CIprice] = UEOptPriceMC(spotPrice, strike, rate, TTM, putFlag, priceModel, mertonParams, nSims, 'AV')
Expand All @@ -42,8 +46,7 @@

disp('MC price Eu option, Kou model')
[price,CIprice] = UEOptPriceMC(spotPrice, strike, rate, TTM, putFlag, priceModel, kouParams, nSims)
width_CI_MC = diff(CIprice)

width_CI_Standard = diff(CIprice)

disp('MC price Eu option, Kou model using Antitetich Variable')
[price,CIprice] = UEOptPriceMC(spotPrice, strike, rate, TTM, putFlag, priceModel, kouParams, nSims, 'AV')
Expand Down

0 comments on commit e5b8f8d

Please sign in to comment.