Modify given R code or create your own R code using Montecarlo to solve this...
90.2K
Verified Solution
Question
Accounting
Modify given R code or create your own R code using Montecarlo to solve this 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.
```{r} r=.05 sigma=.3 TT=.5 SO=50 dS=.0001 K=51 delta=exp(-r*TT)*(pnorm((log(SO/K)+TT*(r+sigma^2/2))/(sigma*sqrt(TT)))-1) delta ST=SO*exp((r-sigma^2/2)*TT+sigma*sqrt(TT)*rnorm(10000))
payoff=(K-ST)*(K-ST>0)
f2= exp(-r*TT)*mean(payoff)
SO=SO+.01
ST=SO*exp((r-sigma^2/2)*TT+sigma*sqrt(TT)*rnorm(10000)) payoff=(K-ST)*(K-ST>0) f1=exp(-r*TT)*mean(payoff) f2-f1 (f2-f1)/(-dS)
```
Get Answers to Unlimited Questions
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
Membership Benefits:
- Unlimited Question Access with detailed Answers
- Zin AI - 3 Million Words
- 10 Dall-E 3 Images
- 20 Plot Generations
- Conversation with Dialogue Memory
- No Ads, Ever!
- Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Other questions asked by students
StudyZin's Question Purchase
1 Answer
$0.99
(Save $1 )
One time Pay
- No Ads
- Answer to 1 Question
- Get free Zin AI - 50 Thousand Words per Month
Unlimited
$4.99*
(Save $5 )
Billed Monthly
- No Ads
- Answers to Unlimited Questions
- Get free Zin AI - 3 Million Words per Month
*First month only
Free
$0
- Get this answer for free!
- Sign up now to unlock the answer instantly
You can see the logs in the Dashboard.