January 25th, 2008, 10:35 am
Thanks quant99trader. Now I am having trouble with the conceptual interpretation of the local volatility formula (for instance page 13 of "The Volatility Surface" by Gatheral). I am examining the Quantlib implementation and I don't know if it is confusing me, if it is wrong, or that I just didn't understand the formula correctly. Let's assume that I have a volatility surface at time t = 0, for K (strikes) and T (times to maturity) for call options w(K,T), where w(K,T) = impliedVol^2(K,T)*T. Now I calculate the local volatility at t = 0 for an option which expires at t = T and strike = k. My question is related to the value of w and its derivatives in the local vol formulaat t = 0what is localVol(S(0),0) ??? what is w and its derivatives for this calculation in the local vol formula?My interpretation is w = w(k,T)For the time derivative, I would calculate w_- = w(k,T-dt) and compute it as dw/dT = (w-w_-)/dtif t = t1what is localVol(S(t1),t1) ??? what is w and its derivatives for this?I think it is w = w(k,T-t1) and I would compute the time derivative in a similar way.Well, the answer in quantlib ist = 0 w = w(S(0),0)t = 1 w = w(S(t1),t1)I am pretty sure I am wrong but I am mentally blocked, so I post this running the risk of making a fool of myself.Thanks in advance