shill1729 / pricing

Option pricing for American and European options

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pricing

This package provides option pricing functions for the following models defining price dynamics:

  • Black-Scholes
  • Merton's jump diffusion
  • Log-normal mixture diffusion
  • geometric compensated Poisson

For European options, a Monte-Carlo routine is available for every model of price dynamics, and (semi-)analytic formulas are available for the Black-Scholes, Merton, and Poisson models.

American options cannot be priced with a straight forward Monte-Carlo integrator as they are path-dependent (they are defined as the supremum over all stopping times up to the maturity of the discounted expected value, thus depend on the price path up to this time, unlike European options which only depend on the terminal value, and hence its distribution). So, we also provide PDE/PIDE methods for pricing European and American options via finite-difference solvers. The FD engines currently only use the implicit-scheme, and for the PIDE solver, an implicit-explicit scheme adjoining a trapezoid integral approximation for the jump-integral of the PIDE.

Installation

You can install the latest GitHub version via the devtools package

devtools::install_github("shill1729/pricing")

Example

TODO

library(pricing)

About

Option pricing for American and European options

License:GNU General Public License v3.0


Languages

Language:R 50.2%Language:C++ 49.8%