March 31st, 2007, 12:58 am
thanks, in your case, the first difference can be calculated analytically. but I use a cornish-fisher expansion to increase the accuracy of delta-gamma methodology, where the expansion kills me when I wanna differentiate it with i-th weight.QuoteOriginally posted by: PatrickMI am not a quant, but I believe you are looking for d(VaR)/d(i-th weight)?From Jorion, the delta gamma formula is, written with vectors, (deltas)*(weights*changes in underlyings) + 1/2*(weights*changes in underlyings)*(gammas)*(weights*changes in underlyings), where the latter term is a quadratic form, and "gamma" is a matrix of gammas and cross gammas on the off-diagonal positions? cf. Jorion p.214. Differentiating this with respect to the i-th weight leaves only (i-th weight)*(i-th delta)*(change in i-th underlying) + (weights*change in underlyings)*row i [gammas]where row i [gammas] is the i-th row of the gamma matrix. I don't know if this will speed up anything, but the curse of dimensionality in matrices is at work here too, as Jorion notes:"the delta gamma method is not practical with many sources of risk, because of the amount of data required" [in the gamma matrix]. One way to speed it up is to consider all off-diagonal terms 0, but "Monte Carlo provides a more direct route to VaR for large portfolios" (Jorion).I hope this helps?