powered by
Calculate the constant elasticity of variance (CEV) model option price
CevPrice( strike = forward, spot, texp = 1, sigma, beta = 0.5, intr = 0, divr = 0, cp = 1L, forward = spot * exp(-divr * texp)/df, df = exp(-intr * texp) )
(vector of) strike price
(vector of) spot price
(vector of) time to expiry
(vector of) volatility
beta
interest rate
dividend rate
call/put sign. 1 for call, -1 for put.
1
-1
forward price. If given, forward overrides spot
forward
spot
discount factor. If given, df overrides intr
df
intr
option price
Schroder, M. (1989). Computing the constant elasticity of variance option pricing formula. Journal of Finance, 44(1), 211-219. https://doi.org/10.1111/j.1540-6261.1989.tb02414.x
# NOT RUN { spot <- 100 strike <- seq(80,125,5) texp <- 1.2 beta <- 0.5 sigma <- 2 FER::CevPrice(strike, spot, texp, sigma, beta) # }
Run the code above in your browser using DataLab