Last chance! 50% off unlimited learning
Sale ends in
bscallimpvol
and bsputimpvol
compute
Black-Scholes implied volatilties. The functions bscallimps
and bsputimps
, compute stock prices implied by a given
option price, volatility and option characteristics.
bscallimpvol(s, k, r, tt, d, price, lowvol, highvol,
.tol=.Machine$double.eps^0.5)
bsputimpvol(s, k, r, tt, d, price, lowvol, highvol,
.tol=.Machine$double.eps^0.5)
bscallimps(s, k, v, r, tt, d, price, lower=0.0001, upper=1e06,
.tol=.Machine$double.eps^0.5)
bsputimps(s, k, v, r, tt, d, price, lower=0.0001, upper=1e06,
.tol=.Machine$double.eps^0.5)
Stock price
Strike price of the option
Annual continuously-compounded risk-free interest rate
Time to maturity in years
Dividend yield, annualized, continuously-compounded
Option price when computing an implied value
minimum implied volatility
maximum implied volatility
numerical tolerance for zero-finding function `uniroot`
Volatility of the stock, defined as the annualized standard deviation of the continuously-compounded return
minimum stock price in implied price calculation
maximum stock price in implied price calculation
Implied volatility (for the "impvol" functions) or implied stock price (for the "impS") functions.
Returns a scalar or vector of option prices, depending on the inputs
# NOT RUN {
s=40; k=40; v=0.30; r=0.08; tt=0.25; d=0;
bscallimpvol(s, k, r, tt, d, 4)
bsputimpvol(s, k, r, tt, d, 4)
bscallimps(s, k, v, r, tt, d, 4, )
bsputimps(s, k, v, r, tt, d, 4)
# }
Run the code above in your browser using DataLab