Skip to content
All library documents

R Packages for Option Pricing, Greeks, and Risk-Neutral Densities

Article Quant Q&A · Author: user6472523

Summary

The document surveys R packages for option pricing and related analysis. It names RQuantLib and NMOF for model implementations, including Black–Scholes–Merton, jump-diffusion, Heston, and characteristic-function approaches. It also points to RND for risk-neutral density tools and pricing functions, and VarianceGamma for fitting a variance-gamma distribution to historical data with diagnostic plots.

Other package names include derivmkts, fOptions, OptionPricing, M4FE, and greeks; the latter is described as supporting option pricing, Greeks, and implied volatilities. The recommendations are a collection of suggestions rather than a systematic comparison of coverage, maintenance, performance, or numerical accuracy. Some suggestions are based only on having heard of the packages, so users should check current documentation and assess suitability for their models and workflows. The document reports experience with RQuantLib and NMOF but gives no benchmark results.

Key ideas

  • RQuantLib and NMOF are suggested for option pricing and model implementations.
  • NMOF includes examples such as Black–Scholes–Merton, jump-diffusion, Heston, and characteristic-function methods.
  • RND offers risk-neutral density tools, while VarianceGamma supports distribution fitting and diagnostics.
  • Other listed packages cover pricing, Greeks, or implied volatility, but the recommendations are not a comparative benchmark.

Tags

Full text
# List of packages in R for options pricing?


# List of packages in R for options pricing?












What are the best packages in R or most comprehensive packages in R for option pricing and working with options?

Thanks!

## Answer by Enrico Schumann (score 9, accepted)

https://quant.stackexchange.com/a/39739

You may want to browse the Task View for empirical finance, which lists many options-related packages.

As for concrete suggestions: I have worked a lot with RQuantLib in the past, and I have found it a reliable and stable package.

Perhaps I may also suggest NMOF, which I maintain. It provides implementations of a number of models (Black/Scholes/Merton, Merton jump-diffusion, Heston, ...). It also implements the approach of Bakshi/Madan (2000) for pricing based on the characteristic function. The implementation is essentially the one described in this paper on Calibrating Option Pricing Models.

## Answer by jthg (score 6)

https://quant.stackexchange.com/a/39732

Besides those mentioned by Alex C., the package 'RND' provides various tools for computing risk-neutral densities from option prices, and also provides some pricing functions for various models. RND package on CRAN. The package 'VarianceGamma' provides tools for, inter alia, fitting a variance-gamma distribution to historical data complete with automatically generated histograms and QQ-plots. VarianceGamma package on CRAN.

## Answer by Alex C (score 4)

https://quant.stackexchange.com/a/39733

You may want to investigate, among others, RQuantlib, derivmkts, fOptions, OptionPricing, M4FE. I have no detailed information about these, I have just seen or heard them mentioned (here or in other places).

## Answer by kbh12 (score 1)

https://quant.stackexchange.com/a/70749

A newer package for option pricing, and for computation of Greeks and implied volatilities is the package greeks, which I have written.

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.