Description Usage Arguments Author(s) Examples
View source: R/BSM_utilities.R
Put prices derived from put-call parity
1 | PutParity(Stock, Exercise, Time, Interest, Yield, Call_price)
|
Stock |
S0, the initial stock price |
Exercise |
K, the strike price |
Time |
T, the time to maturity in fractional years |
Interest |
r, the risk-free rate of return |
Yield |
q, the dividend yield |
Call_price |
the price of the call option to convert |
George Fisher GeorgeRFisher@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Hull 7th edition Ch 17 P 357
library(ustreasuries)
Stock <- 49 # S_0
Exercise <- 50 # K
Time <- 20/52 # T
Interest <- 0.05 # r
Yield <- 0.13#0 # q
sigma <- 0.20
EC = EuroCall(Stock, Exercise, Time, Interest, Yield, sigma)
EP = EuroPut(Stock, Exercise, Time, Interest, Yield, sigma)
PC = CallParity(Stock, Exercise, Time, Interest, Yield, EP)
PP = PutParity(Stock, Exercise, Time, Interest, Yield, EC)
writeLines(paste0("European Call Price: ", EC, "\n",
"Call Parity Price: ", PC, "\n",
"Difference: ", EC-PC, "\n\n",
"European Put Price: ", EP, "\n",
"Put Parity Price: ", PP, "\n",
"Difference: ", EP-PP))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.