Skip to content
/ MC Public

Monte-Carlo simulations for option pricing and greeks computation using the Black-Scholes and Heston models

Notifications You must be signed in to change notification settings

redbzi/MC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MC

Description

In this project we have implemented some Monte-Carlo simulations around the Black-Scholes and Heston models. Given some parameters of an european call option, this code computes for {100, 10000, 100000} simulations the following quantities:

  • price
  • delta
  • gamma
  • vega

Some reduction variance methods have been implemented:

  • Antithetic Variables
  • Control Variates
  • Importance Sampling

All of them show great improvements in the estimator accuracy.

We have also plotted the price and greeks on a same scale against the spot, maturity and volatility (only for the Black-Scholes model in the latter).

Requirements

Build and run

  1. clone the git repository: git clone https://github.com/RedwanBouizi/MC.git
  2. go to MC directory: cd MC
  3. create a build directory: mkdir build
  4. go to build directory: cd build
  5. cmake ../
  6. make

Both the library and executable should now be built respectively in /src and /tests. To run the executable, follow these commands:

  1. cd tests
  2. ./example -1 -2 -3

Option 1: performs price and greeks computation using the Black-Scholes and Heston models.

Option 2: outputs several graphs telling about the influence of spot, maturity, volatility over the price and greeks computations.

Option 3: shows how the asymmetry (price and greeks) evolves as the correlation between brownian motions in the Heston model increases.

The latter is quite long, which is why we have included the outputs below.

demo

demo

demo

demo

About

Monte-Carlo simulations for option pricing and greeks computation using the Black-Scholes and Heston models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages