Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

Main : Matlab : 


Category: Matlab View Full Details
Download Now!Finite difference vs pathwise derivative for finding option delta using MC simulation
Submitter: vanna Date: 2011/2/10
Description:
This is a tutorial code which demonstrates comparison of the below 3 methods to find delta of a plain vanilla call option using monte carlo simulations:
1. Finite difference using forward difference scheme
2. Finite difference using crank nicholson scheme
3. Pathwise derivative method suggestd by formula in Glasserman's paper

Following is an output of the reslut:
octave-3.1.50.exe:53> mcblack
analytical_delta =  0.76307

avg_finitediff_delta_CN =  0.76080
avg_finitediff_delta_Fwd =  0.76091
avg_pathwise_delta =  0.76079

variance_pathwise_delta = 2.6992e-004
variance_finitediff_delta_CN = 2.7027e-004
variance_finitediff_delta_Fwd = 2.7011e-004


Points to note from the results:
- avg_finitediff_delta_Fwd is biased higher, which matches with the explanation
- crank nicholson gives better values than forward difference scheme, since it is closer to analytical value
- variance of delta calculated using crank nicholson increases when FD step size (h) is decreased

PS : Following file is needed to compare analytical result:
http://www.quantcode.com/modules/docmanager/view_file.php?curent_file=407&curent_dir=19

Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 648 times  648  File Size 0 bytes  Supported Platforms Matlab Octave  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (13)

Poster Thread
Anonymous
Posted: 2011/2/10 16:35  Updated: 2011/2/10 16:35
 Finite difference vs pathwise derivative for finding option delta using MC simulation
Thanks for posting this. I have noted that if I use FD stepsize=0.1, crank nicholson schem gives better results and lower variance than pathwise derivates method. If the pathwise derivative method supposed to be a vraince resuction technique, or is it jus another method? Even the accuracy of the CN is better since it is closer to black scholes formula output

Poster Thread
Anonymous
Posted: 2011/2/10 16:37  Updated: 2011/2/10 16:37
 Finite difference vs pathwise derivative for finding option delta using MC simulation
Hi, the main advantage of pathwise wrt CN scheme is that you don't need to simulate 2 times, only 1 simulation is enough - ie performance is faster

Poster Thread
Anonymous
Posted: 2011/7/16 3:36  Updated: 2011/7/19 19:54
 Finite difference vs pathwise derivative for finding option delta using MC simulation
Hi - I am new to learning about MC simulation for option sensitivities - the code example is great to see how it works - was just wondering why the 100 scenarios were used?? I assume it is to reduce variance (?) but it didnt seem to look like any of the variance reduce techniques I have read about i.e. strateified sampling etc. I have seen another example which just runs the n simulations to get the delta, without the scenarios. Any help or extra info (e.g. the theory to describe the effect on the variance) about why the scenarios were added would be much appreciated. Thanks

Discuss this file. Just enter your message and click on submit. No registration is required.
Similar Links:

Subscribe to RSS or daily email updates of latest quantitative finance code listings
Email address :
Copyright © 2011 QuantCode Inc. All rights reserved.