"Build an iterative algorithm to compute the implied volatility surface from those prices (an implied vol surface is a matrix of implied volatility for different maturity in rows and different strikes in columns). You can use
T = [1/12 ;0:25; 0:5; 1] and K = [0.75So; 0.8So; 0.9So; So; 1.1So; 1.2So; 1.25So] where So is the initial price of the stock."
I understood that, In order to derive an implied volatility surface, we will compute the BS price for 4 different maturities, and for each one we will vary the strike price K that will take 7 different values, all proportional to So (the initial price of the stock). Then the algorithm has to iterate the operation for all the Ks, 4 different times doing it row by row.
And then proceed to the graphical representation.
Could you please have any R algorithm programing to suggest me? Thank you
Note: i know that some packages exist, but we have to make ourself the programing.
Free forum by Nabble | Disable Popup Ads | Edit this page |