Greeks {greeks}R Documentation

Computes the Greeks of various options in the Black Scholes model or both in the Black Scholes model or a Jump Diffusion model in the case of Asian Options, or in the Binomial options pricing model

Description

Greeks are derivatives of the option value with respect to underlying parameters. For instance, the Greek \Delta = \frac{\partial \text{fair\_value}}{\partial \text{initial\_price}} (Delta) measures how the price of an option changes with a minor change in the underlying asset's price, while \Gamma = \frac{\partial \text{fair\_value}}{\partial \text{initial\_price}} (Gamma) measures how \Delta itself changes as the price of the underlying asset shifts. Greeks can be computed for different types of options: For

The Greeks are defined as the following partial derivatives of the option value:

Greeks computes Greeks for the following option types:

For reference see Hull (2022) or

en.wikipedia.org/wiki/Greeks_(finance).

Usage

Greeks(
  initial_price,
  exercise_price,
  r,
  time_to_maturity,
  volatility,
  dividend_yield = 0,
  model = "Black_Scholes",
  option_type = "European",
  payoff = "call",
  greek = c("fair_value", "delta", "vega", "theta", "rho", "gamma"),
  antithetic = TRUE,
  ...
)

Arguments

initial_price
  • initial price of the underlying asset

exercise_price
  • strike price of the option

r
  • risk-free interest rate

time_to_maturity
  • time to maturity in years

volatility
  • volatility of the underlying asset

dividend_yield
  • dividend yield

model
  • the model to be chosen in ("black_scholes", "jump_diffusion")

option_type

in c("European", "American", "Asian", "Geometric Asian", "Digital", "Binomial) - the type of option to be considered

payoff
  • in c("call", "put", "cash_or_nothing_call", "cash_or_nothing_put", "asset_or_nothing_call", "asset_or_nothing_put")

greek
  • Greeks to be calculated in c("fair_value", "delta", "vega", "theta", "rho", "epsilon", "lambda", "gamma", "vanna", "charm", "vomma", "veta", "vera", "speed", "zomma", "color", "ultima")

antithetic
  • if TRUE, antithetic random numbers will be chosen to decrease variance

...
  • ... Other arguments passed on to methods

Value

Named vector containing the values of the Greeks specified in the parameter greek.

References

Hull, J. C. (2022). Options, futures, and other derivatives (11th Edition). Pearson

en.wikipedia.org/wiki/Greeks_(finance)

See Also

BS_European_Greeks for option_type = "European"

Binomial_American_Greeks for option_type = "American"

BS_Geometric_Asian_Greeks for option_type = = "Geometric Asian" and model = "black_scholes"

BS_Malliavin_Asian_Greeks for option_type = = "Asian" and model = "black_scholes" and greek in c("fair_value", "delta", "rho", "vega")

Malliavin_Asian_Greeks for more general cases of Asian Greeks

Greeks_UI for an interactive visualization

Examples

Greeks(initial_price = 100, exercise_price = 120, r = 0.01,
time_to_maturity = 5, volatility = 0.30, payoff = "call")

Greeks(initial_price = 100, exercise_price = 100, r = -0.005,
time_to_maturity = 1, volatility = 0.30, payoff = "put",
option_type = "American")


[Package greeks version 1.4.2 Index]