using Montecarlo create an R code to solve problem Consider a call option with S0=50),\(K=51 , r=.05 , σ=.3 and T=.5 . U

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

using Montecarlo create an R code to solve problem Consider a call option with S0=50),\(K=51 , r=.05 , σ=.3 and T=.5 . U

Post by answerhappygod »

using Montecarlo create an R code to solve problem
Consider a call option with S0=50),\(K=51 , r=.05 , σ=.3 and
T=.5 . Use the Monte Carlo estimation of stock price to estimate
Delta, Gamma and vega for the standard call option and compare it
with the formulas given in the book.
The following is given code just modify it
```{r}
ST=50*exp((.05-.3^2/2)*.5+.3*sqrt(.5)*rnorm(10))
payoff=(51-ST)*(51-ST>0)
ST
payoff
exp(-.05*.5)*mean(payoff)
ST=50*exp((.05-.3^2/2)*.5+.3*sqrt(.5)*rnorm(10000))
payoff=(51-ST)*(51-ST>0)
exp(-.05*.5)*mean(payoff)
```
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply