February 16th, 2005, 8:54 am
Hi, hope that someone can clear my doubts.....I wrote a program for the valuation of credit default swap spread according to the formula below:Some problems:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(i) the two random numbers (credit indices) X1, X2 which are correlated variates never seem to hit the barrier which is around -3 or -4 ..... why is this so?..Here's how i generated the random numbers:1) Generate u1 & u2 = random numbers follow normal distribution N(0,1)2) Correlation matrix: input credit index correlation3) Covariance matrix: Var(u1)= Var(u2) =1, Cov(u1,u2) =0 Assume the variance is one? covariance btw uncorrelated u1, u2 = 0?..4) Perform Cholesky factorization to find the correlated normal variates (credit indices) X1 and X2-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(ii) How to use the formula above the calculate the cds spread using monte carlo simulation? Here's my approach, pls correct me if i'm wrong - Let's say the reference entity defaults first at time a, OR counterparty defaults first at time a, the CDS Spread will be evaluated using this formula, substituting T with a: Juz wondering if this is the right approach to calculate CDS spread by simulating the credit indices?.. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Anyone who has tried the monte carlo simulation, pls kindly advise. Thanks a lot in advance......
Last edited by
annlim on February 15th, 2005, 11:00 pm, edited 1 time in total.