January 8th, 2013, 9:41 am
Hello, As an advice, I would suggest to make all reasonnings in terms of effective cash-flows. Then the discount factors (DF) will appear naturally.The default leg of a CDS of maturity N years is supposed to pay 1-Recovery (1-'R') at time of default (called 'thau') => DefaultLeg=Expectation( (1-R)*DF(0,thau)*1_thau<N_) ), where 1_condition_ returns 1 if condition if true, 0 otherwiseTo be useful in practice, this formula must be discretized, eg. with a monthly time step, so that the integral form is seen as a discrete summation :=>DefaultLeg=(1-R)*Integral(t=0->t=N of DF(0,t)*Proba(thau=t)*dt) ~= Sum(m=1->m=12*N of DF(0,m/12)*Proba(thau=m/12))In the discrete case, default can only occurs at times m/12 and Proba(thau=m/12) is expressed in terms of survival probability Q(s,t) (probability of survival until t knowing that there was survival until s) : Q(0,(m-1)/12)-Q(0,m/12)Then one just have to replace in the above expression and find a suitable model for Q, eg. with a piecewise constant default intensity lambda:Q(s,t)=Exponential(-Integral(u=s->u=t of lambda(u)*du))Hope this helps