July 15th, 2003, 8:49 pm
I am sorry about the ambiguity of the description and notation. The equation I am refering to in PW is 25.7 (PW on QF Vol 1, Ch25 Volatility smiles and surfaces) In the Implied Volatility function that I have given there are upper and lower cutoff limits say 1 and 0.05 that keeps it defined. At t=0 I use the At the money Vol. Let me give a piece of my code so that we can use that notation. I calculate the function and three partial derivatives of this function required in the said equations as follows: for example I set At the Money Vol, a1 and t1 to values : a1 t1 sigmaATM So 0.03 1 0.2 100 then I put in values of S and t from every timestep in the simulation as K and T in the following formulae: double Vimp= SigmaATM + 10*a1*sqrt(t1/T)*log(So/K); double dVimpdT = -5*a1*sqrt(t1)*log(So/K)/(T*sqrt(T)); //partial derivative wrt T double dVimpdK = -(10*a1*sqrt(t1/T))/K; //partial derivative wrt K double d2VimpdK2 = 10*a1*sqrt(t1/T)/(K*K); //second partial derivative wrt K And then use these in 25.7 to get the local volatility, i.e local_vol (S,t).About multiplying with 10, I just do that to keep a1 as a percentage skew number so as K goes from 90 - 100 the implied vol change by 0.03 where a1=0.03. But thats a minor point and 10 can be incorporated in a1.