Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2) This exercise concerns the Black-Scholes formula for the price of a European vanilla option and the calculation of the implied volatility. All code should

image text in transcribed 2) This exercise concerns the Black-Scholes formula for the price of a European vanilla option and the calculation of the implied volatility. All code should be in R. A) Create a BSOptionPrice function that takes the variables as input: - S : the current price of the risky asset (St), - K : the exercise price of the option (K), - r : the risk-free rate (r), - T_t: the time in years until the option expires (Tt), - sigma: the volatility of the risky asset (), - isput: a Boolean variable such as TRUE indicates a put option and FALSE a call option, and which gives as output the price of a European vanilla option under the BlackScholes model (either a call option or a put option). B) Evaluate your function for a call option and a put option with the following parameters: S0=100,K=105,r=2%,T=0.5,=20%. C) Create a BSImplicitVol function which takes as input the variables OptionPrice: the current price of the option, - S : the current price of the risky asset (St), - K : the exercise price of the option (K), - r : the risk-free rate (r), - T_t: the time in years until the option expires (Tt), - isput: a Boolean variable such as TRUE indicates a put option and FALSE a call option, and which gives as output the value of the implicit volatility of the option considered. Of course, it is not allowed to use a pre-programmed function for implicit volatility in an R library. Suggestion: Your function could call the uniroot function in R. D) Use your function to calculate the implied volatility of a call option with a price of 2.7852 under the assumptions: S0=100,K=105,r=2%,T=0.25. E) Use your function to calculate the implied volatility of a put option with a price of 6.8249 under the assumptions: S0=100,K=105,r=2%,T=0.75

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Technical Analysis Of Stock Trends

Authors: Robert D. Edwards, John Magee, W.H.C. Bassetti

11th Edition

1032241829, 978-1032241821

More Books

Students also viewed these Finance questions

Question

List several personal qualities that help people to be happy.

Answered: 1 week ago